configure.ac: Split CHECKING_P into CHECKING_P and ENABLE_EXTRA_CHECKING.
[gcc.git] / gcc / ChangeLog
1 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2
3 * configure.ac: Split CHECKING_P into CHECKING_P and
4 ENABLE_EXTRA_CHECKING.
5 * configure: Regenerated.
6 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
8
9 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10
11 PR other/31566
12 * gcc.c (process_command): For @filename handling, output
13 the correct name if the file does not exist.
14
15 2016-09-30 Marek Polacek <polacek@redhat.com>
16
17 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
18 * config/alpha/predicates.md: Likewise.
19
20 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21
22 * ifcvt.c (noce_try_avoid_const_materialization): New function.
23 (noce_process_if_block): Use it.
24
25 2016-09-30 Martin Liska <mliska@suse.cz>
26
27 * doc/invoke.texi: Document asan-use-after-return that
28 it's disabled by default in runtime.
29
30 2016-09-30 Richard Biener <rguenther@suse.de>
31
32 * tree-vrp.c (intersect_ranges): If we failed to handle
33 the intersection choose a constant singleton range if available.
34
35 2016-09-30 Richard Biener <rguenther@suse.de>
36
37 PR tree-optimization/77399
38 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
39 float <-> int conversions.
40
41 2016-09-30 Alan Modra <amodra@gmail.com>
42
43 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
44
45 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
46
47 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
48 ext_level before calling CPUID with 0x80000008.
49 Simplify xgetbv checks.
50
51 2016-09-29 David Malcolm <dmalcolm@redhat.com>
52
53 * Makefile.in (OBJS): Add print-rtl-function.o.
54 * print-rtl-function.c: New file.
55 * print-rtl.h (print_rtx_function): New decl.
56
57 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
58
59 PR target/77756
60 * config/i386/cpuid.h (__get_cpuid_count): New.
61 (__get_cpuid): Rename __level to __leaf.
62
63 2016-09-29 Marek Polacek <polacek@redhat.com>
64
65 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
66
67 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
68
69 * builtins.c (expand_builtin_memcmp): don't swap args unless
70 result is only being compared with zero.
71
72 2016-09-29 Marek Polacek <polacek@redhat.com>
73
74 * dwarf2out.c (loc_descriptor): Add fall through comment.
75 (add_const_value_attribute): Likewise.
76
77 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
78
79 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
80 with "v6t2". Move "arch" attribute above "pool_range".
81 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
82 with "v6t2".
83 (*thumb2_movhi_vfp): Likewise.
84 (*arm_movhi_fp16): Likewise.
85 (*thumb2_movhi_fp16): Likewise.
86 (*arm_movsi_vfp): Remove "arch" attribute.
87 (*thumb2_movsi_vfp): Likewise.
88
89 2016-09-29 Martin Liska <mliska@suse.cz>
90
91 * doc/extend.texi: Remove limitation of Objective C for
92 __attribute__((constructor)) and __attribute__((destructor)).
93
94 2016-09-29 Richard Biener <rguenther@suse.de>
95
96 PR tree-optimization/77768
97 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
98 Handle stores to readonly memory when removing redundant stores.
99
100 2016-09-29 Richard Biener <rguenther@suse.de>
101
102 PR middle-end/77407
103 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
104 X / -X -> -1 simplifications.
105
106 2016-09-29 Richard Biener <rguenther@suse.de>
107
108 PR middle-end/55152
109 * match.pd: Add max(a,-a) -> abs(a) pattern.
110 * tree-ssa-phiopt.c (minmax_replacement): Disable for
111 HONOR_SIGNED_ZEROS types.
112
113 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
114
115 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
116 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
117
118 2016-09-29 Richard Biener <rguenther@suse.de>
119
120 * tree-vrp.c (set_defs_to_varying): New helper avoiding
121 writing to vr_const_varying.
122 (vrp_initialize): Call it.
123 (vrp_visit_stmt): Likewise.
124 (evrp_dom_walker::before_dom_children): Likewise.
125
126 2016-09-29 Richard Biener <rguenther@suse.de>
127
128 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
129 constructors with vector elements.
130
131 2016-09-29 Richard Biener <rguenther@suse.de>
132
133 PR tree-optimization/77768
134 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
135 with stores to a place we know has a constant value.
136
137 2016-09-29 Alan Modra <amodra@gmail.com>
138
139 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
140 * doc/invoke.texi: Document it.
141 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
142 (rs6000_passes_float): Comment.
143 (rs6000_passes_long_double): New static var.
144 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
145 (init_cumulative_args): Set up to emit fp .gnu_attribute for
146 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
147 to include fp values returned in vectors.
148 Set rs6000_passes_long_double.
149 (rs6000_function_arg_advance_1): Likewise for function args.
150 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
151 and SPE. Emit long double tag value too.
152 (rs6000_opt_vars): Add gnu-attr.
153 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
154 * configure: Regenerate.
155 * config.in: Regenerate.
156
157 2016-09-28 Jakub Jelinek <jakub@redhat.com>
158
159 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
160 of 0 < x.
161 (format_floating, format_string, format_directive,
162 get_destination_size, pass_sprintf_length::handle_gimple_call):
163 Likewise.
164
165 2016-09-28 Jakub Jelinek <jakub@redhat.com>
166
167 * gimple-ssa-sprintf.c: Fix comment formatting.
168 (format_integer): Use is_gimple_assign.
169 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
170 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
171 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
172 (pass_sprintf_length::execute): Use is_gimple_call.
173
174 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
175
176 * gimple-fold.c (gimple_fold_builtin): After failing to fold
177 strchr, also try the generic folding.
178
179 2016-09-28 Martin Sebor <msebor@redhat.com>
180
181 PR c/77762
182 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
183 Fix typos.
184
185 2016-09-28 Martin Sebor <msebor@redhat.com>
186
187 PR middle-end/77683
188 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
189 length modifier is not expected.
190 (format_floating): Ignore l length modifier and fail gracefuly
191 when it isn't one of the other expected ones.
192
193 2016-09-28 Martin Sebor <msebor@redhat.com>
194
195 PR bootstrap/77753
196 * varasm.c (assemble_addr_to_section): Increase local buffer size.
197
198 2016-09-27 Richard Biener <rguenther@suse.de>
199
200 * dwarf2out.c (cu_die_list): New global.
201 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
202 main_comp_unit_die to cu_die_list if we created it.
203 Move break_out_includes ...
204 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
205 the cu_die_list.
206
207 2016-09-28 Richard Biener <rguenther@suse.de>
208
209 * dwarf2out.c (struct die_struct): Add removed flag.
210 (lookup_type_die): If the DIE is marked as removed, clear
211 TYPE_SYMTAB_DIE and return NULL.
212 (lookup_decl_die): If the DIE is marked as removed, remove it
213 from the hash and return NULL.
214 (mark_removed): New helper.
215 (prune_unused_types_prune): Call it for removed DIEs.
216 (gen_subprogram_die): Move the premark_used_types call to after
217 DIEs for the functions scopes are generated.
218 (process_scope_var): Do not re-create pruned types or type decls.
219 Make sure to also re-parent type decls.
220 (dwarf2out_finish): Move unused type pruning and debug_types
221 handling ...
222 (dwarf2out_early_finish): ... here.
223
224 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
225
226 * config/arc/arc-c.c: New file.
227 * config/arc/arc-c.def: Likewise.
228 * config/arc/t-arc: Likewise.
229 * config.gcc: Include arc-c.o as c and cpp object.
230 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
231 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
232 arc_cpu_cpp_builtins.
233
234 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
235
236 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
237 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
238
239 2016-09-28 Nathan Sidwell <nathan@acm.org>
240
241 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
242 printing.
243
244 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
245
246 PR tree-optimization/61056
247 * gimple-fold.c (gimple_fold_builtin_strchr):
248 New function to optimize strchr (s, 0) to strlen.
249 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
250
251 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
252
253 PR tree-optimization/77724
254 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
255 Add tree_fits_shwi_p check.
256
257 2016-09-27 Jakub Jelinek <jakub@redhat.com>
258
259 * auto-inc-dec.c (try_merge): Remove break after return.
260 * cselib.c (autoinc_split): Likewise.
261 * explow.c (promote_mode): Likewise.
262 * fixed-value.c (fixed_arithmetic): Likewise.
263 * hsa.c (hsa_internal_fn::get_arity): Likewise.
264 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
265 * trans-mem.c (get_attrs_for): Likewise.
266 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
267 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
268 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
269 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
270 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
271 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
272 * config/cris/cris.c (cris_op_str): Likewise.
273 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
274 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
275
276 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
277
278 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
279 IFN_GOACC_REDUCTION_CODES): New.
280 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
281 ifn_goacc_reduction_kind): Use them.
282 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
283 of internal functions, when applicable.
284
285 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
286
287 * config/mips/constraints.md (d): Fix documentation.
288 * doc/md.texi (Machine Constraints): Update accordingly.
289
290 2016-09-27 Richard Biener <rguenther@suse.de>
291
292 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
293 cur_line_info_table initialization ...
294 (dwarf2out_assembly_start): ... here.
295
296 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
297
298 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
299 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
300 (*thumb2_movhi_vfp): Likewise.
301 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
302 template. Expand predicable attribute to mark VMOV.F16 as not
303 predicable. Add "arch" attribute.
304 (*thumb2_movhi_fp16): Likewise.
305 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
306 (*thumb2_movsi_vfp): Add "arch" attribute.
307
308 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
309
310 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
311 VAR_DECL string.
312
313 2016-09-27 Marek Polacek <polacek@redhat.com>
314
315 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
316 comment.
317
318 * config/c6x/c6x.h: Adjust fall through comment.
319 * config/sh/sh.c (final_prescan_insn): Likewise.
320 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
321 (visium_expand_fp_cstore): Likewise.
322
323 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
324
325 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
326 expected by -Wimplicit-fallthrough.
327 (thumb1_size_rtx_costs): Likewise.
328 (thumb2_reorg): Likewise.
329 (tls_mentioned_p): Add "Fall through" comment.
330 (thumb2_reorg): Likewise.
331 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
332 comment form expected by -Wimplicit-fallthrough.
333
334 2016-09-27 Martin Liska <mliska@suse.cz>
335
336 PR gcov-profile/46266
337 * input.h (RESERVED_LOCATION_P): New macro.
338 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
339 instread of comparison with UNKNOWN_LOCATION.
340
341 2016-09-27 Richard Biener <rguenther@suse.de>
342
343 PR tree-optimization/77745
344 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
345 When removing redundant stores make sure to check compatibility
346 of the TBAA state for downstream accesses.
347 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
348 value-numbering virtual operands for store matches.
349
350 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
351
352 PR target/51244
353 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
354 movrt patterns. Match them before anything else in the SET case.
355
356 2016-09-27 Martin Liska <mliska@suse.cz>
357
358 PR gcov-profile/7970
359 PR gcov-profile/16855
360 PR gcov-profile/44779
361 * coverage.c (build_gcov_exit_decl): New function.
362 (coverage_obj_init): Call the function and generate __gcov_exit
363 destructor.
364 * doc/gcov.texi: Document when __gcov_exit function is called.
365
366 2016-09-27 Marek Polacek <polacek@redhat.com>
367
368 PR bootstrap/77751
369 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
370 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
371 -Wno-error instead of -Wno-implicit-fallthrough.
372
373 2016-09-27 Martin Liska <mliska@suse.cz>
374
375 PR bootstrap/77749
376 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
377
378 2016-09-27 Jakub Jelinek <jakub@redhat.com>
379
380 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
381 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
382 comments. Remove break after return.
383 (ix86_fp_compare_code_to_integer, has_dispatch,
384 ix86_simd_clone_usable): Remove break after return.
385
386 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
387
388 PR rlt-optimization/77714
389 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
390 REG_EQUAL note.
391
392 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
393
394 PR ipa/77677
395 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
396 extract_range_from_unary_expr to convert value_range.
397 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
398 (extract_range_from_unary_expr): This.
399 * tree-vrp.h (extract_range_from_unary_expr): Declare.
400
401 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
402
403 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
404
405 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
406
407 * config/i386/i386.c (ix86_print_operand)
408 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
409 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
410 (epilogue_renumber): Likewise.
411
412 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
413
414 PR middle-end/77719
415 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
416 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
417
418 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
419
420 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
421 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
422 is_mm_seq_cst, is_mm_sync): Move to ...
423 * memmodel.h: This. New file.
424 * builtins.c: Include memmodel.h.
425 * optabs.c: Likewise.
426 * tsan.c: Likewise.
427 * config/aarch64/aarch64.c: Likewise.
428 * config/alpha/alpha.c: Likewise.
429 * config/arm/arm.c: Likewise.
430 * config/i386/i386.c: Likewise.
431 * config/ia64/ia64.c: Likewise.
432 * config/mips/mips.c: Likewise.
433 * config/rs6000/rs6000.c: Likewise.
434 * config/sparc/sparc.c: Likewise.
435 * genconditions.c: Include memmodel.h in generated file.
436 * genemit.c: Likewise.
437 * genoutput.c: Likewise.
438 * genpeep.c: Likewise.
439 * genpreds.c: Likewise.
440 * genrecog.c: Likewise.
441
442 2016-09-26 David Malcolm <dmalcolm@redhat.com>
443
444 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
445 "c" instead when parsing characters. Move operand parsing into...
446 (read_rtx_operand): ...this new function, renaming "i" to "idx",
447 and tightening the scope of various locals.
448
449 2016-09-26 Liu Hao <lh_mouse@126.com>
450
451 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
452
453 2016-09-26 Marek Polacek <polacek@redhat.com>
454
455 * system.h: Use __has_attribute to check whether the fallthrough
456 attribute is supported.
457
458 2016-09-26 Marek Polacek <polacek@redhat.com>
459
460 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
461 gimple_call_internal_p.
462 * ipa-split.c (find_return_bb): Likewise.
463 (execute_split_functions): Likewise.
464 * omp-low.c (dump_oacc_loop_part): Likewise.
465 (oacc_loop_xform_head_tail): Likewise.
466 * predict.c (predict_loops): Likewise.
467 * sanopt.c (pass_sanopt::execute): Likewise.
468 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
469 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
470 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
471 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
472 (expand_ifn_va_arg): Likewise.
473 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
474 (optimize_mask_stores): Likewise.
475 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
476 (vect_transform_stmt): Likewise.
477 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
478 * tsan.c (instrument_memory_accesses): Likewise.
479
480 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
481 Alexander Monakov <amonakov@ispras.ru>
482
483 * regrename.c (rename_chains): Check
484 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
485 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
486 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
487
488 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
489
490 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
491 (s390_sched_score): Likewise.
492
493 2016-09-26 Martin Liska <mliska@suse.cz>
494
495 * doc/gcov.texi: Update program output of gcov tool.
496
497 2016-09-26 Martin Liska <mliska@suse.cz>
498
499 PR gcov-profile/23332
500 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
501 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
502 * value-prof.c (dump_histogram_value): Do not handle
503 HIST_TYPE_CONST_DELTA.
504 (stream_in_histogram_value): Likewise.
505 (gimple_find_values_to_profile): Likewise.
506 * value-prof.h (enum hist_type): Likewise.
507
508 2016-09-26 Martin Liska <mliska@suse.cz>
509
510 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
511 from default sanitize recover values.
512 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
513 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
514 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
515 consistent.
516 * opts.c (finish_options): Do a generic loop over options
517 that can be recovered.
518 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
519 SANITIZE_RETURN.
520 (common_handle_option): Likewise.
521 * opts.h: Declare can_recover to sanitizer_opts_s.
522
523 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
524
525 * target.def(elf_flags_numeric): Change documentation to present tense.
526 * doc/tm.texi: Regenerate.
527
528 2016-09-26 Marek Polacek <polacek@redhat.com>
529
530 PR c/7652
531 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
532 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
533 -Wno-switch-fallthrough.
534 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
535 (expand_builtin): Likewise.
536 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
537 * convert.c (convert_to_real_1): Likewise.
538 (convert_to_integer_1): Likewise.
539 * final.c (output_alternate_entry_point): Likewise.
540 * genattrtab.c (make_canonical): Likewise.
541 (write_test_expr): Likewise.
542 * genpreds.c (validate_exp): Likewise.
543 * gimple-ssa-strength-reduction.c
544 (find_candidates_dom_walker::before_dom_children): Likewise.
545 * godump.c (go_format_type): Likewise.
546 * reload1.c (elimination_effects): Likewise.
547 * resource.c (mark_referenced_resources): Likewise.
548 (mark_set_resources): Likewise.
549 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
550 * varasm.c (output_addressed_constants): Likewise.
551
552 2016-09-26 Marek Polacek <polacek@redhat.com>
553
554 PR c/7652
555 * common.opt (Wimplicit-fallthrough): New option.
556 * doc/extend.texi: Document statement attributes and the fallthrough
557 attribute.
558 * doc/invoke.texi: Document -Wimplicit-fallthrough.
559 * gimple.h (gimple_call_internal_p): New function.
560 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
561 (struct label_entry): New struct.
562 (find_label_entry): New function.
563 (case_label_p): New function.
564 (collect_fallthrough_labels): New function.
565 (last_stmt_in_scope): New function.
566 (should_warn_for_implicit_fallthrough): New function.
567 (warn_implicit_fallthrough_r): New function.
568 (maybe_warn_implicit_fallthrough): New function.
569 (expand_FALLTHROUGH_r): New function.
570 (expand_FALLTHROUGH): New function.
571 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
572 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
573 (gimplify_label_expr): New function.
574 (gimplify_case_label_expr): Set location.
575 (gimplify_expr): Call gimplify_label_expr.
576 * internal-fn.c (expand_FALLTHROUGH): New function.
577 * internal-fn.def (FALLTHROUGH): New internal function.
578 * langhooks.c (lang_GNU_OBJC): New function.
579 * langhooks.h (lang_GNU_OBJC): Declare.
580 * system.h (gcc_fallthrough): Define.
581 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
582 * tree.h (FALLTHROUGH_LABEL_P): Define.
583
584 2016-09-26 Richard Biener <rguenther@suse.de>
585
586 * dwarf2out.c (stripattributes): Remove unused function.
587 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
588 Push dwarf_split_debug_info handling into init_sections_and_labels.
589 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
590 (DEBUG_MACRO_SECTION_FLAGS): Remove.
591 (debug_macinfo_section_name): New global.
592 (output_macinfo): Use debug_macinfo_section_name.
593 (init_sections_and_labels): Split out section and label generation
594 from dwarf2out_init. Set debug_macinfo_section_name.
595 (dwarf2out_init): Move text section label generation and emission
596 to ...
597 (dwarf2out_assembly_start): ... here.
598 (dwarf2out_finish): Call init_sections_and_labels before DWARF
599 output starts.
600
601 2016-09-26 Richard Biener <rguenther@suse.de>
602
603 PR debug/77692
604 * cgraphunit.c (analyze_functions): Before early removing
605 global vars calls the late_global_decl debug handler mark
606 the variable as readonly.
607
608 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
609
610 PR target/51244
611 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
612 (sh_rtx_costs): Handle SET of movt and movrt patterns.
613 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
614 declare new overloads.
615 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
616 operand.
617
618 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
619
620 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
621 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
622
623 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
624
625 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
626 * configure: Regenerate.
627
628 2016-09-24 Marek Polacek <polacek@redhat.com>
629
630 PR c/77490
631 * doc/invoke.texi: Document -Wbool-operation.
632
633 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
634
635 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
636 * config/rs6000/rs6000.c (expand_block_compare): New function used by
637 cmpmemsi pattern to do builtin expansion of memcmp ().
638 (compute_current_alignment): Add helper function for
639 expand_block_compare used to compute alignment as the compare proceeds.
640 (select_block_compare_mode): Used by expand_block_compare to select
641 the mode used for reading the next chunk of bytes in the compare.
642 (do_load_for_compare): Used by expand_block_compare to emit the load
643 insns for the compare.
644 (rs6000_emit_dot_insn): Moved this function to avoid a forward
645 reference from expand_block_compare ().
646 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
647 prototype for this function.
648 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
649 target option for controlling how much code inline expansion of
650 memcmp() will be allowed to generate.
651
652 2016-09-23 Jakub Jelinek <jakub@redhat.com>
653
654 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
655 hook_bool_mode_false, hook_bool_mode_true,
656 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
657 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
658 hook_bool_const_rtx_insn_const_rtx_insn_true,
659 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
660 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
661 hook_bool_const_tree_hwi_hwi_const_tree_false,
662 hook_bool_const_tree_hwi_hwi_const_tree_true,
663 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
664 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
665 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
666 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
667 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
668 hook_bool_const_tree_true, hook_bool_tree_tree_false,
669 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
670 hook_bool_rtx_insn_true, hook_bool_rtx_false,
671 hook_bool_uintp_uintp_false,
672 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
673 hook_rtx_tree_int_null, hook_uint_mode_0,
674 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
675 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
676 hook_constcharptr_const_rtx_insn_null,
677 hook_constcharptr_const_tree_const_tree_null,
678 hook_constcharptr_int_const_tree_null,
679 hook_constcharptr_int_const_tree_const_tree_null,
680 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
681 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
682 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
683
684 * vec.h (vNULL): Extend comment to say = vNULL initialization
685 isn't needed for static vars.
686
687 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
688 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
689 = vNULL initialization of file scope vec.
690 * passes.c (pass_tab, enabled_pass_uid_range_tab,
691 disabled_pass_uid_range_tab): Likewise.
692 * haifa-sched.c (sched_luids, h_i_d): Likewise.
693 * tree-chkp-opt.c (check_infos): Likewise.
694 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
695
696 * vec.h (vnull::operator vec): Add constexpr keyword for
697 C++11 and later.
698
699 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
700
701 PR tree-optimization/77654
702 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
703 to duplicate_ssa_name_ptr_info.
704
705 2016-09-23 David Malcolm <dmalcolm@redhat.com>
706
707 PR preprocessor/77672
708 * input.c (selftest::test_lexer_string_locations_simple): Update
709 test to expect location information of the terminator character
710 at the location of the final closing quote.
711 (selftest::test_lexer_string_locations_hex): Likewise.
712 (selftest::test_lexer_string_locations_oct): Likewise.
713 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
714 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
715 (selftest::test_lexer_string_locations_ucn4): Likewise.
716 (selftest::test_lexer_string_locations_ucn8): Likewise.
717 (selftest::test_lexer_string_locations_u8): Likewise.
718 (selftest::test_lexer_string_locations_utf8_source): Likewise.
719 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
720 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
721 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
722 (selftest::test_lexer_string_locations_macro): Likewise.
723 (selftest::test_lexer_string_locations_long_line): Likewise.
724
725 2016-09-23 Richard Biener <rguenther@suse.de>
726
727 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
728 virtual definition to virtual use if the call devirtualizes
729 to a const or pure function.
730 (visit_use): Also visit calls we can devirtualize to a
731 const or pure function.
732
733 2016-09-23 Richard Biener <rguenther@suse.de>
734
735 PR tree-optimization/77697
736 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
737 signal error if we have sth ternary or unhandled.
738
739 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
740
741 * config/arm/arm_neon.h (vabd_f16): New.
742 (vabdq_f16): New.
743 (vabs_f16): New.
744 (vabsq_f16): New.
745 (vadd_f16): New.
746 (vaddq_f16): New.
747 (vcage_f16): New.
748 (vcageq_f16): New.
749 (vcagt_f16): New.
750 (vcagtq_f16): New.
751 (vcale_f16): New.
752 (vcaleq_f16): New.
753 (vcalt_f16): New.
754 (vcaltq_f16): New.
755 (vceq_f16): New.
756 (vceqq_f16): New.
757 (vceqz_f16): New.
758 (vceqzq_f16): New.
759 (vcge_f16): New.
760 (vcgeq_f16): New.
761 (vcgez_f16): New.
762 (vcgezq_f16): New.
763 (vcgt_f16): New.
764 (vcgtq_f16): New.
765 (vcgtz_f16): New.
766 (vcgtzq_f16): New.
767 (vcle_f16): New.
768 (vcleq_f16): New.
769 (vclez_f16): New.
770 (vclezq_f16): New.
771 (vclt_f16): New.
772 (vcltq_f16): New.
773 (vcltz_f16): New.
774 (vcltzq_f16): New.
775 (vcvt_f16_s16): New.
776 (vcvt_f16_u16): New.
777 (vcvt_s16_f16): New.
778 (vcvt_u16_f16): New.
779 (vcvtq_f16_s16): New.
780 (vcvtq_f16_u16): New.
781 (vcvtq_s16_f16): New.
782 (vcvtq_u16_f16): New.
783 (vcvta_s16_f16): New.
784 (vcvta_u16_f16): New.
785 (vcvtaq_s16_f16): New.
786 (vcvtaq_u16_f16): New.
787 (vcvtm_s16_f16): New.
788 (vcvtm_u16_f16): New.
789 (vcvtmq_s16_f16): New.
790 (vcvtmq_u16_f16): New.
791 (vcvtn_s16_f16): New.
792 (vcvtn_u16_f16): New.
793 (vcvtnq_s16_f16): New.
794 (vcvtnq_u16_f16): New.
795 (vcvtp_s16_f16): New.
796 (vcvtp_u16_f16): New.
797 (vcvtpq_s16_f16): New.
798 (vcvtpq_u16_f16): New.
799 (vcvt_n_f16_s16): New.
800 (vcvt_n_f16_u16): New.
801 (vcvtq_n_f16_s16): New.
802 (vcvtq_n_f16_u16): New.
803 (vcvt_n_s16_f16): New.
804 (vcvt_n_u16_f16): New.
805 (vcvtq_n_s16_f16): New.
806 (vcvtq_n_u16_f16): New.
807 (vfma_f16): New.
808 (vfmaq_f16): New.
809 (vfms_f16): New.
810 (vfmsq_f16): New.
811 (vmax_f16): New.
812 (vmaxq_f16): New.
813 (vmaxnm_f16): New.
814 (vmaxnmq_f16): New.
815 (vmin_f16): New.
816 (vminq_f16): New.
817 (vminnm_f16): New.
818 (vminnmq_f16): New.
819 (vmul_f16): New.
820 (vmul_lane_f16): New.
821 (vmul_n_f16): New.
822 (vmulq_f16): New.
823 (vmulq_lane_f16): New.
824 (vmulq_n_f16): New.
825 (vneg_f16): New.
826 (vnegq_f16): New.
827 (vpadd_f16): New.
828 (vpmax_f16): New.
829 (vpmin_f16): New.
830 (vrecpe_f16): New.
831 (vrecpeq_f16): New.
832 (vrnd_f16): New.
833 (vrndq_f16): New.
834 (vrnda_f16): New.
835 (vrndaq_f16): New.
836 (vrndm_f16): New.
837 (vrndmq_f16): New.
838 (vrndn_f16): New.
839 (vrndnq_f16): New.
840 (vrndp_f16): New.
841 (vrndpq_f16): New.
842 (vrndx_f16): New.
843 (vrndxq_f16): New.
844 (vrsqrte_f16): New.
845 (vrsqrteq_f16): New.
846 (vrecps_f16): New.
847 (vrecpsq_f16): New.
848 (vrsqrts_f16): New.
849 (vrsqrtsq_f16): New.
850 (vsub_f16): New.
851 (vsubq_f16): New.
852
853 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
854
855 * config.gcc (extra_headers): Add arm_fp16.h
856 * config/arm/arm_fp16.h: New.
857 * config/arm/arm_neon.h: Include "arm_fp16.h".
858
859 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
860
861 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
862 variants).
863 (vmulf): New (v8hf, v4hf variants).
864 (vfma): New (v8hf, v4hf variants).
865 (vfms): New (v8hf, v4hf variants).
866 (vsub): New (v8hf, v4hf variants).
867 (vcage): New (v8hf, v4hf variants).
868 (vcagt): New (v8hf, v4hf variants).
869 (vcale): New (v8hf, v4hf variants).
870 (vcalt): New (v8hf, v4hf variants).
871 (vceq): New (v8hf, v4hf variants).
872 (vcgt): New (v8hf, v4hf variants).
873 (vcge): New (v8hf, v4hf variants).
874 (vcle): New (v8hf, v4hf variants).
875 (vclt): New (v8hf, v4hf variants).
876 (vceqz): New (v8hf, v4hf variants).
877 (vcgez): New (v8hf, v4hf variants).
878 (vcgtz): New (v8hf, v4hf variants).
879 (vcltz): New (v8hf, v4hf variants).
880 (vclez): New (v8hf, v4hf variants).
881 (vabd): New (v8hf, v4hf variants).
882 (vmaxf): New (v8hf, v4hf variants).
883 (vmaxnm): New (v8hf, v4hf variants).
884 (vminf): New (v8hf, v4hf variants).
885 (vminnm): New (v8hf, v4hf variants).
886 (vpmaxf): New (v4hf variant).
887 (vpminf): New (v4hf variant).
888 (vpadd): New (v4hf variant).
889 (vrecps): New (v8hf, v4hf variants).
890 (vrsqrts): New (v8hf, v4hf variants).
891 (vabs): New (v8hf, v4hf variants).
892 (vneg): New (v8hf, v4hf variants).
893 (vrecpe): New (v8hf, v4hf variants).
894 (vrnd): New (v8hf, v4hf variants).
895 (vrnda): New (v8hf, v4hf variants).
896 (vrndm): New (v8hf, v4hf variants).
897 (vrndn): New (v8hf, v4hf variants).
898 (vrndp): New (v8hf, v4hf variants).
899 (vrndx): New (v8hf, v4hf variants).
900 (vrsqrte): New (v8hf, v4hf variants).
901 (vmul_lane): Add v4hf and v8hf variants.
902 (vmul_n): Add v4hf and v8hf variants.
903 (vext): New (v8hf, v4hf variants).
904 (vcvts): New (v8hi, v4hi variants).
905 (vcvts): New (v8hf, v4hf variants).
906 (vcvtu): New (v8hi, v4hi variants).
907 (vcvtu): New (v8hf, v4hf variants).
908 (vcvts_n): New (v8hf, v4hf variants).
909 (vcvtu_n): New (v8hi, v4hi variants).
910 (vcvts_n): New (v8hi, v4hi variants).
911 (vcvtu_n): New (v8hf, v4hf variants).
912 (vbsl): New (v8hf, v4hf variants).
913 (vcvtas): New (v8hf, v4hf variants).
914 (vcvtau): New (v8hf, v4hf variants).
915 (vcvtms): New (v8hf, v4hf variants).
916 (vcvtmu): New (v8hf, v4hf variants).
917 (vcvtns): New (v8hf, v4hf variants).
918 (vcvtnu): New (v8hf, v4hf variants).
919 (vcvtps): New (v8hf, v4hf variants).
920 (vcvtpu): New (v8hf, v4hf variants).
921
922 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
923
924 * config/arm/arm-builtins.c (hf_UP): New.
925 (si_UP): New.
926 (vfp_builtin_data): New. Update comment.
927 (enum arm_builtins): Include "arm_vfp_builtins.def".
928 (ARM_BUILTIN_VFP_PATTERN_START): New.
929 (arm_init_vfp_builtins): New.
930 (arm_init_builtins): Add arm_init_vfp_builtins.
931 (arm_expand_vfp_builtin): New.
932 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
933 long line.
934 * config/arm/arm_vfp_builtins.def: New file.
935 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
936 (arm-builtins.o): Likewise.
937
938 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
939
940 PR ipa/77677
941 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
942 from constant while creating value range.
943
944 2016-09-23 Renlin Li <renlin.li@arm.com>
945
946 * ira.c (ira): Move ira_use_lra_p initialization code to ...
947 (ira_init_once): Here.
948
949 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
950 Jakub Jelinek <jakub@redhat.com>
951
952 * hooks.h (hook_uint_uintp_false): Rename to...
953 (hook_bool_uint_uintp_false): ... this.
954 * hooks.c (hook_uint_uintp_false): Rename to...
955 (hook_bool_uint_uintp_false): ... this.
956 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
957 instead of hook_uint_uintp_false.
958
959 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
960
961 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
962 (arm_init_builtins): Move body of a loop to the standalone
963 function arm_init_neon_builtin.
964 (arm_expand_neon_builtin_1): New. Update comment. Function body
965 moved from arm_neon_builtin with some white-space fixes.
966 (arm_expand_neon_builtin): Move code into the standalone function
967 arm_expand_neon_builtin_1.
968
969 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
970
971 * config/arm/iterators.md (VCVTHI): New.
972 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
973 (NEON_VAGLTE): New.
974 (VFM_LANE_AS): New.
975 (VH_CVTTO): New.
976 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
977 (V_HALF): Add V4HF. Fix white-space.
978 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
979 (V_s_elem): Likewise.
980 (V_sz_elem): Fix white-space.
981 (V_elem_ch): Likewise.
982 (VH_elem_ch): New.
983 (scalar_mul_constraint): Add V8HF and V4HF.
984 (Is_float_mode): Fix white-space.
985 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
986 (q): Add HF. Fix white-space.
987 (float_sup): New.
988 (float_SUP): New.
989 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
990 (neon_vfm_lane_as): New.
991 * config/arm/neon.md (add<mode>3_fp16): New.
992 (sub<mode>3_fp16): New.
993 (mul<mode>3add<mode>_neon): New.
994 (fma<VH:mode>4_intrinsic): New.
995 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
996 (fmsub<VH:mode>4_intrinsic): New.
997 (<absneg_str><mode>2): New.
998 (neon_v<absneg_str><mode>): New.
999 (neon_v<fp16_rnd_str><mode>): New.
1000 (neon_vrsqrte<mode>): New.
1001 (neon_vpaddv4hf): New.
1002 (neon_vadd<mode>): New.
1003 (neon_vsub<mode>): New.
1004 (neon_vmulf<mode>): New.
1005 (neon_vfma<VH:mode>): New.
1006 (neon_vfms<VH:mode>): New.
1007 (neon_vc<cmp_op><mode>): New.
1008 (neon_vc<cmp_op><mode>_fp16insn): New
1009 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
1010 (neon_vca<cmp_op><mode>): New.
1011 (neon_vca<cmp_op><mode>_fp16insn): New.
1012 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
1013 (neon_vc<cmp_op>z<mode>): New.
1014 (neon_vabd<mode>): New.
1015 (neon_v<maxmin>f<mode>): New.
1016 (neon_vp<maxmin>fv4hf: New.
1017 (neon_<fmaxmin_op><mode>): New.
1018 (neon_vrecps<mode>): New.
1019 (neon_vrsqrts<mode>): New.
1020 (neon_vrecpe<mode>): New (VH variant).
1021 (neon_vdup_lane<mode>_internal): New.
1022 (neon_vdup_lane<mode>): New.
1023 (neon_vcvt<sup><mode>): New (VCVTHI variant).
1024 (neon_vcvt<sup><mode>): New (VH variant).
1025 (neon_vcvt<sup>_n<mode>): New (VH variant).
1026 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
1027 (neon_vcvt<vcvth_op><sup><mode>): New.
1028 (neon_vmul_lane<mode>): New.
1029 (neon_vmul_n<mode>): New.
1030 * config/arm/unspecs.md (UNSPEC_VCALE): New
1031 (UNSPEC_VCALT): New.
1032 (UNSPEC_VFMA_LANE): New.
1033 (UNSPECS_VFMS_LANE): New.
1034
1035 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1036
1037 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
1038 ("*extzv<mode><clobbercc_or_nocc>"):
1039 Correct a typo in a comment.
1040 Merged patterns.
1041 ("*insv<mode>_zEC12", "*insv<mode>_z10")
1042 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
1043 ("*insv<mode>_zEC12_appendbitsleft")
1044 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
1045 ("*insv<mode>_z10_appendbitsleft"): Ditto.
1046 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
1047 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
1048 Provide pattern with operands switched.
1049 ("*pre_z10_extv<mode>"):
1050 Use new subst patterns.
1051 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1052 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1053 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1054 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1055 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1056 ("*<risbg_n>_sidi_ior_and_lshiftrt")
1057 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1058 New patterns.
1059 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1060 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1061 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1062 on zEC12.
1063 ("SINT"): New mode_iterator with SI, HI, QI.
1064 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1065 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1066 duplication.
1067
1068 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1069
1070 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1071 new interface of s390_contiguous_bitmask_p.
1072 ("contiguous_bitmask_nowrap_operand"): New predicate.
1073 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1074 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1075 of s390_contiguous_bitmask_p.
1076 ("NxxDw"): Rename NxxDq constraint to NxxDw.
1077 ("NxxSw"): New constraint.
1078 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1079 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1080 interface.
1081 (s390_contiguous_bitmask_nowrap_p): Export.
1082 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1083 former s390_contiguous_bitmask_p.
1084 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1085 detect contiguous bit ranges with wraparound. Change signature to
1086 return START and END position instead of POS and LENGTH.
1087 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1088 ranges with wraparound.
1089 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1090 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1091 Adapt to new signature of s390_contiguous_bitmask_p.
1092
1093 2016-09-23 Bin Cheng <bin.cheng@arm.com>
1094
1095 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1096 (create_intersect_range_checks): New.
1097 (vect_create_cond_for_alias_checks): Call above function.
1098
1099 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1100
1101 * config/arm/iterators.md (Code iterators): Fix some white-space
1102 in the comments.
1103 (GLTE): New.
1104 (ABSNEG): New
1105 (FCVT): Moved from vfp.md.
1106 (VCVT_HF_US_N): New.
1107 (VCVT_SI_US_N): New.
1108 (VCVT_HF_US): New.
1109 (VCVTH_US): New.
1110 (FP16_RND): New.
1111 (absneg_str): New.
1112 (FCVTI32typename): Moved from vfp.md.
1113 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1114 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1115 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1116 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
1117 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1118 (vcvth_op): New.
1119 (fp16_rnd_str): New.
1120 (fp16_rnd_insn): New.
1121 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1122 (UNSPEC_VCVT_HF_U_N): New.
1123 (UNSPEC_VCVT_SI_S_N): New.
1124 (UNSPEC_VCVT_SI_U_N): New.
1125 (UNSPEC_VCVTH_S): New.
1126 (UNSPEC_VCVTH_U): New.
1127 (UNSPEC_VCVTA_S): New.
1128 (UNSPEC_VCVTA_U): New.
1129 (UNSPEC_VCVTM_S): New.
1130 (UNSPEC_VCVTM_U): New.
1131 (UNSPEC_VCVTN_S): New.
1132 (UNSPEC_VCVTN_U): New.
1133 (UNSPEC_VCVTP_S): New.
1134 (UNSPEC_VCVTP_U): New.
1135 (UNSPEC_VCVTP_S): New.
1136 (UNSPEC_VCVTP_U): New.
1137 (UNSPEC_VRND): New.
1138 (UNSPEC_VRNDA): New.
1139 (UNSPEC_VRNDI): New.
1140 (UNSPEC_VRNDM): New.
1141 (UNSPEC_VRNDN): New.
1142 (UNSPEC_VRNDP): New.
1143 (UNSPEC_VRNDX): New.
1144 * config/arm/vfp.md (<absneg_str>hf2): New.
1145 (neon_vabshf): New.
1146 (neon_v<fp16_rnd_str>hf): New.
1147 (neon_vrndihf): New.
1148 (addhf3): New.
1149 (subhf3): New.
1150 (divhf3): New.
1151 (mulhf3): New.
1152 (*mulsf3neghf_vfp): New.
1153 (*negmulhf3_vfp): New.
1154 (*mulsf3addhf_vfp): New.
1155 (*mulhf3subhf_vfp): New.
1156 (*mulhf3neghfaddhf_vfp): New.
1157 (*mulhf3neghfsubhf_vfp): New.
1158 (fmahf4): New.
1159 (neon_vfmahf): New.
1160 (fmsubhf4_fp16): New.
1161 (neon_vfmshf): New.
1162 (*fnmsubhf4): New.
1163 (*fnmaddhf4): New.
1164 (neon_vsqrthf): New.
1165 (neon_vrsqrtshf): New.
1166 (FCVT): Move to iterators.md.
1167 (FCVTI32typename): Likewise.
1168 (neon_vcvth<sup>hf): New.
1169 (neon_vcvth<sup>si): New.
1170 (neon_vcvth<sup>_nhf_unspec): New.
1171 (neon_vcvth<sup>_nhf): New.
1172 (neon_vcvth<sup>_nsi_unspec): New.
1173 (neon_vcvth<sup>_nsi): New.
1174 (neon_vcvt<vcvth_op>h<sup>si): New.
1175 (neon_<fmaxmin_op>hf): New.
1176
1177 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1178
1179 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1180 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1181 ("*insv<mode>_zEC12_appendbitsleft")
1182 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1183 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1184
1185 2016-09-23 Jakub Jelinek <jakub@redhat.com>
1186
1187 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1188 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1189 construct values without normalization.
1190 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1191 static local lhs_ops to vNULL.
1192
1193 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1194 Jiong Wang <jiong.wang@arm.com>
1195
1196 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1197 available when FP16 instructions are available.
1198 (output_move_vfp): Add support for 16-bit data moves.
1199 (arm_validize_comparison): Fix some white-space. Support HFmode
1200 by conversion to SFmode.
1201 * config/arm/arm.md (truncdfhf2): Fix a comment.
1202 (extendhfdf2): Likewise.
1203 (cstorehf4): New.
1204 (movsicc): Fix some white-space.
1205 (movhfcc): New.
1206 (movsfcc): Fix some white-space.
1207 (*cmovhf): New.
1208 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1209 instructions are available.
1210 (*thumb2_movhi_vfp): Likewise.
1211 (*arm_movhi_fp16): New.
1212 (*thumb2_movhi_fp16): New.
1213 (*movhf_vfp_fp16): New.
1214 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1215 (*movhf_vfp): Likewise.
1216 (extendhfsf2): Enable when VFP FP16 instructions are available.
1217 (truncsfhf2): Enable when VFP FP16 instructions are available.
1218
1219 2016-09-23 Martin Liska <mliska@suse.cz>
1220
1221 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1222
1223 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1224
1225 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1226 V4HF modes.
1227 (arm_evpc_neon_vtrn): Likewise.
1228 (arm_evpc_neon_vrev): Likewise.
1229 (arm_evpc_neon_vext): Likewise.
1230 * config/arm/arm_neon.h (vbsl_f16): New.
1231 (vbslq_f16): New.
1232 (vdup_n_f16): New.
1233 (vdupq_n_f16): New.
1234 (vdup_lane_f16): New.
1235 (vdupq_lane_f16): New.
1236 (vext_f16): New.
1237 (vextq_f16): New.
1238 (vmov_n_f16): New.
1239 (vmovq_n_f16): New.
1240 (vrev64_f16): New.
1241 (vrev64q_f16): New.
1242 (vtrn_f16): New.
1243 (vtrnq_f16): New.
1244 (vuzp_f16): New.
1245 (vuzpq_f16): New.
1246 (vzip_f16): New.
1247 (vzipq_f16): New.
1248 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1249 (vdup_lane): New (v8hf, v4hf variants).
1250 (vext): New (v8hf, v4hf variants).
1251 (vbsl): New (v8hf, v4hf variants).
1252 * config/arm/iterators.md (VDQWH): New.
1253 (VH): New.
1254 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
1255 (Scalar_mul_8_16): Fix white-space.
1256 (Is_d_reg): Add V4HF and V8HF.
1257 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1258 (neon_vdup_lane<mode>): New.
1259 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1260 (*neon_vtrn<mode>_insn): Likewise.
1261 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1262 (*neon_vzip<mode>_insn): Likewise
1263 (neon_vuzp<mode>_internal): Likewise.
1264 (*neon_vuzp<mode>_insn): Likewise
1265 * config/arm/vec-common.md (vec_perm_const<mode>): New.
1266
1267 2016-09-23 Jiong Wang <jiong.wang@arm.com>
1268 Matthew Wahab <matthew.wahab@arm.com>
1269
1270 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1271 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1272 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1273 available. Also fix some white-space.
1274 * config/arm/vfp.md (*arm_movhi_vfp): New.
1275 (*thumb2_movhi_vfp): New.
1276
1277 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1278
1279 * config/arm/arm-c.c (arm_cpu_builtins): Define
1280 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1281 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1282
1283 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1284
1285 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1286 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
1287 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1288 arm_v8_2a_fp16_neon_hw.
1289 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1290 arm_v8_2a_neon.
1291
1292 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1293
1294 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1295 arm_fp16_alternative_ok and arm_fp16_none_ok.
1296
1297 2016-09-23 Martin Liska <mliska@suse.cz>
1298
1299 * ipa-icf.c (sem_variable::merge): Replace adress with address.
1300
1301 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1302
1303 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1304 ("armv8.2-a"): New.
1305 ("armv8.2-a+fp16"): New.
1306 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1307 (FL2_FP16INST): New.
1308 (FL2_FOR_ARCH8_2A): New.
1309 * config/arm/arm-tables.opt: Regenerate.
1310 * config/arm/arm.c (arm_arch8_2): New.
1311 (arm_fp16_inst): New.
1312 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
1313 for incompatible fp16-format settings.
1314 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1315 (TARGET_NEON_FP16INST): New.
1316 (arm_arch8_2): Declare.
1317 (arm_fp16_inst): Declare.
1318 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1319 march=armv8.2-a and march=armv8.2-a+fp16.
1320 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1321 and armv8.2-a+fp16.
1322 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1323 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1324
1325 2016-09-23 Martin Liska <mliska@suse.cz>
1326
1327 * doc/extend.texi: Remove fused-madd from i386 target options.
1328
1329 2016-09-23 Martin Liska <mliska@suse.cz>
1330
1331 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1332 Handle movbe.
1333
1334 2016-09-23 Martin Liska <mliska@suse.cz>
1335
1336 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1337 Handle crc32.
1338
1339 2016-09-23 Martin Liska <mliska@suse.cz>
1340
1341 PR target/71652
1342 * config/i386/i386.c (ix86_option_override_internal): Change
1343 signature and return false when there's an error related to
1344 arch string.
1345 (release_options_strings): New function.
1346 (ix86_valid_target_attribute_tree): Call the function.
1347
1348 2016-09-23 Jakub Jelinek <jakub@redhat.com>
1349
1350 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1351 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1352 (gen_hsa_ctor_assignment): Likewise.
1353 * print-tree.c (print_node): Likewise.
1354 * tree-dump.c (dequeue_and_dump): Likewise.
1355 * tree-sra.c (sra_modify_constructor_assign): Likewise.
1356 * expr.c (store_constructor): Likewise.
1357 * fold-const.c (operand_equal_p): Likewise.
1358 * tree-pretty-print.c (dump_generic_node): Likewise.
1359 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1360 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1361
1362 2016-09-23 Richard Biener <rguenther@suse.de>
1363
1364 * hooks.h (hook_uint_uintp_false): Declare.
1365
1366 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1367
1368 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1369 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1370
1371 2016-09-22 Martin Sebor <msebor@redhat.com>
1372
1373 PR target/77676
1374 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1375 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1376 (target_int_min): Correct computation.
1377 (format_integer): Use long long as the argument for the ll length
1378 modifier.
1379 (format_floating): Use target_int_max().
1380 (get_string_length): Same.
1381 (format_string): Avoid setting the bounded flag for strings
1382 of unknown length.
1383 (try_substitute_return_value): Avoid setting range info when
1384 the result isn't bounded.
1385 * varasm.c (assemble_name): Increase buffer size.
1386
1387 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
1388 Terry Guo <terry.guo@arm.com>
1389
1390 * target.def (elf_flags_numeric): New target hook.
1391 * targhooks.h (default_asm_elf_flags_numeric): New.
1392 * varasm.c (default_asm_elf_flags_numeric): New.
1393 (default_elf_asm_named_section): Use new target hook.
1394 * config/arm/arm.opt (mpure-code): New.
1395 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1396 * config/arm/arm.c (arm_asm_init_sections): Add section
1397 attribute to default text section if -mpure-code.
1398 (arm_option_check_internal): Diagnose use of option with
1399 non supported targets and/or options.
1400 (arm_asm_elf_flags_numeric): New.
1401 (arm_function_section): New.
1402 (arm_elf_section_type_flags): New.
1403 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1404 for -mpure-code.
1405 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1406 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1407
1408 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
1409
1410 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1411
1412 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1413
1414 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1415 * rtl.h: Adjust prototype.
1416
1417 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1418
1419 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1420 (prev_active_insn): Likewise.
1421 (active_insn_p): Likewise.
1422 * rtl.h: Adjust prototypes.
1423 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1424 * config/arc/arc.md: Likewise.
1425 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1426 (branch_needs_nop_p): Likewise.
1427 (use_skip_p): Likewise.
1428 * config/sh/sh.c (gen_block_redirect): Likewise.
1429 (split_branches): Likewise.
1430 * reorg.c (optimize_skip): Likewise.
1431 (fill_simple_delay_slots): Likewise.
1432 (fill_slots_from_thread): Likewise.
1433 (relax_delay_slots): Likewise.
1434 * resource.c (mark_target_live_regs): Likewise.
1435
1436 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1437
1438 * config/cris/cris.c (cris_asm_output_case_end): Change argument
1439 type to rtx_insn *.
1440 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1441 (prev_nonnote_nondebug_insn): Likewise.
1442 * config/cris/cris-protos.h: Adjust prototype.
1443 * rtl.h: Likewise.
1444 * jump.c (rtx_renumbered_equal_p): Adjust.
1445
1446 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1447
1448 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1449 * rtl.h: Adjust prototype.
1450 * config/sh/sh.md: Adjust.
1451 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1452
1453 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1454
1455 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1456 (prev_nondebug_insn): Likewise.
1457 * loop-doloop.c (doloop_condition_get): Likewise.
1458 * rtl.h: Adjust prototype.
1459 * cfgloop.h: Likewise.
1460
1461 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1462
1463 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1464 (prev_nonnote_insn): Likewise.
1465 * jump.c (reversed_comparison_code_parts): Likewise.
1466 (reversed_comparison): Likewise.
1467 * rtl.h: Adjust prototypes.
1468 * config/arc/arc.md: Adjust.
1469 * cse.c (find_comparison_args): Likewise.
1470 * reorg.c (redundant_insn): Change return type to rtx_insn *.
1471 (fix_reg_dead_note): Change argument type to rtx_insn *.
1472 (delete_prior_computation): Likewise.
1473 (delete_computation): Likewise.
1474 (fill_slots_from_thread): Adjust.
1475 (relax_delay_slots): Likewise.
1476 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1477 (simplify_relational_operation_1): Likewise.
1478 (simplify_ternary_operation): Likewise.
1479
1480 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1481
1482 * config/arc/arc-protos.h (arc_label_align): Change type of
1483 variables from rtx to rtx_insn *.
1484 * config/arc/arc.c (arc_label_align): Likewise.
1485 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1486 * config/bfin/bfin.c (workaround_speculation): Likewise.
1487 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1488 (find_last_same_clock): Likewise.
1489 (reorg_split_calls): Likewise.
1490 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1491 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1492 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1493 (same_cmp_following_p): Likewise.
1494 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1495 (same_cmp_following_p): Likwise.
1496 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1497 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1498 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1499 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
1500 (rl78_alloc_physical_registers_cmp): Likewise.
1501 (rl78_alloc_physical_registers_umul): Likewise.
1502 (rl78_calculate_death_notes): Likewise.
1503 * config/s390/s390-protos.h (s390_label_align): Likewise.
1504 * config/s390/s390.c (s390_label_align): Likewise.
1505 * config/sh/sh.c (barrier_align): Likewise.
1506 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1507 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1508 (emit_cbcond_nop): Likewise.
1509
1510 2016-09-22 Martin Liska <mliska@suse.cz>
1511
1512 PR ipa/77653
1513 * ipa-icf.c (sem_variable::merge): Yield merge operation if
1514 alias address matters, not necessarily address of original.
1515
1516 2016-09-22 Richard Biener <rguenther@suse.de>
1517
1518 PR middle-end/77697
1519 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1520 fold fails.
1521
1522 2016-09-22 Richard Biener <rguenther@suse.de>
1523
1524 PR middle-end/77677
1525 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1526 from constant folding results.
1527 (gimple_resimplify2): Likewise.
1528 (gimple_resimplify3): Likewise.
1529
1530 2016-09-22 Richard Biener <rguenther@suse.de>
1531
1532 PR middle-end/77678
1533 * expr.c (expand_expr_real_1): Guard array access against negative
1534 offset.
1535
1536 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1537
1538 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1539 of MPFR_RNDN.
1540 (format_floating): Likewise.
1541
1542 2016-09-22 Jakub Jelinek <jakub@redhat.com>
1543
1544 PR fortran/77665
1545 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1546 for all IFN_GOMP_SIMD_* internal fns, not just for
1547 IFN_GOMP_SIMD_ORDERED_*.
1548
1549 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1550
1551 PR target/77670
1552 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1553 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1554 instructions when you want to invert the test.
1555 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1556 correct order for XXSEL.
1557 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1558 for using XSCMP{EQ,GT,GE}DP.
1559
1560 2016-09-21 David Malcolm <dmalcolm@redhat.com>
1561
1562 * genconstants.c (main): Introduce noop_reader and convert call
1563 to read_md_files to a method call.
1564 * genenums.c (main): Likewise.
1565 * genmddeps.c (main): Likewise.
1566 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1567 rtx_reader_ptr->get_top_level_filename ().
1568 (write_tm_preds_h): Likewise.
1569 (write_insn_preds_c): Likewise.
1570 * gensupport.c (class gen_reader): New subclass of rtx_reader.
1571 (rtx_handle_directive): Convert to...
1572 (gen_reader::handle_unknown_directive): ...this.
1573 (init_rtx_reader_args_cb): Convert return type from bool to
1574 rtx_reader *. Create a gen_reader instance, using it for the
1575 call to read_md_files. Return it if no errors occur.
1576 (init_rtx_reader_args): Convert return type from bool to
1577 rtx_reader *.
1578 * gensupport.h (init_rtx_reader_args_cb): Likewise.
1579 (init_rtx_reader_args_cb): Likewise.
1580 * read-md.c (struct file_name_list): Move to class rtx_reader.
1581 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
1582 (read_md_filename): Delete in favor of
1583 rtx_reader::m_read_md_filename.
1584 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
1585 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
1586 (base_dir): Delete in favor of rtx_reader::m_base_dir.
1587 (first_dir_md_include): Delete in favor of
1588 rtx_reader::m_first_dir_md_include.
1589 (last_dir_md_include_ptr): Delete in favor of
1590 rtx_reader::m_last_dir_md_include_ptr.
1591 (max_include_len): Delete.
1592 (rtx_reader_ptr): New.
1593 (fatal_with_file_and_line): Use get_filename and get_lineno
1594 accessors of rtx_reader_ptr.
1595 (require_char_ws): Likewise.
1596 (rtx_reader::read_char): New method, based on ::read_char.
1597 (rtx_reader::unread_char): New method, based on ::unread_char.
1598 (read_escape): Use get_filename and get_lineno accessors of
1599 rtx_reader_ptr.
1600 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
1601 (read_string): Use get_filename and get_lineno accessors of
1602 rtx_reader_ptr.
1603 (rtx_reader::rtx_reader): New ctor.
1604 (rtx_reader::~rtx_reader): New dtor.
1605 (handle_include): Convert from a function to...
1606 (rtx_reader::handle_include): ...this method, converting
1607 handle_directive from a callback to a virtual function.
1608 (handle_file): Likewise, converting to...
1609 (rtx_reader::handle_file): ...this method.
1610 (handle_toplevel_file): Likewise, converting to...
1611 (rtx_reader::handle_toplevel_file): ...this method.
1612 (rtx_reader::get_current_location): New method.
1613 (parse_include): Convert from a function to...
1614 (rtx_reader::add_include_path): ...this method, dropping redundant
1615 update to unused max_include_len.
1616 (read_md_files): Convert from a function to...
1617 (rtx_reader::read_md_files): ...this method, converting
1618 handle_directive from a callback to a virtual function.
1619 (noop_reader::handle_unknown_directive): New method.
1620 * read-md.h (directive_handler_t): Delete this typedef.
1621 (in_fname): Delete.
1622 (read_md_file): Delete.
1623 (read_md_lineno): Delete.
1624 (read_md_filename): Delete.
1625 (class rtx_reader): New class.
1626 (rtx_reader_ptr): New decl.
1627 (class noop_reader): New subclass of rtx_reader.
1628 (read_char): Reimplement in terms of rtx_reader::read_char.
1629 (unread_char): Reimplement in terms of rtx_reader::unread_char.
1630 (read_md_files): Delete.
1631 * read-rtl.c (read_rtx_code): Update for deletion of globals
1632 read_md_filename and read_md_lineno.
1633
1634 2016-09-21 Jason Merrill <jason@redhat.com>
1635
1636 * input.h (from_macro_definition_at): New.
1637
1638 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1639
1640 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1641
1642 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1643
1644 PR tree-optimization/77550
1645 * tree-vect-stmts.c (create_array_ref): Change parameters.
1646 (get_group_alias_ptr_type): New function.
1647 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1648
1649 2016-09-21 Marek Polacek <polacek@redhat.com>
1650
1651 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1652 Add falls through comment.
1653
1654 2016-09-21 Richard Biener <rguenther@suse.de>
1655
1656 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
1657 (replace_child): Likewise.
1658 (remove_child_TAG): Adjust.
1659 (move_marked_base_types): Likewise.
1660 (prune_unused_types_prune): Clear die_sib of removed children.
1661
1662 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
1663
1664 PR target/77326
1665 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1666 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1667
1668 2016-09-21 Richard Biener <rguenther@suse.de>
1669
1670 PR tree-optimization/77648
1671 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1672 with complex RHS.
1673 (make_transitive_closure_constraints): Adjust comment.
1674 (make_any_offset_constraints): New function.
1675 (handle_rhs_call): Make sure to first expand a pointer to all
1676 subfields before transitively closing it.
1677 (handle_const_call): Likewise. Properly expand returned
1678 pointers as well.
1679 (handle_pure_call): Likewise.
1680
1681 2016-09-21 Richard Biener <rguenther@suse.de>
1682 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR tree-optimization/77621
1685 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1686 group at non-vectorizable stmts.
1687
1688 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1689
1690 PR tree-optimization/72835
1691 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
1692 (make_new_ssa_for_all_defs): Likewise.
1693 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
1694
1695 2016-09-20 Martin Sebor <msebor@redhat.com>
1696
1697 PR middle-end/49905
1698 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
1699 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
1700 * config/linux.c (gnu_libc_printf_pointer_format): New function.
1701 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
1702 * config/sol2.c (solaris_printf_pointer_format): New function.
1703 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
1704 options.
1705 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
1706 * doc/tm.texi: Regenerate.
1707 * gimple-fold.h (get_range_strlen): New function.
1708 (get_maxval_strlen): Declare existing function.
1709 * gimple-fold.c (get_range_strlen): Add arguments and compute both
1710 maximum and minimum.
1711 (get_range_strlen): Define overload.
1712 (get_maxval_strlen): Adjust.
1713 * gimple-ssa-sprintf.c: New file and pass.
1714 * passes.def (pass_sprintf_length): Add new pass.
1715 * targhooks.h (default_printf_pointer_format): Declare new function.
1716 (gnu_libc_printf_pointer_format): Same.
1717 (solaris_libc_printf_pointer_format): Same.
1718 * targhooks.c (default_printf_pointer_format): Define new function.
1719 * tree-pass.h (make_pass_sprintf_length): Declare new function.
1720 * print-tree.c: Increase buffer size.
1721
1722 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1723
1724 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
1725
1726 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1727
1728 * common.opt: New option -fipa-vrp.
1729 * ipa-cp.c (ipa_get_vr_lat): New.
1730 (ipcp_vr_lattice::print): Likewise.
1731 (print_all_lattices): Call ipcp_vr_lattice::print.
1732 (ipcp_vr_lattice::meet_with): New.
1733 (ipcp_vr_lattice::meet_with_1): Likewise.
1734 (ipcp_vr_lattice::top_p): Likewise.
1735 (ipcp_vr_lattice::bottom_p): Likewsie.
1736 (ipcp_vr_lattice::set_to_bottom): Likewise.
1737 (set_all_contains_variable): Call VR set_to_bottom.
1738 (initialize_node_lattices): Init VR lattices.
1739 (propagate_vr_accross_jump_function): New.
1740 (propagate_constants_accross_call): Call
1741 propagate_vr_accross_jump_function.
1742 (ipcp_store_vr_results): New.
1743 (ipcp_driver): Handle VR.
1744 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
1745 (ipa_set_jf_unknown): Likewise.
1746 (ipa_compute_jump_functions_for_edge): Likewise.
1747 (ipa_node_params_t::duplicate): Likewise.
1748 (ipa_write_jump_function): Likewise.
1749 (ipa_read_jump_function): Likewise.
1750 (write_ipcp_transformation_info): Likewise.
1751 (read_ipcp_transformation_info): Likewise.
1752 (ipcp_update_vr): New.
1753 (ipcp_transform_function): Handle VR.
1754 * ipa-prop.h (struct ipa_vr): New.
1755 * cgraph.c: Include tree-vrp.h.
1756 * cgraphunit.c: Likewise.
1757 * ipa-utils.c: Likewise.
1758 * ipa.c: Likewise.
1759 * opts.c: Likewise.
1760 * toplev.c: Likewise.
1761 * ipa-devirt.c: Likewise.
1762 * ipa-inline-transform.c: Likewise.
1763 * ipa-inline.c: Likewise.
1764 * ipa-profile.c: Likewise.
1765
1766 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1767
1768 * doc/invoke.texi: Document -fdump-tree-evrp.
1769 * passes.def: Define new pass_early_vrp.
1770 * timevar.def: Define new TV_TREE_EARLY_VRP.
1771 * tree-pass.h (make_pass_early_vrp): New.
1772 * tree-ssa-propagate.c: Make replace_uses_in non static.
1773 * tree-ssa-propagate.h: Export replace_uses_in.
1774 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
1775 (extract_range_from_assert): Factor out
1776 extract_range_for_var_from_comparison_expr.
1777 (vrp_initialize_lattice): New.
1778 (vrp_initialize): Factor out vrp_initialize_lattice.
1779 (vrp_valueize): Fix it to reject complex value ranges.
1780 (vrp_free_lattice): New.
1781 (evrp_dom_walker::before_dom_children): Likewise.
1782 (evrp_dom_walker::after_dom_children): Likewise.
1783 (evrp_dom_walker::push_value_range): Likewise.
1784 (evrp_dom_walker::pop_value_range): Likewise.
1785 (execute_early_vrp): Likewise.
1786 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
1787 (make_pass_early_vrp): New.
1788
1789 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
1790
1791 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
1792 instead of exact_log2.
1793
1794 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
1795
1796 PR target/77621
1797 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1798 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1799 (ix86_add_stmt_cost): Penalize DFmode vector operations
1800 for !TARGET_VECTORIZE_DOUBLE.
1801
1802 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
1803
1804 * doc/invoke.texi (Warning Options): Simplify language.
1805 (Optimize Options): Complete sentence.
1806
1807 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
1808
1809 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
1810 early_finish hook.
1811
1812 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1813
1814 PR target/71395
1815 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
1816 inits on power8 and above, use the VMRGEW instruction instead of a
1817 permute.
1818
1819 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
1820 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
1821 initialization.
1822
1823 2016-09-20 Tamar Christina <tamar.christina@arm.com>
1824
1825 * config/aarch64/arm_neon.h
1826 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
1827 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
1828 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
1829
1830 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1831
1832 * config/var/vax.h (ELIMINABLE_REGS): Define.
1833 (INITIAL_ELIMINATION_OFFSET): Define.
1834
1835 2016-09-20 Jakub Jelinek <jakub@redhat.com>
1836
1837 PR middle-end/77624
1838 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1839 cast to void * if the cast is from some other pointer type.
1840
1841 2016-09-20 Richard Biener <rguenther@suse.de>
1842
1843 PR tree-optimization/77646
1844 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
1845 a VDEF.
1846
1847 2016-09-20 Tamar Christina <tamar.christina@arm.com>
1848
1849 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
1850 attributes to all inlined functions and make them extern.
1851
1852 2016-09-20 Richard Biener <rguenther@suse.de>
1853
1854 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
1855 hook.
1856 * debug.c (do_nothing_debug_hooks): Adjust.
1857 * dbxout.c (dbx_debug_hooks): Likewise.
1858 * sdbout.c (sdb_debug_hooks): Likewise.
1859 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
1860 (dwarf2out_finish): Move producer, filename and
1861 path annotation ...
1862 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
1863 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
1864
1865 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1866
1867 PR c++/77434
1868 * doc/invoke.texi: Document -Wint-in-bool-context.
1869
1870 PR middle-end/77421
1871 * dwarf2out.c (output_loc_operands): Fix an assertion.
1872
1873 2016-09-19 Joseph Myers <joseph@codesourcery.com>
1874
1875 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
1876 (CR_DECIMAL_DIG): New macro.
1877
1878 2016-09-19 Joseph Myers <joseph@codesourcery.com>
1879
1880 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
1881 element.
1882
1883 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
1884
1885 PR rtl-optimization/77416
1886 * lra-remat.c (operand_to_remat): Process hard coded insn
1887 registers.
1888
1889 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1890
1891 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
1892 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
1893
1894 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
1895
1896 * target.def (lra_p): Wordsmithing.
1897 * doc/tm.texi: Regenerate.
1898
1899 2016-09-19 Jakub Jelinek <jakub@redhat.com>
1900 Jan Hubicka <jh@suse.cz>
1901
1902 PR target/77587
1903 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1904 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1905 Call ultimate_alias_target just once, not up to 4 times.
1906
1907 2016-09-19 Richard Biener <rguenther@suse.de>
1908
1909 * dwarf2out.c (early_dwarf_finished): New global.
1910 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
1911 is false.
1912 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
1913 if called from LTO exit early.
1914 (dwarf2out_late_global_decl): When being during the early
1915 debug phase do not add locations but only const value attributes.
1916 Adjust the way we generate early DIEs for LTO.
1917
1918 2016-09-19 Richard Biener <rguenther@suse.de>
1919
1920 PR middle-end/77605
1921 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1922 proper niter to bound the loops.
1923
1924 2016-09-19 Richard Biener <rguenther@suse.de>
1925
1926 PR tree-optimization/77514
1927 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1928 search for folded stmt.
1929
1930 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
1931
1932 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
1933 * tree-pass.h (make_pass_early_thread_jumps): Declare.
1934 * tree-ssa-threadbackward.c (fsm_find_thread_path,
1935 fsm_find_thread_path, profitable_jump_thread_path,
1936 fsm_find_control_statement_thread_paths,
1937 find_jump_threads_backwards): Add speed_p parameter.
1938 (pass_data_early_thread_jumps): New pass.
1939 (make_pass_early_thread_jumps): New function.
1940
1941 2016-09-17 Andreas Schwab <schwab@suse.de>
1942
1943 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
1944 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1945
1946 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
1947
1948 * recog.c (rest_of_handle_split_after_reload): Delete.
1949 (pass_split_after_reload::gate): New method.
1950 (pass_split_after_reload::execute): Call split_all_insns directly.
1951
1952 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
1953
1954 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1955 parameters for functions taking long long arguments.
1956
1957 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1958
1959 PR target/77613
1960 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
1961 splat with truncate.
1962
1963 2016-09-16 Jason Merrill <jason@redhat.com>
1964
1965 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
1966 New.
1967 * hwint.c (exact_log2): Use pow2p_hwi.
1968 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
1969 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
1970 * builtins.c (get_object_alignment_2, get_object_alignment)
1971 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
1972 least_bit_hwi.
1973 * calls.c (compute_argument_addresses, store_one_arg): Use
1974 least_bit_hwi.
1975 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
1976 * combine.c (force_to_mode): Use least_bit_hwi.
1977 (contains_muldiv, find_split_point, combine_simplify_rtx)
1978 (simplify_if_then_else, simplify_set, force_to_mode)
1979 (if_then_else_cond, simplify_and_const_int_1)
1980 (simplify_compare_const): Use pow2p_hwi.
1981 * cse.c (fold_rtx): Use pow2p_hwi.
1982 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
1983 Use least_bit_hwi.
1984 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
1985 (init_expmed_one_conv): Use pow2p_hwi.
1986 * expr.c (is_aligning_offset): Use pow2p_hwi.
1987 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
1988 (fold_binary_loc): Use pow2p_hwi.
1989 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
1990 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
1991 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
1992 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
1993 Use least_bit_hwi.
1994 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
1995 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
1996 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
1997 * omp-low.c (oacc_loop_fixed_partitions)
1998 (oacc_loop_auto_partitions): Use least_bit_hwi.
1999 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
2000 * stor-layout.c (place_field): Use least_bit_hwi.
2001 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
2002 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
2003 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
2004 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
2005 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
2006 * tree-vect-data-refs.c (vect_analyze_group_access_1)
2007 (vect_grouped_store_supported, vect_grouped_load_supported)
2008 (vect_permute_load_chain, vect_shift_permute_load_chain)
2009 (vect_transform_grouped_load): Use pow2p_hwi.
2010 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
2011 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
2012 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
2013 least_bit_hwi.
2014 * tsan.c (instrument_expr): Use least_bit_hwi.
2015 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
2016
2017 2016-09-16 Andreas Schwab <schwab@suse.de>
2018
2019 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
2020 OFFSET, not offset.
2021 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2022
2023 2016-09-16 Jakub Jelinek <jakub@redhat.com>
2024
2025 PR target/77526
2026 * combine.c (rest_of_handle_combine): If any edges have been purged,
2027 free dominators if available.
2028
2029 2016-09-16 Jakub Jelinek <jakub@redhat.com>
2030 Eric Botcazou <ebotcazou@adacore.com>
2031
2032 PR middle-end/77594
2033 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
2034 through into expand_addsub_overflow after expand_neg_overflow.
2035
2036 2016-09-15 David Malcolm <dmalcolm@redhat.com>
2037
2038 * diagnostic-show-locus.c
2039 (selftest::test_fixit_insert_containing_newline): New function.
2040 (selftest::test_fixit_replace_containing_newline): New function.
2041 (selftest::diagnostic_show_locus_c_tests): Call the above.
2042
2043 2016-09-15 Bin Cheng <bin.cheng@arm.com>
2044
2045 PR tree-optimization/77503
2046 * tree-vect-loop.c (vectorizable_reduction): Record reduction
2047 code for CONST_COND_REDUCTION at analysis stage and use it at
2048 transform stage.
2049 * tree-vectorizer.h (struct _stmt_vec_info): New field.
2050 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2051 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2052 field.
2053
2054 2016-09-15 Richard Biener <rguenther@suse.de>
2055
2056 PR middle-end/77544
2057 * fold-const.c (split_tree): Do not split constant ~X.
2058
2059 2016-09-15 Jakub Jelinek <jakub@redhat.com>
2060
2061 PR rtl-optimization/77425
2062 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2063 is NULL.
2064
2065 PR middle-end/77475
2066 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2067 use %qs instead of %s where desirable, use argument instead of arg in
2068 the diagnostic wording, add list of supported strategies and
2069 spellcheck hint.
2070 (ix86_option_override_internal): Emit target("m...") instead of
2071 option("m...") in the diagnostic. Use %qs instead of %s in invalid
2072 -march/-mtune option diagnostic. Add list of supported arches/tunings
2073 and spellcheck hint. Remove prefix, suffix and sw variables, use
2074 main_args_p ? "..." : "..." in diagnostics to make translation
2075 possible.
2076
2077 2016-09-15 Richard Biener <rguenther@suse.de>
2078
2079 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2080 extra offset argument.
2081 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2082 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2083 to reflect new offset parameter.
2084 * doc/tm.texi: Regenerate.
2085 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2086 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2087 offset argument.
2088 (darwin_asm_output_dwarf_offset): Likewise.
2089 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2090 argument.
2091 (darwin_asm_output_dwarf_offset): Pass offset argument through.
2092 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2093 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2094
2095 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
2096
2097 PR fortran/72743
2098 * ipa-icf.c (set_alias_uids): New function.
2099 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2100 all the merged variable's referring aliases.
2101
2102 2016-09-15 Richard Biener <rguenther@suse.de>
2103
2104 PR tree-optimization/77514
2105 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2106 only forced_stmts sequence.
2107
2108 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
2109
2110 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2111 * cfgexpand.c (update_alias_info_with_stack_vars): Use
2112 FOR_EACH_SSA_NAME to iterate over SSA variables.
2113 (pass_expand::execute): Likewise.
2114 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2115 * tree-cfg.c (dump_function_to_file): Likewise.
2116 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2117 (update_ssa): Likewise.
2118 * tree-ssa-alias.c (dump_alias_info): Likewise.
2119 * tree-ssa-ccp.c (ccp_finalize): Likewise.
2120 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2121 (create_outofssa_var_map): Likewise.
2122 (coalesce_ssa_name): Likewise.
2123 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2124 * tree-ssa-pre.c (compute_avail): Likewise.
2125 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2126 (scc_vn_restore_ssa_info): Likewise.
2127 (free_scc_vn): Likwise.
2128 (run_scc_vn): Likewise.
2129 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2130 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2131 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2132 * tree-ssa.c (verify_ssa): Likewise.
2133
2134 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
2135
2136 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2137 and mips64r2 as default 32-bit and 64-bit architectures.
2138 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2139 as default 32-bit and 64-bit architectures.
2140
2141 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
2142
2143 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2144 of succ edge.
2145
2146 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2147
2148 * target.def (lra_p): Change commentary (for the manual) for the
2149 new default.
2150 * doc/tm.texi: Regenerate.
2151
2152 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2153
2154 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2155 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2156 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2157 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2158
2159 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2160
2161 * targhooks.c (default_lra_p): Return true instead of false.
2162
2163 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
2164
2165 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2166 hook_bool_void_false.
2167 * config/avr/avr.c: Ditto.
2168 * config/bfin/bfin.c: Ditto.
2169 * config/c6x/c6x.c: Ditto.
2170 * config/cr16/cr16.c: Ditto.
2171 * config/cris/cris.c: Ditto.
2172 * config/epiphany/epiphany.c: Ditto.
2173 * config/fr30/fr30.c: Ditto.
2174 * config/frv/frv.c: Ditto.
2175 * config/h8300/h8300.c: Ditto.
2176 * config/ia64/ia64.c: Ditto.
2177 * config/iq2000/iq2000.c: Ditto.
2178 * config/lm32/lm32.c: Ditto.
2179 * config/m32c/m32c.c: Ditto.
2180 * config/m32r/m32r.c: Ditto.
2181 * config/m68k/m68k.c: Ditto.
2182 * config/mcore/mcore.c: Ditto.
2183 * config/microblaze/microblaze.c: Ditto.
2184 * config/mmix/mmix.c: Ditto.
2185 * config/mn10300/mn10300.c: Ditto.
2186 * config/moxie/moxie.c: Ditto.
2187 * config/msp430/msp430.c: Ditto.
2188 * config/nios2/nios2.c: Ditto.
2189 * config/nvptx/nvptx.c: Ditto.
2190 * config/pa/pa.c: Ditto.
2191 * config/pdp11/pdp11.c: Ditto.
2192 * config/rl78/rl78.c: Ditto.
2193 * config/sparc/sparc.c: Ditto.
2194 * config/spu/spu.c: Ditto.
2195 * config/stormy16/stormy16.c: Ditto.
2196 * config/tilegx/tilegx.c: Ditto.
2197 * config/tilepro/tilepro.c: Ditto.
2198 * config/v850/v850.c: Ditto.
2199 * config/vax/vax.c: Ditto.
2200 * config/visium/visium.c: Ditto.
2201 * config/xtensa/xtensa.c: Ditto.
2202
2203 2016-09-14 Jakub Jelinek <jakub@redhat.com>
2204
2205 PR sanitizer/68260
2206 * tsan.c: Include target.h.
2207 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2208 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2209 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2210 BUILT_IN_ATOMIC_TEST_AND_SET entries.
2211 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2212
2213 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2214 Martin Liska <mliska@suse.cz>
2215
2216 PR middle-end/77574
2217 * predict.c (force_edge_cold): Add braces to a condition.
2218
2219 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
2220
2221 PR rtl-optimization/77289
2222 * lra-constraints.c (get_final_hard_regno): Removed.
2223 (get_hard_regno): Add new parameter final_p.
2224 (get_reg_class): Directly call lra_get_elimination_hard_regno.
2225 (operands_match_p): Adjust call to get_hard_regno.
2226 (uses_hard_regs_p): Likewise.
2227 (process_alt_operands): Likewise.
2228
2229 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
2230
2231 PR target/70713
2232 * config/msp430/msp430.c (msp430_start_function): Emit an error
2233 if a function is both weak and specifies an interrupt number.
2234
2235 2016-09-13 Jakub Jelinek <jakub@redhat.com>
2236
2237 PR tree-optimization/77454
2238 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2239 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
2240 Formatting fix.
2241
2242 2016-09-13 Tamar Christina <tamar.christina@arm.com>
2243
2244 * config/aarch64/aarch64-builtins.c
2245 (aarch64_init_simd_builtins): Fix builtin type signature printing.
2246
2247 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
2248
2249 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2250 SFmode and SCmode arguments by reference.
2251
2252 2016-09-13 David Malcolm <dmalcolm@redhat.com>
2253
2254 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2255 Rename to...
2256 (selftest::test_one_liner_fixit_insert_before): ...this, and update
2257 for renaming of add_fixit_insert to add_fixit_insert_before.
2258 (selftest::test_one_liner_fixit_insert_after): New function.
2259 (selftest::test_one_liner_fixit_validation_adhoc_locations):
2260 Update for renaming of add_fixit_insert to add_fixit_insert_before.
2261 (selftest::test_one_liner_many_fixits): Likewise.
2262 (selftest::test_diagnostic_show_locus_one_liner): Update for
2263 renaming, call new test function.
2264 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2265 renaming of add_fixit_insert to add_fixit_insert_before.
2266 (selftest::test_fixit_consolidation): Likewise.
2267 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2268 Likewise.
2269 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2270 (selftest::test_applying_fixits_insert_before): ...this.
2271 (selftest::test_applying_fixits_insert): Update for renaming of
2272 add_fixit_insert to add_fixit_insert_before.
2273 (selftest::test_applying_fixits_insert_after): New function.
2274 (selftest::test_applying_fixits_insert_after_at_line_end): New
2275 function.
2276 (selftest::test_applying_fixits_insert_after_failure): New function.
2277 (selftest::test_applying_fixits_multiple): Update for renaming of
2278 add_fixit_insert to add_fixit_insert_before.
2279 (selftest::change_line): Likewise.
2280 (selftest::test_applying_fixits_unreadable_file): Likewise.
2281 (selftest::test_applying_fixits_line_out_of_range): Likewise.
2282 (selftest::test_applying_fixits_column_validation): Likewise.
2283 (selftest::test_applying_fixits_column_validation): Likewise.
2284 (selftest::edit_context_c_tests): Update for renamed test function;
2285 call new test functions.
2286
2287 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
2288
2289 PR tree-optimization/77536
2290 PR rtl-optimization/68212
2291 * config/rs6000/rs6000.md (div->recip splitter): Remove
2292 optimize_insn_for_speed_p condition.
2293
2294 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
2295
2296 * optabs.c (prepare_cmp_insn): Update documentation comment.
2297
2298 2016-09-13 Jakub Jelinek <jakub@redhat.com>
2299 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2300
2301 PR middle-end/77475
2302 * opts.h (candidates_list_and_hint): Declare.
2303 * opts-common.c (candidates_list_and_hint): New function.
2304 (cmdline_handle_error): Use it.
2305
2306 2016-09-12 David Malcolm <dmalcolm@redhat.com>
2307
2308 * edit-context.c (edited_line::get_len): New accessor.
2309 (edited_file::print_diff): Split out hunk-printing into...
2310 (edited_file::print_diff_hunk): New method.
2311 (edited_file::print_diff_line): New method.
2312
2313 2016-09-12 Andrew Pinski <apinski@cavium.com>
2314
2315 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2316 New tuning option.
2317 * config/aarch64/aarch64.c (thunderx_tunings): Enable
2318 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2319 (aarch64_operands_ok_for_ldpstp): Return false if
2320 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2321 was SImode and the alignment is less than 8 byte.
2322 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2323
2324 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
2325
2326 PR target/77570
2327 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2328
2329 2016-09-12 Marek Polacek <polacek@redhat.com>
2330
2331 * doc/extend.texi: Use lowercase "boolean".
2332 * doc/invoke.texi: Likewise.
2333 * doc/md.texi: Likewise.
2334 * target.def: Likewise.
2335 * doc/tm.texi: Regenerated.
2336
2337 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2338
2339 PR middle-end/77426
2340 * expmed.c (synth_mult): Delete duplicate mode check.
2341
2342 2016-09-10 Tom de Vries <tom@codesourcery.com>
2343
2344 PR C/71602
2345 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2346 va_list type only.
2347 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2348 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2349
2350 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
2351
2352 PR rtl-optimization/77289
2353 * lra-constraints.c (get_final_hard_regno): Add support for non hard
2354 register numbers. Remove support for subregs.
2355 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
2356 (get_reg_class): Delete removed get_final_hard_regno() argument.
2357 (uses_hard_regs_p): Call get_final_hard_regno().
2358
2359 2016-09-09 Martin Sebor <msebor@redhat.com>
2360
2361 PR c/77520
2362 PR c/77521
2363 * pretty-print.c (pp_quoted_string): New function.
2364 (pp_format): Call it for %c and %s directives.
2365
2366 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
2367
2368 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2369 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2370 INITIAL_ELIMINATION_OFFSET) : Update documentation.
2371 * target.def (frame_pointer_required, can_eliminate): Likewise.
2372 * doc/tm.texi: Regenerated.
2373 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2374 ELIMINABLE_REGS.
2375 * df-scan.c (df_hard_reg_init): Likewise.
2376 * ira.c (ira_setup_eliminable_regset): Likewise.
2377 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2378 init_elim_table): Likewise.
2379 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2380 set_initial_elim_offsets, update_eliminables,
2381 init_elim_table): Likewise.
2382 * rtlanal.c (get_initial_register_offset): Likewise.
2383 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2384 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2385 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2386 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2387 * config/fr30/fr30.h: Fix comment.
2388 * config/frv/frv.c: Likewise.
2389 * config/frv/frv.h: Likewise.
2390 * config/ft32/ft32.h: Likewise.
2391 * config/visium/visium.h: Likewise.
2392 * config/pa/pa64-linux.h: Likewise.
2393 * config/v850/v850.h: Likewise.
2394 * config/cris/cris.c: Likewise.
2395 * config/ia64/ia64.h: Likewise.
2396 * config/moxie/moxie.h: Likewise.
2397 * config/m32r/m32r.h: Likewise.
2398
2399 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2400
2401 PR target/77267
2402 * config.in: Regenerate.
2403 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2404 New macro.
2405 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2406 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2407 static-libmpxwrappers case.
2408 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2409 MPX_LD_AS_NEEDED_GUARD_POP.
2410 * configure: Regenerate.
2411 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2412 defined if linker support "--push-state"/"--pop-state".
2413
2414 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2415
2416 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2417
2418 2016-09-09 Joseph Myers <joseph@codesourcery.com>
2419
2420 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2421 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2422 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2423 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2424 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2425 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2426 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2427 Document.
2428 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2429 width macros from TS 18661-1.
2430 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2431
2432 2016-09-08 Jakub Jelinek <jakub@redhat.com>
2433
2434 PR fortran/77516
2435 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2436 OMP_CLAUSE_SAFELEN_EXPR.
2437
2438 2016-09-07 David Malcolm <dmalcolm@redhat.com>
2439
2440 * Makefile.in (OBJS): Add substring-locations.o.
2441 * langhooks-def.h (class substring_loc): New forward decl.
2442 (lhd_get_substring_location): New decl.
2443 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2444 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2445 * langhooks.c (lhd_get_substring_location): New function.
2446 * langhooks.h (class substring_loc): New forward decl.
2447 (struct lang_hooks): Add field get_substring_location.
2448 * substring-locations.c: New file, taking definition of
2449 format_warning_va and format_warning_at_substring from
2450 c-family/c-format.c, making them non-static.
2451 * substring-locations.h (class substring_loc): Move class here
2452 from c-family/c-common.h. Add and rewrite comments.
2453 (format_warning_va): New decl.
2454 (format_warning_at_substring): New decl.
2455 (get_source_location_for_substring): Add comment.
2456
2457 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
2458
2459 * config/i386/i386.c: Add 'U' suffix to processor feature bits
2460 to avoid -Wnarrowing warning.
2461 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2462 * opts.c: Likewise for SANITIZER_OPT bitmasks.
2463
2464 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
2465
2466 * config/aarch64/aarch64.c (aarch64_legitimize_address):
2467 Avoid use of base_offset if offset already in range.
2468
2469 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
2470
2471 * config/sh/sh-protos.h (struct sh_atomic_model,
2472 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2473 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2474 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2475 * config/sh/sh.h (struct sh_atomic_model,
2476 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2477 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2478 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2479 Guard with __cplusplus.
2480
2481 2016-09-06 Jakub Jelinek <jakub@redhat.com>
2482
2483 PR target/69255
2484 * config/i386/i386.c (ix86_expand_builtin): For builtin with
2485 unsupported or unknown ISA, use expand_call.
2486
2487 2016-09-06 Martin Liska <mliska@suse.cz>
2488
2489 PR gcov-profile/77378
2490 PR gcov-profile/77466
2491 * tree-profile.c (tree_profiling): Detect whether target can use
2492 -fprofile-update=atomic.
2493
2494 2016-09-06 Richard Biener <rguenther@suse.de>
2495
2496 PR tree-optimization/77479
2497 * tree-vrp.c (update_value_range): Extend overflow handling to
2498 VARYING.
2499
2500 2016-09-05 Jakub Jelinek <jakub@redhat.com>
2501
2502 PR target/77476
2503 * config/i386/i386.md (isa): Add x64_avx512bw.
2504 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2505 (kmov_isa): New mode attr.
2506 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2507 (*zero_extend<mode>si2): Likewise.
2508 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2509
2510 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
2511
2512 * doc/invoke.texi (SPU Options): nops -> NOPs.
2513 (x86 Options): Ditto.
2514
2515 2016-09-05 Jakub Jelinek <jakub@redhat.com>
2516
2517 PR middle-end/77475
2518 * toplev.c (process_options): Temporarily set input_location
2519 to UNKNOWN_LOCATION around targetm.target_option.override () call.
2520
2521 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
2522
2523 PR rtl-optimization/77452
2524 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2525 inner-mode reference to a CONST_VECTOR constant in the constant pool.
2526
2527 2016-09-05 Marek Polacek <polacek@redhat.com>
2528
2529 PR c/77423
2530 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2531
2532 2016-09-05 Jakub Jelinek <jakub@redhat.com>
2533
2534 PR other/77421
2535 * gensupport.c (alter_output_for_subst_insn): Remove redundant
2536 *insn_out == '*' test. Don't copy unnecessary to yet another
2537 memory buffer, and don't leak it.
2538
2539 PR rtl-optimization/77425
2540 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2541
2542 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
2543
2544 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2545
2546 2016-09-02 David Malcolm <dmalcolm@redhat.com>
2547
2548 * common.opt (fdiagnostics-generate-patch): New option.
2549 * diagnostic.c: Include "edit-context.h".
2550 (diagnostic_initialize): Initialize context->edit_context_ptr.
2551 (diagnostic_finish): Delete context->edit_context_ptr.
2552 (diagnostic_report_diagnostic): Add fix-it hints from the
2553 diagnostic to context->edit_context_ptr, if any.
2554 * diagnostic.h (class edit_context): Add forward decl.
2555 (struct diagnostic_context): Add field "edit_context_ptr".
2556 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2557 -fdiagnostics-generate-patch.
2558 (-fdiagnostics-generate-patch): New item.
2559 * toplev.c: Include "edit-context.h".
2560 (process_options): Set global_dc->edit_context_ptr to a new
2561 edit_context if the options need one.
2562 (toplev::main): Handle -fdiagnostics-generate-patch by using
2563 global_dc->edit_context_ptr.
2564
2565 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2566
2567 PR c/65467
2568 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2569 map and firstprivate clauses on target construct for _Atomic
2570 qualified decls.
2571 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2572 on target construct for _Atomic qualified decls.
2573 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2574 decls.
2575 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2576 _Atomic qualified arguments not mentioned in uniform clause.
2577
2578 2016-09-02 David Malcolm <dmalcolm@redhat.com>
2579
2580 * Makefile.in (OBJS-libcommon): Add edit-context.o.
2581 * diagnostic-color.c (color_dict): Add "diff-filename",
2582 "diff-hunk", "diff-delete", and "diff-insert".
2583 (parse_gcc_colors): Update default value of GCC_COLORS in comment
2584 to reflect above changes.
2585 * doc/invoke.texi (-fdiagnostics-color): Update description of
2586 default GCC_COLORS, and of the supported capabilities.
2587 * edit-context.c: New file.
2588 * edit-context.h: New file.
2589 * input.c (struct fcache): Add field "missing_trailing_newline".
2590 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
2591 true.
2592 (add_file_to_cache_tab): Likewise.
2593 (fcache::fcache): Likewise.
2594 (get_next_line): Update c->missing_trailing_newline.
2595 (location_missing_trailing_newline): New function.
2596 * input.h (location_missing_trailing_newline): New decl.
2597 * selftest-run-tests.c (selftest::run_tests): Call
2598 edit_context_c_tests.
2599 * selftest.h (edit_context_c_tests): New decl.
2600
2601 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2602 Richard Biener <rguenth@suse.de>
2603
2604 PR tree-optimization/77444
2605 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
2606 as steptype, remove redundant initialization.
2607
2608 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2609
2610 PR sanitizer/77396
2611 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
2612 (sanopt_optimize_walker): Optimize away
2613 __asan_before_dynamic_init (...) followed by
2614 __asan_after_dynamic_init () without intervening memory loads/stores.
2615 * ipa-pure-const.c (special_builtin_state): Handle
2616 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
2617 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
2618
2619 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2620
2621 * cfg.c (free_original_copy_tables): Replace second assignment of
2622 bb_copy = NULL by bb_original = NULL.
2623
2624 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2625
2626 PR other/77421
2627 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
2628 assignment added in r216794.
2629
2630 2016-09-02 David Malcolm <dmalcolm@redhat.com>
2631
2632 * Makefile.in (OBJS): Add typed-splay-tree.o.
2633 * selftest-run-tests.c (selftest::run_tests): Call
2634 typed_splay_tree_c_tests.
2635 * selftest.h (typed_splay_tree_c_tests): New decl.
2636 * typed-splay-tree.c: New file.
2637 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
2638 (typed_splay_tree::max): New method.
2639 (typed_splay_tree::min): New method.
2640 (typed_splay_tree::foreach): New method.
2641 (typed_splay_tree::closure): New struct.
2642 (typed_splay_tree::inner_foreach_fn): New function.
2643
2644 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2645
2646 * ipa-cp.c (ipcp_store_bits_results): Change option name from
2647 -fipa-cp-bit to -fipa-bit-cp.
2648
2649 2016-09-01 Martin Sebor <msebor@redhat.com>
2650
2651 PR tree-optimization/71831
2652 * tree-object-size.h: Return bool instead of the size and add
2653 argument for the size.
2654 * tree-object-size.c (compute_object_offset): Update signature.
2655 (addr_object_size): Same.
2656 (compute_builtin_object_size): Return bool instead of the size
2657 and add argument for the size. Handle POINTER_PLUS_EXPR when
2658 optimization is disabled.
2659 (expr_object_size): Adjust.
2660 (plus_stmt_object_size): Adjust.
2661 (pass_object_sizes::execute): Adjust.
2662 * builtins.c (fold_builtin_object_size): Adjust.
2663 * doc/extend.texi (Object Size Checking): Update.
2664 * ubsan.c (instrument_object_size): Adjust.
2665
2666 2016-09-01 Martin Sebor <msebor@redhat.com>
2667
2668 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
2669 it fits the output of the formatted function regardless of its
2670 arguments.
2671 * gcc/genmodes.c (parser::parse_expr): Same.
2672 * gimplify.c (gimplify_asm_expr): Same.
2673 * passes.c (pass_manager::register_one_dump_file): Same.
2674 * print-tree.c (print_node): Same.
2675
2676 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2677
2678 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
2679
2680 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2681
2682 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
2683
2684 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2685
2686 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
2687 * config/rs6000/vector.md: Ditto.
2688 * config/rs6000/vsx.md: Ditto.
2689
2690 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
2691
2692 * ipa-inline-analysis.c (param_change_prob): Get to the base object
2693 first in all cases.
2694
2695 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2696
2697 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
2698 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
2699 *return_and_restore_gpregs_<mode>_r11,
2700 *return_and_restore_gpregs_<mode>_r12,
2701 *return_and_restore_gpregs_<mode>_r1,
2702 *return_and_restore_fpregs_<mode>_r11,
2703 *return_and_restore_fpregs_<mode>_r12,
2704 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
2705 directly instead of via the "l" constraint. Renumber operands.
2706 Fix whitespace.
2707
2708 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2709
2710 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
2711 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
2712 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
2713 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
2714 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
2715 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
2716 *call_value_nonlocal_darwin64, reload_macho_picbase,
2717 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
2718 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
2719 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
2720 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
2721 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
2722 *save_fpregs_<mode>_r1): Ditto.
2723 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
2724 *return_and_restore_gpregs_spe): Ditto.
2725
2726 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2727
2728 * config/rs6000/rs6000.md
2729 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
2730 the use of the link register.
2731 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
2732
2733 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2734 Michael Meissner <meissner@linux.vnet.ibm.com>
2735
2736 PR target/72827
2737 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
2738 reg+reg addressing for TImode.
2739 (rs6000_legitimate_address_p): Only allow register indirect
2740 addressing for TImode, even without TARGET_QUAD_MEMORY.
2741
2742 2016-09-01 Richard Biener <rguenther@suse.de>
2743
2744 PR middle-end/77436
2745 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
2746 check whether the result fits the desired result type.
2747
2748 2016-09-01 Nathan Sidwell <nathan@acm.org>
2749
2750 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
2751
2752 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
2753
2754 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
2755 New function.
2756 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
2757
2758 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2759
2760 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
2761 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
2762 for comparisons of integer ZERO_EXTEND against zero.
2763
2764 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
2765
2766 * config/i386/i386.c (ix86_option_override_internal): Also disable the
2767 STV pass if -mstackrealign is enabled.
2768
2769 2016-08-31 Ilya Verbin <iverbin@gmail.com>
2770
2771 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
2772 AVX512IFMA.
2773
2774 2016-08-31 David Malcolm <dmalcolm@redhat.com>
2775
2776 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
2777 (layout_range::intersects_line_p): New method.
2778 (test_range_contains_point_for_single_point): Rename to...
2779 (test_layout_range_for_single_point): ...this, and add testing
2780 for layout_range::intersects_line_p.
2781 (test_range_contains_point_for_single_line): Rename to...
2782 (test_layout_range_for_single_line): ...this, and add testing
2783 for layout_range::intersects_line_p.
2784 (test_range_contains_point_for_multiple_lines): Rename to...
2785 (test_layout_range_for_multiple_lines): ...this, and add testing
2786 for layout_range::intersects_line_p.
2787 (layout::layout): Populate m_fixit_hints.
2788 (layout::get_expanded_location): Handle the case of a line-span
2789 for a fix-it hint.
2790 (layout::validate_fixit_hint_p): New method.
2791 (get_line_span_for_fixit_hint): New function.
2792 (layout::calculate_line_spans): Add spans for fixit-hints.
2793 (layout::should_print_annotation_line_p): New method.
2794 (layout::print_any_fixits): Drop param "richloc", instead using
2795 validated fixits in m_fixit_hints. Add "const" to hint pointers.
2796 (diagnostic_show_locus): Avoid printing blank annotation lines.
2797 (selftest::test_diagnostic_context::test_diagnostic_context):
2798 Initialize show_column and start_span.
2799 (selftest::test_diagnostic_context::start_span_cb): New static
2800 function.
2801 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
2802 (selftest::diagnostic_show_locus_c_tests): Update for function
2803 renamings. Call test_diagnostic_show_locus_fixit_lines.
2804
2805 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
2806
2807 PR tree-optimization/73714
2808 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
2809
2810 2016-08-31 David Malcolm <dmalcolm@redhat.com>
2811
2812 * selftest.c: Move "namespace selftest {" to top of file,
2813 removing explicit "selftest::" qualifiers throughout.
2814
2815 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
2816
2817 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
2818 New types.
2819 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
2820 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
2821 Replace builtin with vector extension.
2822 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
2823 New types.
2824 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
2825 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
2826 Replace builtin with vector extension.
2827 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
2828 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
2829 Replace builtin with vector extension.
2830 * config/i386/xmmintrin.h (__m128_u): New type.
2831 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
2832 (_mm_load_ps, _mm_store_ps): Simplify.
2833
2834 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
2835
2836 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
2837
2838 2016-08-30 David Malcolm <dmalcolm@redhat.com>
2839
2840 * diagnostic-show-locus.c (colorizer::begin_state): Support more
2841 than 3 ranges per diagnostic by alternating between color 1 and
2842 color 2.
2843 (layout::layout): Replace use of rich_location::MAX_RANGES
2844 with richloc->get_num_locations ().
2845 (layout::calculate_line_spans): Replace use of
2846 rich_location::MAX_RANGES with m_layout_ranges.length ().
2847 (layout::print_annotation_line): Handle arbitrary numbers of
2848 ranges in caret-printing by defaulting to '^'.
2849 (selftest::test_one_liner_many_fixits): New function.
2850 (test_diagnostic_show_locus_one_liner): Call it.
2851 * diagnostic.c (diagnostic_initialize): Update for renaming
2852 of rich_location::MAX_RANGES to
2853 rich_location::STATICALLY_ALLOCATED_RANGES.
2854 * diagnostic.h (struct diagnostic_context): Likewise.
2855
2856 2016-08-30 David Malcolm <dmalcolm@redhat.com>
2857
2858 * selftest.c (selftest::named_temp_file::named_temp_file): New
2859 ctor.
2860 (selftest::temp_source_file::~temp_source_file): Move to...
2861 (selftest::named_temp_file::~named_temp_file): ...here.
2862 (selftest::test_named_temp_file): New function.
2863 (selftest::selftest_c_tests): Call test_named_temp_file.
2864 * selftest.h (class named_temp_file): New class.
2865 (class temp_source_file): Convert to a subclass of named_temp_file.
2866
2867 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
2868
2869 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
2870 USEs of LR_REGNO in returns and sibcalls.
2871 (rs6000_output_mi_thunk): Similar.
2872 (rs6000_sibcall_aix): Similar.
2873 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
2874 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
2875 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
2876 Remove the USE of LR_REGNO from the patterns as well. Delete an
2877 obsolete comment.
2878 (return_internal_<mode>): Delete.
2879
2880 2016-08-30 Tamar Christina <tamar.christina@arm.com>
2881
2882 * gcc/config/aarch64/aarch64-simd.md
2883 (aarch64_ld2<mode>_dreg_le): New.
2884 (aarch64_ld2<mode>_dreg_be): New.
2885 (aarch64_ld2<mode>_dreg): Removed.
2886 (aarch64_ld3<mode>_dreg_le): New.
2887 (aarch64_ld3<mode>_dreg_be): New.
2888 (aarch64_ld3<mode>_dreg): Removed.
2889 (aarch64_ld4<mode>_dreg_le): New.
2890 (aarch64_ld4<mode>_dreg_be): New.
2891 (aarch64_ld4<mode>_dreg): Removed.
2892 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
2893
2894 2016-08-30 David Malcolm <dmalcolm@redhat.com>
2895
2896 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
2897 redundant location param.
2898 (test_one_liner_fixit_remove): Likewise.
2899 (test_one_liner_fixit_replace): Likewise.
2900 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
2901 * gcc-rich-location.c
2902 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
2903 get_range_from_loc. Drop overload taking a const char *.
2904 * gcc-rich-location.h
2905 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
2906 a const char *.
2907
2908 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2909
2910 * config/linux.c (linux_libc_has_function): Return true on musl.
2911
2912 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2913
2914 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
2915
2916 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
2917
2918 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
2919 used for abnormal egdes.
2920
2921 2016-08-30 Jakub Jelinek <jakub@redhat.com>
2922
2923 PR tree-optimization/72866
2924 * tree-vect-patterns.c (search_type_for_mask): Turn into
2925 a small wrapper, move all code to ...
2926 (search_type_for_mask_1): ... this new function. Add caching
2927 and adjust recursive calls.
2928
2929 PR debug/77363
2930 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
2931 instead of lookup_type_die (type_main_variant (type)) even for array
2932 types.
2933
2934 PR middle-end/77377
2935 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
2936 constant pool reference return x instead of c.
2937
2938 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
2939
2940 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
2941 include MQ.
2942
2943 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2944
2945 * input.c
2946 (selftest::test_make_location_nonpure_range_endpoints): Fix
2947 header comment.
2948
2949 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2950
2951 * diagnostic-show-locus.c
2952 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
2953 function.
2954 (selftest::test_diagnostic_show_locus_one_liner): Call it.
2955 * input.c (get_pure_location): Move to libcpp/line-map.c.
2956 * input.h (get_pure_location): Convert decl to an inline function
2957 calling implementation in libcpp.
2958
2959 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
2960
2961 PR target/77403
2962 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
2963 template for intel asm dialect.
2964 (vec_set_hi_<mode><mask_name>): Ditto.
2965
2966 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2967
2968 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
2969 (selftest::fail_formatted): Likewise.
2970
2971 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2972
2973 * input.c (make_location): Call get_start and get_finish
2974 on the endpoints to avoid storing packed ranges or ad-hoc
2975 ranges in them.
2976 (selftest::test_make_location_nonpure_range_endpoints): New function.
2977 (selftest::input_c_tests): Call it.
2978 * input.h (get_start): New inline function.
2979
2980 2016-08-29 Tom de Vries <tom@codesourcery.com>
2981
2982 PR c/77398
2983 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
2984 with assert.
2985
2986 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
2987
2988 * Makefile.in (gcov-iov.h): Add dummy recipe.
2989
2990 2016-08-29 Nathan Sidwell <nathan@acm.org>
2991
2992 * config/nvptx/nvptx.c: #include tree-vrp.h.
2993
2994 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
2995
2996 PR target/77324
2997 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
2998 HIGH+LO construct during reload.
2999
3000 2016-08-28 Tom de Vries <tom@codesourcery.com>
3001
3002 PR lto/70955
3003 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
3004 'sysv_abi va_list' attribute.
3005 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
3006 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
3007 attributes.
3008
3009 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3010
3011 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
3012 * emit-rtl.c (unshare_all_rtl_1): Adjust.
3013 (unshare_all_rtl_again): Likewise.
3014 * function.c (assign_stack_local_1): Likewise.
3015 (assign_stack_temp_for_type): Likewise.
3016
3017 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3018
3019 * cfgbuild.c (make_edges): Adjust.
3020 * cfgrtl.c (can_delete_label_p): Likewise.
3021 * dwarf2cfi.c (create_trace_edges): Likewise.
3022 * except.c (sjlj_emit_dispatch_table): Likewise.
3023 * function.h (struct expr_status): make x_forced_labels a vector.
3024 * jump.c (rebuild_jump_labels_1): Adjust.
3025 * reload1.c (set_initial_label_offsets): Likewise.
3026 * stmt.c (force_label_rtx): Likewise.
3027 (expand_label): Likewise.
3028
3029 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3030
3031 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
3032
3033 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
3034
3035 PR tree-optimization/71077
3036 PR tree-optimization/68542
3037 * fold-const.c (fold_relational_const): Fix folding of
3038 VECTOR_CST comparisons that have a scalar boolean result type.
3039 (selftest::test_vector_folding): New static function.
3040 (selftest::fold_const_c_tests): Call it.
3041
3042 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
3043
3044 * doc/extend.texi (SPU Built-in Functions): Remove stale
3045 references to material formerly at IBM and Sony.
3046
3047 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
3048
3049 PR target/77349
3050 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3051
3052 2016-08-26 David Malcolm <dmalcolm@redhat.com>
3053
3054 * diagnostic-show-locus.c
3055 (selftest::test_fixit_consolidation): New function.
3056 (selftest::diagnostic_show_locus_c_tests): Call it.
3057 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3058 constructor based on source_range.
3059
3060 2016-08-26 David Malcolm <dmalcolm@redhat.com>
3061
3062 * diagnostic-color.c (color_dict): Add "fixit-insert" and
3063 "fixit-delete".
3064 (parse_gcc_colors): Update description of default GCC_COLORS.
3065 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3066 (colorizer::set_fixit_insert): New method.
3067 (colorizer::set_fixit_delete): New method.
3068 (colorizer::get_color_by_name): New method.
3069 (colorizer::STATE_FIXIT_INSERT): New constant.
3070 (colorizer::STATE_FIXIT_DELETE): New constant.
3071 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
3072 fields in favor of new field "m_stop_color". Add fields
3073 "m_fixit_insert" and "m_fixit_delete".
3074 (colorizer::colorizer): Update for above changes. Replace
3075 colorize_start calls with calls to get_color_by_name.
3076 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3077 STATE_FIXIT_DELETE. Update for field renamings.
3078 (colorizer::finish_state): Simplify by using m_stop_color,
3079 rather than multiple identical "*_ce" fields.
3080 (colorizer::get_color_by_name): New method.
3081 (layout::print_any_fixits): Print insertions and replacements
3082 using the "fixit-insert" color, and deletions using the
3083 "fixit-delete" color.
3084 * doc/invoke.texi (-fdiagnostics-color): Update description of
3085 default GCC_COLORS, and of the supported capabilities.
3086
3087 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
3088
3089 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3090 current_function_static_stack_size variable with the static
3091 stack frame size of the current function when
3092 flag_stack_usage_info is enabled.
3093
3094 2016-08-26 Nathan Sidwell <nathan@acm.org>
3095
3096 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3097 assignment inside if condition.
3098
3099 2016-08-26 Richard Biener <rguenther@suse.de>
3100
3101 PR tree-optimization/69047
3102 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3103 extracts similar to what FRE does.
3104 (non_rewritable_mem_ref_base): Likewise.
3105
3106 2016-08-26 Joseph Myers <joseph@codesourcery.com>
3107
3108 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3109 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3110 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3111 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3112 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3113 Likewise.
3114 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3115 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3116 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3117 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3118 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3119
3120 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3121
3122 PR target/70473
3123 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3124 reservation duration to 15 cycles.
3125 (cortex_a8_vfp_macs): Likewise.
3126 (cortex_a8_vfp_macd): Likewise.
3127 (cortex_a8_vfp_divs): Likewise.
3128 (cortex_a8_vfp_divd): Likewise.
3129
3130 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3131
3132 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3133 (aarch_macro_fusion_pair_p): Use above to avoid early return.
3134
3135 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3136 Martin Jambhor <mjambor@suse.cz>
3137
3138 * common.opt: New option -fipa-bit-cp.
3139 * doc/invoke.texi: Document -fipa-bit-cp.
3140 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3141 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3142 * tree-ssa-ccp.h: New header file.
3143 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3144 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3145 Replace all occurences of tree parameter by two new params: signop, int.
3146 (bit_value_unop_1): Change to bit_value_unop and export it.
3147 Replace all occurences of tree parameter by two new params: signop,
3148 int.
3149 (bit_value_binop): Change call from bit_value_binop_1 to
3150 bit_value_binop.
3151 (bit_value_assume_aligned): Likewise.
3152 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3153 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3154 to ccp_finalize.
3155 (ccp_finalize): Skip processing if val->mask == 0.
3156 * ipa-cp.c: Include tree-ssa-ccp.h
3157 (ipcp_bits_lattice): New class.
3158 (ipcp_param_lattice (bits_lattice): New member.
3159 (print_all_lattices): Call ipcp_bits_lattice::print.
3160 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3161 (initialize_node_lattices): Likewise.
3162 (propagate_bits_accross_jump_function): New function.
3163 (propagate_constants_accross_call): Call
3164 propagate_bits_accross_jump_function.
3165 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3166 (ipcp_store_bits_results): New function.
3167 (ipcp_driver): Call ipcp_store_bits_results.
3168 * ipa-prop.h (ipa_bits): New struct.
3169 (ipa_jump_func): Add new member bits of type ipa_bits.
3170 (ipa_param_descriptor): Change decl to decl_or_type.
3171 (ipa_get_param): Change decl to decl_or_type and assert on
3172 PARM_DECL.
3173 (ipa_get_type): New function.
3174 (ipcp_transformation_summary): New member bits.
3175 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3176 (ipa_populate_param_decls): Likewise.
3177 (ipa_dump_param): Likewise.
3178 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3179 function.
3180 (ipa_set_jf_unknown): Set ipa_bits::known to false.
3181 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3182 propagation.
3183 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3184 (ipa_write_jump_function): Add streaming for ipa_bits.
3185 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3186 (write_ipcp_transformation_info): Add streaming for ipa_bits
3187 summary for ltrans.
3188 (read_ipcp_transfomration_info): Add support for reading streamed
3189 ipa_bits.
3190 (ipcp_update_bits): New function.
3191 (ipcp_transform_function): Call ipcp_update_bits.
3192
3193 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
3194
3195 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3196 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3197
3198 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
3199
3200 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3201
3202 2016-08-25 Richard Biener <rguenther@suse.de>
3203
3204 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3205 Only add locations in late dwarf.
3206 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3207 (dwarf2out_early_finish): But do it here.
3208
3209 2016-08-24 Michael Collison <michael.collison@linaro.org>
3210 Michael Collison <michael.collison@arm.com>
3211
3212 * config/arm/arm-modes.def: Add new condition code mode CC_V
3213 to represent the overflow bit.
3214 * config/arm/arm.c (maybe_get_arm_condition_code):
3215 Add support for CC_Vmode.
3216 (arm_gen_unlikely_cbranch): New function to generate common
3217 rtl conditional branches for overflow patterns.
3218 * config/arm/arm-protos.h: Add prototype for
3219 arm_gen_unlikely_cbranch.
3220 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3221 addsi3_compareV_upper): New patterns to support signed
3222 builtin overflow add operations.
3223 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3224 New patterns to support unsigned builtin add overflow operations.
3225 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3226 builtin overflow subtract operations,
3227 (usubv<mode>4): New patterns to support unsigned builtin subtract
3228 overflow operations.
3229 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3230 to support builtin overflow negate operations.
3231
3232 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3233
3234 Revert
3235 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3236
3237 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3238 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3239 needed.
3240
3241 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3242
3243 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3244 MULTILIB_OPTIONS should be used. Small wording fixes.
3245 * genmultilib: Memorize set of all option combinations in
3246 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
3247 found in MULTILIB_OPTIONS by checking if option set is listed in
3248 combination_space. Output new and existing error message to stderr.
3249
3250 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3251
3252 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3253 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3254 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3255 (MULTILIB_REUSE): Remove reuse rules for option set including
3256 -mfpu=fp-armv8 and -mfpu=vfpv4
3257
3258 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
3259
3260 * config/arm/t-rtems: Add vfp multilib.
3261
3262 2016-08-23 Ian Lance Taylor <iant@golang.org>
3263
3264 * config/s390/s390.c (s390_asm_file_start): Call
3265 default_file_start.
3266
3267 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3268
3269 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3270 initialization of all 0's to the 0 constant, instead of directly
3271 generating XOR. Add support for V4SImode vector initialization on
3272 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3273 initialization. Change variables used in V4SFmode vector
3274 intialization. For V4SFmode vector splat on ISA 3.0, make sure
3275 any memory addresses are in index form. Add support for using
3276 VSPLTH/VSPLTB to initialize vector short and vector char vectors
3277 with all of the same element.
3278 (regno_or_subregno): New helper function to return a register
3279 number for either REG or SUBREG.
3280 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3281 Use regno_or_subregno where possible.
3282 (rs6000_split_v4si_init_di_reg): New helper function to build up a
3283 DImode value from two SImode values in order to generate V4SImode
3284 vector initialization on 64-bit systems with direct move.
3285 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3286 initialization.
3287 (rtx_is_swappable_p): V4SImode vector initialization insn is not
3288 swappable.
3289 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3290 declaration.
3291 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3292 attributes to initialize V8HImode and V16QImode vectors with the
3293 same element.
3294 (VSX_SPLAT_COUNT): Likewise.
3295 (VSX_SPLAT_SUFFIX): Likewise.
3296 (UNSPEC_VSX_VEC_INIT): New unspec.
3297 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3298 Allow SFmode values to come from Altivec registers.
3299 (vsx_init_v4si): New insn/split for V4SImode vector initialization
3300 on 64-bit systems with direct move.
3301 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3302 vector initializations, to allow V4SImode vector initializations
3303 on 64-bit systems with direct move.
3304 (vsx_splat_v4si): Likewise.
3305 (vsx_splat_v4si_di): Likewise.
3306 (vsx_splat_v4sf): Likewise.
3307 (vsx_splat_v4sf_internal): Likewise.
3308 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3309 register classes.
3310 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3311 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3312 initializing V8HImode and V16QImode vectors with the same
3313 element.
3314 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3315 optimization if -maltivec=be.
3316
3317 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
3318
3319 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3320 attribute for alternatives 3 and 4.
3321
3322 2016-08-23 David Malcolm <dmalcolm@redhat.com>
3323
3324 * selftest.c (selftest::assert_str_contains): New function.
3325 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3326 * selftest.h (selftest::assert_str_contains): New decl.
3327 (ASSERT_STR_CONTAINS): New macro.
3328
3329 2016-08-23 Richard Biener <rguenther@suse.de>
3330
3331 PR tree-optimization/77286
3332 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3333 the CFG here.
3334 (vect_transform_loop): Split exit edges of loop and scalar
3335 loop if required and at the appropriate time.
3336
3337 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3338
3339 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3340 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3341 needed.
3342 Correct a typo in a comment.
3343
3344 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3345
3346 * config/s390/s390.md ("*andc_split"): New splitter for and with
3347 complement.
3348
3349 2016-08-23 Richard Biener <rguenther@suse.de>
3350
3351 PR tree-optimization/27336
3352 * tree-vrp.c (infer_value_range): Handle stmts that can throw
3353 by looking for a non-EH edge.
3354 (process_assert_insertions_for): Likewise.
3355
3356 2016-08-23 Richard Biener <rguenther@suse.de>
3357
3358 PR middle-end/77305
3359 * statistics.c (statistics_counter_event): Robustify against
3360 NULL current_pass.
3361
3362 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3363
3364 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3365 for targets amdfam10 and barcelona.
3366
3367 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
3368
3369 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3370 (zero_extend<mode>di2): Ditto.
3371 (*zero_extend<mode>si2): Ditto.
3372 (*zero_extendqihi2): Ditto.
3373
3374 2016-08-22 Joseph Myers <joseph@codesourcery.com>
3375
3376 PR middle-end/77269
3377 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3378 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3379
3380 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
3381
3382 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3383 identical consecutive elements.
3384 [SSA_NAME]: Print the name's def stmt on its own line. When printing
3385 the node's def stmt, avoid printing an unwanted trailing newline by
3386 replacing the call to print_gimple_stmt() with its inlined body and
3387 adjusting it to not set pp_needs_newline and to call pp_flush()
3388 instead of pp_newline_and_flush().
3389
3390 2016-08-22 Joseph Myers <joseph@codesourcery.com>
3391
3392 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3393 (float32_type_node, float64_type_node, float32x_type_node)
3394 (float128x_type_node): New macros.
3395 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3396 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3397 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3398 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3399 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3400 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3401 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3402 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3403 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3404 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3405 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3406 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3407 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3408 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3409 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3410 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3411 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3412 (copysign, fabs, huge_val, inf, nan, nans): Use it.
3413 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3414 and copysign.
3415 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3416 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3417 * doc/extend.texi (Other Builtins): Document these built-in
3418 functions.
3419 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3420 for nan and nans.
3421
3422 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
3423
3424 * doc/install.texi (Binaries): www.opencsw.org now uses https.
3425
3426 2016-08-22 Richard Biener <rguenther@suse.de>
3427
3428 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3429
3430 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
3431
3432 PR target/77270
3433 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3434 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3435 non-SSE2 athlons only, otherwise prefer SSE prefetches.
3436
3437 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3438
3439 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3440 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3441 (vrp_visit_switch_stmt): Likewise.
3442 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3443 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3444 (vrp_visit_stmt): Use extract_range_from_stmt.
3445 (vrp_visit_phi_node): Use extract_range_from_phi_node.
3446
3447 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3448
3449 * Makefile.in: Add tree-vrp.h to GTFILES.
3450 * gengtype.c (open_base_files): Add tree-vrp.h.
3451 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3452 * builtins.c: Likewise.
3453 * fold-const.c: Likewise.
3454 * gimple-builder.c: Likewise.
3455 * gimple-laddress.c: Likewise.
3456 * hsa-gen.c: Likewise.
3457 * internal-fn.c: Likewise.
3458 * ssa.h: Likewise.
3459 * targhooks.c: Liewise,
3460 * tree-ssa-address.c: Likewise.
3461 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3462 * tree-vrp.c (struct value_range): Move to tree-vrp.h
3463 * tree-vrp.h: New file.
3464
3465 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3466
3467 PR tree-optimization/61839
3468 * tree-vrp.c (two_valued_val_range_p): New.
3469 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3470 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3471 Also Convert VAR BINOP CST where VAR is two-valued to
3472 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3473
3474 2016-08-19 David Malcolm <dmalcolm@redhat.com>
3475
3476 * diagnostic-show-locus.c
3477 (layout::annotation_line_showed_range_p): New method.
3478 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3479 Reimplement case fixit_hint::REPLACE to cover removals, and
3480 replacements where the range of the replacement isn't one
3481 of the ranges in the rich_location.
3482 (test_one_liner_fixit_replace): Likewise.
3483 (selftest::test_one_liner_fixit_replace_non_equal_range): New
3484 function.
3485 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3486 New function.
3487 (selftest::test_diagnostic_show_locus_one_liner): Call the new
3488 functions.
3489 * diagnostic.c (print_parseable_fixits): Remove case
3490 fixit_hint::REMOVE.
3491
3492 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
3493
3494 PR target/77270
3495 * config/i386/i386.c (ix86_option_override_internal): Remove
3496 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3497 Enable SSE prefetch also for TARGET_PREFETCHWT1.
3498 Do not try to enable TARGET_PRFCHW ISA flag here.
3499 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3500 Rewrite expander function body.
3501 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3502
3503 2016-08-19 Joseph Myers <joseph@codesourcery.com>
3504
3505 PR c/32187
3506 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3507 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3508 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3509 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3510 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3511 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3512 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3513 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3514 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3515 tree_index values.
3516 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3517 macros.
3518 (struct floatn_type_info): New structure type.
3519 (floatn_nx_types): New variable declaration.
3520 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3521 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3522 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3523 * tree.c (floatn_nx_types): New variable.
3524 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3525 corresponding complex types.
3526 * target.def (floatn_mode): New hook.
3527 * targhooks.c: Include "real.h".
3528 (default_floatn_mode): New function.
3529 * targhooks.h (default_floatn_mode): New prototype.
3530 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3531 types.
3532 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3533 effective-target and dg-add-options keywords.
3534 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3535 Document new effective-target keywords.
3536 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3537 * doc/tm.texi: Regenerate.
3538 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3539 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3540 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3541 18661-3.
3542 * real.h (struct real_format): Add field ieee_bits.
3543 * real.c (ieee_single_format, mips_single_format)
3544 (motorola_single_format, spu_single_format, ieee_double_format)
3545 (mips_double_format, motorola_double_format)
3546 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3547 (ieee_extended_intel_128_format)
3548 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3549 (mips_extended_format, ieee_quad_format, mips_quad_format)
3550 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3551 (decimal_double_format, decimal_quad_format, ieee_half_format)
3552 (arm_half_format, real_internal_format: Initialize ieee_bits
3553 field.
3554 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3555 float128_type_node. Set float80_type_node to float64x_type_node
3556 if appropriate and long_double_type_node not appropriate.
3557 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3558 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3559 Initialize ieee_bits field.
3560 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3561 (rs6000_init_builtins): Set ieee128_float_type_node to
3562 float128_type_node.
3563 (rs6000_floatn_mode): New function.
3564
3565 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3566
3567 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3568 _rdseed64_step): Uglify argument names and/or local variable names
3569 in inline functions.
3570 * config/i386/rtmintrin.h (_xabort): Likewise.
3571 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3572 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3573 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3574 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3575 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3576 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3577 _mm_maskz_ternarylogic_epi32): Likewise.
3578 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3579 __lwpins32, __lwpins64): Likewise.
3580 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3581 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
3582 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
3583 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
3584 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
3585 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
3586 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
3587 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
3588 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
3589 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
3590 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
3591 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
3592 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
3593 _mm256_mask_i64gather_epi32): Likewise.
3594 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3595 * config/i386/ia32intrin.h (__writeeflags): Likewise.
3596 * config/i386/pkuintrin.h (_wrpkru): Likewise.
3597 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
3598 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
3599 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
3600 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
3601 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
3602 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
3603 _mm512_mask_prefetch_i64scatter_ps): Likewise.
3604 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3605 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
3606 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
3607 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
3608 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
3609 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
3610 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
3611 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
3612
3613 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
3614 returning void.
3615 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
3616 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
3617 Likewise.
3618 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
3619 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
3620 function name.
3621 (_rdpkru_u32): Add space after function name.
3622
3623 * config/i386/t-i386 (i386-c.o): Don't depend on
3624 i386-builtin-types.inc.
3625 (i386.o): Depend on i386-builtin-types.inc.
3626
3627 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
3628
3629 PR target/77281
3630 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3631 Use const_vec_duplicate to check for duplicated elements.
3632
3633 2016-08-19 Richard Biener <rguenther@suse.de>
3634
3635 PR tree-optimization/77290
3636 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3637 Fix flag_tree_parallelize_loops check.
3638
3639 2016-08-19 Richard Biener <rguenther@suse.de>
3640
3641 * match.pd (x | 0 -> x): Add.
3642
3643 2016-08-19 Richard Biener <rguenther@suse.de>
3644
3645 PR tree-optimization/77286
3646 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3647 Deal with virtual PHIs being out-of-order.
3648
3649 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3650
3651 * doc/invoke.texi (fverbose-asm): Note that source code lines
3652 are emitted, and provide an example.
3653 * final.c (asm_show_source): New function.
3654 (final_scan_insn): Call asm_show_source.
3655
3656 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3657
3658 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
3659 param with diagnostic_kind.
3660 (class colorizer): Similarly replace field m_diagnostic with
3661 m_diagnostic_kind.
3662 (colorizer::colorizer): Replace diagnostic
3663 param with diagnostic_kind.
3664 (colorizer::begin_state): Update for above field change.
3665 (layout::layout): Replace diagnostic param with rich_location *
3666 and diagnostic_kind.
3667 (diagnostic_show_locus): Replace diagnostic param with richloc
3668 and diagnostic_kind.
3669 (class selftest::test_diagnostic_context): New class.
3670 (selftest::test_diagnostic_show_locus_unknown_location): New
3671 function.
3672 (selftest::test_one_liner_simple_caret): New function.
3673 (selftest::test_one_liner_caret_and_range): New function.
3674 (selftest::test_one_liner_multiple_carets_and_ranges): New
3675 function.
3676 (selftest::test_one_liner_fixit_remove): New function.
3677 (selftest::test_one_liner_fixit_replace): New function.
3678 (selftest::test_diagnostic_show_locus_one_liner): New function.
3679 (selftest::diagnostic_show_locus_c_tests): Call the new test
3680 functions.
3681 * diagnostic.c (diagnostic_initialize): Initialize
3682 colorize_source_p, show_ruler_p and parseable_fixits_p.
3683 (default_diagnostic_finalizer): Update for change to
3684 diagnostic_show_locus.
3685 (diagnostic_append_note): Likewise.
3686 * diagnostic.h (diagnostic_show_locus): Replace
3687 const diagnostic_info * param with location * and diagnostic_t.
3688
3689 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3690
3691 * input.c (saved_line_table): New global.
3692 (class selftest::temp_line_table): Rename to line_table_test and
3693 move declaration to selftest.h, and drop field m_old_line_table.
3694 (selftest::temp_line_table::temp_line_table): Rename ctor to...
3695 (selftest::line_table_test::line_table_test): ...this. Add a
3696 default ctor. Store current value of line_table within
3697 saved_line_table.
3698 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
3699 (selftest::line_table_test::~line_table_test): ...this, and
3700 restore line_table from the saved_line_table, rather than
3701 m_old_line_table.
3702 (selftest::test_accessing_ordinary_linemaps): Update for above
3703 renaming.
3704 (selftest::test_lexer): Likewise.
3705 (struct selftest::lexer_test): Likewise.
3706 (selftest::lexer_test::lexer_test): Likewise.
3707 (selftest::input_c_tests): Move the looping over test cases from
3708 here into...
3709 (selftest::for_each_line_table_case): New function.
3710 * input.h (saved_line_table): New decl.
3711 * selftest.h (struct selftest::line_table_case): New forward decl.
3712 (class selftest::line_table_test): New class, moved here from
3713 selftest::temp_line_table in input.c, and renamed.
3714 (selftest::for_each_line_table_case): New decl.
3715
3716 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
3717
3718 PR target/72839
3719 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
3720
3721 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3722
3723 PR middle-end/70895
3724 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
3725 enclosing parallel construct for reduction variables on OpenACC loop
3726 directives.
3727
3728 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
3729
3730 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
3731 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
3732 -gdwarf-3.
3733 (function_to_dwarf_procedure): Update comment.
3734
3735 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3736
3737 * input.c (diagnostics_file_cache_forcibly_evict_file): New
3738 function.
3739 * input.h (diagnostics_file_cache_forcibly_evict_file): New
3740 declaration.
3741 * selftest.c (selftest::temp_source_file::~temp_source_file):
3742 Evict m_filename from the diagnostic file cache.
3743
3744 2016-08-18 Richard Biener <rguenther@suse.de>
3745
3746 * tree-pass.h (make_pass_materialize_all_clones): Declare.
3747 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
3748 make_pass_materialize_all_clones): New simple IPA pass encapsulating
3749 clone materialization.
3750 * passes.def (all_late_ipa_passes): Start with
3751 pass_materialize_all_clones.
3752 * cgraphunit.c (symbol_table::compile): Remove call to
3753 materialize_all_clones.
3754 * tree-into-ssa.c: Include statistics.h.
3755 (update_ssa): Count number of times we do incremental/rewrite
3756 SSA update.
3757
3758 2016-08-18 Richard Biener <rguenther@suse.de>
3759
3760 PR tree-optimization/77282
3761 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3762 When doing auto-parallelizing also prevent use of PHIs that
3763 carry dependences across loop backedges.
3764
3765 2016-08-18 Tamar Christina <tamar.christina@arm.com>
3766 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3767
3768 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
3769
3770 2016-08-18 Richard Biener <rguenther@suse.de>
3771
3772 * ssa-iterators.h (ssa_vuse_operand): New inline.
3773 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
3774 (predicate_all_scalar_phis): Use remove_phi_node to remove
3775 phi nodes predicated. Delay removing virtual PHIs.
3776 (predicate_mem_writes): Update virtual operands.
3777 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
3778 (tree_if_conversion): Do not rewrite virtual SSA form.
3779 * tree-phinodes.c (release_phi_node): Make static.
3780 * tree-phinodes.h (release_phi_node): Remove.
3781
3782 2016-08-18 Jakub Jelinek <jakub@redhat.com>
3783
3784 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
3785 codes that appear in bdesc_* arrays, instead include i386-builtin.def
3786 twice to define those.
3787 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
3788 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
3789 bdesc_multi_arg): Define by including i386-builtin.def the third time.
3790 * config/i386/i386-builtin.def: New file.
3791
3792 2016-08-17 David Malcolm <dmalcolm@redhat.com>
3793
3794 * input.c (get_source_range_for_char): Rename to...
3795 (selftest::get_source_range_for_char): ...this, and move within
3796 the #if CHECKING_P guard.
3797 (get_num_source_ranges_for_substring): Rename to...
3798 (selftest::get_num_source_ranges_for_substring): ...this, move
3799 within the #if CHECKING_P guard, and make static.
3800 (selftest::assert_num_substring_ranges): Initialize
3801 actual_num_ranges.
3802
3803 2016-08-18 Alan Modra <amodra@gmail.com>
3804
3805 PR rtl-optimization/72771
3806 * reload.c (find_reloads): Don't assume that a subreg mem is OK
3807 when find_reloads_toplev returns address_reloaded==-1.
3808 (alternative_allows_const_pool_ref): Update comment.
3809
3810 2015-08-17 Alan Hayward <alan.hayward@arm.com>
3811
3812 PR tree-optimization/71752
3813 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
3814 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
3815
3816 2016-08-17 Jakub Jelinek <jakub@redhat.com>
3817
3818 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
3819 instead of testing ECF_NORETURN bit in gimple_call_flags.
3820 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
3821 * predict.c (tree_bb_level_predictions): Likewise.
3822 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
3823
3824 PR middle-end/77259
3825 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
3826 turning a call into __builtin_unreachable-like noreturn call, adjust
3827 gimple_call_set_fntype.
3828 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
3829 gimple_call_fntype has void return type.
3830
3831 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
3832
3833 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
3834 maybe_lookup_decl, to handle nested acc loop directives.
3835
3836 2016-08-17 Richard Biener <rguenther@suse.de>
3837
3838 PR tree-optimization/76490
3839 * tree-vrp.c (update_value_range): Preserve overflow infinities
3840 when intersecting with ranges from get_range_info.
3841 (operand_less_p): Handle overflow infinities correctly.
3842 (value_range_constant_singleton): Use vrp_operand_equal_p
3843 to handle overflow max/min correctly.
3844 (vrp_valueize): Likewise.
3845 (union_ranges): Likewise.
3846 (intersect_ranges): Likewise.
3847 (vrp_visit_phi_node): Improve iteration limitation to only
3848 apply when we'll possibly re-visit the PHI via a changed argument
3849 on the backedge.
3850
3851 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3852
3853 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
3854 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
3855 rather than those that should not be built.
3856
3857 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
3858
3859 PR target/66488
3860 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
3861
3862 2016-08-17 Richard Biener <rguenther@suse.de>
3863
3864 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
3865 (verify_vssa): New function verifying virtual SSA form.
3866 (verify_ssa): Call it.
3867 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
3868 Do not apply loop-closed SSA handling to virtuals.
3869 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
3870 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
3871 when rewriting their symbol.
3872 (prepare_def_site_for): Likewise.
3873 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
3874 operands of moved stmts.
3875
3876 2016-08-17 Richard Biener <rguenther@suse.de>
3877
3878 PR tree-optimization/23855
3879 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
3880 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
3881 find guards to hoist. Do not update SSA form but rewrite virtuals
3882 into loop closed SSA.
3883 (find_loop_guard): Adjust to skip already hoisted guards. Do
3884 not mark virtuals for renaming or update SSA form.
3885
3886 2016-08-17 Martin Liska <mliska@suse.cz>
3887
3888 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
3889 a LONG_LONG_TYPE_SIZE comparison.
3890 * gcov-io.h: Remove macro definitions.
3891 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
3892 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
3893 comparison.
3894
3895 2016-08-16 Jakub Jelinek <jakub@redhat.com>
3896
3897 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
3898 that builtins not mentioned in bdesc_* arrays come first, then
3899 the ones mentioned in bdesc_* arrays in the order they appear in
3900 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
3901 IX86_BUILTIN__BDESC_*_LAST enumerator.
3902 (bdesc_mpx): Fix up a comment typo.
3903 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
3904 __builtin_ia32_vpcomneu[bwdq] builtins.
3905 (BDESC_VERIFY, BDESC_VERIFYS): Define.
3906 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
3907 enum ix86_builtins ordering.
3908 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
3909 for direct bdesc_* array member access instead of searching all the
3910 arrays until an fcode match is found.
3911
3912 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
3913
3914 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
3915 pattern as define_insn_and_split. Split insn before reload to
3916 ashl<mode>3_1.
3917 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
3918 <shift_insn><mode>3_1.
3919 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
3920 <rotate_insn><mode>3_1.
3921
3922 2016-08-16 David Malcolm <dmalcolm@redhat.com>
3923
3924 PR c/72857
3925 * input.c (get_source_range_for_substring): Rename to...
3926 (get_source_location_for_substring): ...this, adding param
3927 "caret_idx", and converting output param from source_range * to
3928 location_t *.
3929 (get_source_range_for_char): New function.
3930 (get_num_source_ranges_for_substring): Update comment to reflect
3931 above renaming.
3932 (assert_char_at_range): Update to use get_source_range_for_char
3933 rather than get_source_range_for_substring.
3934 (test_lexer_string_locations_concatenation_2): Likewise.
3935 * substring-locations.h (get_source_range_for_substring): Rename
3936 to...
3937 (get_source_location_for_substring): ...this, and adding param
3938 "caret_idx", and converting output param from source_range * to
3939 location_t *.
3940
3941 2016-08-16 David Malcolm <dmalcolm@redhat.com>
3942
3943 * input.c (class selftest::temp_source_file): Move to
3944 selftest.h.
3945 (selftest::temp_source_file::temp_source_file): Move to
3946 selftest.c.
3947 (selftest::temp_source_file::~temp_source_file): Likewise.
3948 * selftest.c (selftest::temp_source_file::temp_source_file): Move
3949 here from input.c.
3950 (selftest::temp_source_file::~temp_source_file): Likewise.
3951 * selftest.h (class selftest::temp_source_file): Move here from
3952 input.c
3953
3954 2016-08-16 Jakub Jelinek <jakub@redhat.com>
3955
3956 PR target/71910
3957 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
3958 inlining, add cgraph edge for the added __builtin_unreachable call.
3959
3960 PR middle-end/67485
3961 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
3962 only cast it to SHWI for the final comparison.
3963
3964 2016-08-16 Martin Liska <mliska@suse.cz>
3965
3966 PR gcov-profile/36412
3967 * doc/gcov.texi: Document --hash-filenames(-x).
3968 * gcov.c (print_usage): Add the option.
3969 (process_args): Process the option, sort options alphabetically.
3970 (md5sum_to_hex): New function.
3971 (make_gcov_file_name): Do the md5sum and append it to a
3972 filename.
3973
3974 2016-08-16 Bin Cheng <bin.cheng@arm.com>
3975
3976 PR tree-optimization/69848
3977 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
3978 and swtich operands to avoid additional NOT instruction.
3979 (vcond<v_cmp_mixed><mode>): Ditto.
3980 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
3981
3982 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
3983
3984 * doc/install.texi (*-*-solaris2*): Adjust latest change.
3985
3986 2016-08-16 Richard Biener <rguenther@suse.de>
3987
3988 PR tree-optimization/76783
3989 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
3990 BB visited flags at start.
3991
3992 2016-08-16 Bin Cheng <bin.cheng@arm.com>
3993
3994 PR tree-optimization/72817
3995 PR tree-optimization/73450
3996 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
3997 multiple_of_p for adjusted IV.base.
3998
3999 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
4000
4001 PR target/72867
4002 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
4003 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
4004 for !flag_finite_math_only or flag_signed_zeros.
4005 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
4006 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
4007 depend on flag_finite_math_only.
4008 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
4009 New insn pattern.
4010 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
4011 (*ieee_smin<mode>3): Ditto.
4012 (*ieee_smax<mode>3): Ditto.
4013 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
4014 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
4015 flag_signed_zeros.
4016 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
4017 depend on flag_finite_math_only.
4018 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
4019 (*mmx_<code>v2sf3): Remove.
4020 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
4021 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
4022 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
4023
4024 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
4025
4026 PR rtl-optimization/73650
4027 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
4028 it is not a simple move.
4029
4030 2016-08-15 Martin Liska <mliska@suse.cz>
4031
4032 PR driver/72765
4033 * gcc.c (do_spec_1): Call save_string with the right size.
4034 (save_string): Do an assert about string we copy.
4035
4036 2016-08-15 Richard Biener <rguenther@suse.de>
4037
4038 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
4039 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
4040 TV_MACH_DEP.
4041 (pass_data_stv): Likewise.
4042
4043 2016-08-15 Richard Biener <rguenther@suse.de>
4044
4045 PR tree-optimization/73434
4046 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
4047 TBAA info on the base when forwarding a non-invariant address.
4048
4049 2016-08-15 Jakub Jelinek <jakub@redhat.com>
4050
4051 * dwarf2out.c (struct checksum_attributes): Add
4052 at_string_length_bit_size and at_string_length_byte_size fields.
4053 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4054 and DW_AT_string_length_byte_size.
4055 (die_checksum_ordered): Handle at_string_length_bit_size and
4056 at_string_length_byte_size.
4057 (gen_array_type_die): For dwarf_version >= 5 emit
4058 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4059 (adjust_string_types): For dwarf_version >= 5 remove
4060 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4061 (resolve_addr): Likewise.
4062
4063 PR debug/71906
4064 * dwarf2out.c (string_types): New variable.
4065 (gen_array_type_die): Change early_dwarf handling of
4066 DW_AT_string_length, create DW_OP_call4 referencing the
4067 length var temporarily. Handle parameters that are pointers
4068 to string length.
4069 (adjust_string_types): New function.
4070 (gen_subprogram_die): Temporarily set string_types to local var,
4071 call adjust_string_types if needed.
4072 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4073 New functions.
4074 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4075
4076 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
4077
4078 * doc/install.texi (*-*-solaris2*): Fix version number and document
4079 requirement on GNU make for building libjava with the Solaris linker.
4080
4081 2016-08-15 Martin Liska <mliska@suse.cz>
4082 Jakub Jelinek <jakub@redhat.com>
4083
4084 PR tree-optimization/72824
4085 * tree-loop-distribution.c (const_with_all_bytes_same)
4086 <case VECTOR_CST>: Fix a typo.
4087
4088 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
4089
4090 PR target/76342
4091 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4092 Renamed from _mm512_undefined_si512.
4093 (_mm_undefined_si512): New definition.
4094
4095 2016-08-13 Richard Biener <rguenther@suse.de>
4096
4097 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4098 into PHIs and update the lattice for its def.
4099
4100 2016-08-12 Jakub Jelinek <jakub@redhat.com>
4101
4102 PR c/71512
4103 * ubsan.c (instrument_si_overflow): Pass true instead of false
4104 to gsi_replace.
4105 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4106 of bbs. Return TODO_cleanup_cfg if any returned true.
4107
4108 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4109
4110 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4111 ISA 3.0 MTVSRDD instruction.
4112 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4113 vecperm.
4114
4115 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4116
4117 PR tree-optimization/71083
4118 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4119 bitfield access when possible.
4120
4121 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
4122
4123 PR middle-end/71654
4124 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4125 sign-changing cast from a shorter unsigned type to a wider
4126 signed type.
4127
4128 2016-08-12 Jakub Jelinek <jakub@redhat.com>
4129
4130 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4131 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4132 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4133
4134 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4135
4136 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4137 Correct costs for vec_construct.
4138
4139 2016-08-12 Bin Cheng <bin.cheng@arm.com>
4140
4141 PR tree-optimization/69848
4142 * tree-vectorizer.h (enum vect_def_type): New condition reduction
4143 type CONST_COND_REDUCTION.
4144 * tree-vect-loop.c (vectorizable_reduction): Support new condition
4145 reudction type CONST_COND_REDUCTION.
4146
4147 2016-08-12 Richard Biener <rguenther@suse.de>
4148
4149 PR tree-optimization/57326
4150 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4151 returning an SSA name.
4152 (phi_translate_1): When fully_constant_expression returns a NAME
4153 make sure we have a leader for it.
4154
4155 2016-08-12 Martin Liska <mliska@suse.cz>
4156 Adam Fineman <afineman@afineman.com>
4157
4158 * gcov.c (process_file): Create .gcov file when .gcda
4159 file is missing.
4160
4161 2016-08-12 Marek Polacek <polacek@redhat.com>
4162
4163 PR c/7652
4164 * alias.c (find_base_value): Adjust fall through comment.
4165 * cfgexpand.c (expand_debug_expr): Likewise.
4166 * combine.c (find_split_point): Likewise.
4167 (expand_compound_operation): Likewise. Add FALLTHRU.
4168 (make_compound_operation): Adjust fall through comment.
4169 (canon_reg_for_combine): Add FALLTHRU.
4170 (force_to_mode): Adjust fall through comment.
4171 (simplify_shift_const_1): Likewise.
4172 (simplify_comparison): Likewise.
4173 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4174 FALLTHRU.
4175 * config/aarch64/predicates.md: Likewise.
4176 * config/i386/i386.c (function_arg_advance_32): Likewise.
4177 (ix86_gimplify_va_arg): Likewise.
4178 (print_reg): Likewise.
4179 (ix86_print_operand): Likewise.
4180 (ix86_build_const_vector): Likewise.
4181 (ix86_expand_branch): Likewise.
4182 (ix86_sched_init_global): Adjust fall through comment.
4183 (ix86_expand_args_builtin): Add FALLTHRU.
4184 (ix86_expand_builtin): Likewise.
4185 (ix86_expand_vector_init_one_var): Likewise.
4186 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4187 (rs6000_adjust_cost): Likewise.
4188 (insn_must_be_first_in_group): Likewise.
4189 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
4190 * dbxout.c (dbxout_symbol): Adjust fall through comment.
4191 * df-scan.c (df_uses_record): Likewise.
4192 * dojump.c (do_jump): Add FALLTHRU.
4193 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
4194 comment.
4195 (resolve_args_picking_1): Adjust fall through comment.
4196 (loc_list_from_tree_1): Likewise.
4197 * expmed.c (make_tree): Likewise.
4198 * expr.c (expand_expr_real_2): Add FALLTHRU.
4199 (expand_expr_real_1): Likewise. Adjust fall through comment.
4200 * fold-const.c (const_binop): Adjust fall through comment.
4201 (fold_truth_not_expr): Likewise.
4202 (fold_cond_expr_with_comparison): Add FALLTHRU.
4203 (fold_binary_loc): Likewise.
4204 (contains_label_1): Adjust fall through comment.
4205 (multiple_of_p): Likewise.
4206 * gcov-tool.c (process_args): Add FALLTHRU.
4207 * genattrtab.c (check_attr_test): Likewise.
4208 (write_test_expr): Likewise.
4209 * genconfig.c (walk_insn_part): Likewise.
4210 * genpreds.c (validate_exp): Adjust fall through comment.
4211 (needs_variable): Likewise.
4212 * gensupport.c (get_alternatives_number): Add FALLTHRU.
4213 (subst_dup): Likewise.
4214 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4215 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4216 (gimplify_scan_omp_clauses): Add FALLTHRU.
4217 (goa_stabilize_expr): Likewise.
4218 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4219 through comment.
4220 * hsa-gen.c (get_address_from_value): Likewise.
4221 * ipa-icf.c (sem_function::hash_stmt): Likewise.
4222 * ira.c (ira_setup_alts): Add FALLTHRU.
4223 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4224 comment.
4225 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4226 * opts.c (common_handle_option): Likewise.
4227 * read-rtl.c (read_rtx_code): Likewise.
4228 * real.c (round_for_format): Likewise.
4229 * recog.c (asm_operand_ok): Likewise.
4230 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4231 * reload1.c (set_label_offsets): Likewise.
4232 (eliminate_regs_1): Likewise.
4233 (reload_reg_reaches_end_p): Likewise.
4234 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4235 (rtx_cost): Likewise.
4236 * sched-rgn.c (is_exception_free): Likewise.
4237 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4238 * stor-layout.c (int_mode_for_mode): Likewise.
4239 * toplev.c (print_to_asm_out_file): Likewise.
4240 (print_to_stderr): Likewise.
4241 * tree-cfg.c (gimple_verify_flow_info): Likewise.
4242 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4243 (chrec_fold_multiply): Likewise.
4244 (evolution_function_is_invariant_rec_p): Likewise.
4245 (for_each_scev_op): Likewise.
4246 * tree-data-ref.c (siv_subscript_p): Likewise.
4247 (get_references_in_stmt): Likewise.
4248 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4249 (substitute_in_expr): Likewise.
4250 (type_cache_hasher::equal): Likewise.
4251 (walk_type_fields): Likewise.
4252 * var-tracking.c (adjust_mems): Add FALLTHRU.
4253 (set_dv_changed): Adjust fall through comment.
4254 * varasm.c (default_function_section): Add FALLTHRU.
4255
4256 2016-08-12 Marek Polacek <polacek@redhat.com>
4257
4258 PR c/7652
4259 * tree-complex.c (expand_complex_division): Add missing break.
4260
4261 2016-08-12 Richard Biener <rguenther@suse.de>
4262
4263 * passes.c (execute_todo): Do not push/pop TV_TODO.
4264 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4265 (execute_one_pass): Likewise.
4266 * common.opt (ftime-report-details): New switch.
4267 * doc/invoke.texi (ftime-report-details): Document.
4268 * timevar.h (timer::print_row): Adjust signature.
4269 (timer::all_zero): New static helper.
4270 (timer::child_map_t): New typedef.
4271 (timer::time_var_def): Add children field.
4272 * timevar.c (timer::named_items::print): Adjust.
4273 (timer::~timer): Free timevar recorded children.
4274 (timer::pop_internal): When -ftime-report-details record
4275 time spent in sub-timevars.
4276 (timer::print_row): Adjust.
4277 (timer::print): Print sub-timevar stats, use all_zero.
4278 * timevar.def (TV_TODO): Remove.
4279
4280 2016-08-12 Richard Biener <rguenther@suse.de>
4281
4282 PR tree-optimization/72851
4283 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
4284 worklists to use bitmaps indexed in execution order.
4285 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4286 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4287 (cfg_blocks): Make a bitmap.
4288 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4289 New globals.
4290 (cfg_blocks_empty_p): Adjust.
4291 (cfg_blocks_add): Likewise.
4292 (cfg_blocks_get): Likewise.
4293 (add_ssa_edge): Likewise.
4294 (add_control_edge): Likewise.
4295 (simulate_stmt): Likewise.
4296 (process_ssa_edge_worklist): Likewise.
4297 (simulate_block): Likewise.
4298 (ssa_prop_init): Compute PRE order and stmt UIDs.
4299 (ssa_prop_fini): Adjust.
4300 (ssa_propagate): Adjust.
4301
4302 2016-08-12 Richard Biener <rguenther@suse.de>
4303
4304 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4305 the currently executable edges have fixed ranges. Always
4306 go through update_value_range.
4307
4308 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
4309
4310 PR debug/63240
4311 * langhooks-def.h
4312 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4313 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4314 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4315 (LANG_HOOKS_DECLS): Add it.
4316 * langhooks.h (struct lang_hooks_for_decls): Add
4317 function_decl_defaulted. Const_tree-ify
4318 function_decl_explicit_p and function_decl_deleted_p.
4319 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4320 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4321 also at strict DWARF v5.
4322
4323 PR debug/55641
4324 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4325 TYPE_QUAL_CONST in reference-typed decls.
4326
4327 PR debug/49366
4328 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4329 in DW_OP_pieces, just enough to handle pointers to member
4330 functions.
4331 (gen_remaining_tmpl_value_param_die_attribute): Use a location
4332 expression on DWARFv5 if a constant value doesn't work.
4333
4334 2016-08-11 David Malcolm <dmalcolm@redhat.com>
4335
4336 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4337 * selftest.c (selftest::test_assertions): New function.
4338 (selftest::selftest_c_tests): New function.
4339 * selftest.h (selftest::selftest_c_tests): New declaration.
4340
4341 2016-08-11 Richard Biener <rguenther@suse.de>
4342 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4343
4344 PR rtl-optimization/72855
4345 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4346
4347 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4348
4349 PR target/72863
4350 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4351 (vsx_store_<mode>): Likewise.
4352
4353 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
4354
4355 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4356 TImode CONST_WIDE_INT store.
4357 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4358
4359 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
4360
4361 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4362 mode if unaligned SSE load and store are optimal.
4363
4364 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
4365
4366 PR tree-optimization/71083
4367 * tree-predcom.c (ref_at_iteration): Correctly align the
4368 reference type.
4369
4370 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4371
4372 * config/s390/s390-builtin-types.def: Add INT128 types.
4373 * config/s390/s390-builtins.def: Add INT128 variants for the add
4374 sub low-level builtins dealing with TImode.
4375 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4376 via subreg when expanding a builtin.
4377 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4378 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4379 Fix comment.
4380 * config/s390/vecintrin.h: Adjust builtin names accordingly.
4381 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4382 ("vec_addc<mode>", "vec_addc_u128"): Merge to
4383 "vacc<bhfgq>_<mode>".
4384 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4385 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4386 ("vec_subc<mode>", "vec_subc_u128"): Merge to
4387 "vscbi<bhfgq>_<mode>".
4388 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4389 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4390
4391 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4392
4393 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4394
4395 2016-08-11 Bin Cheng <bin.cheng@arm.com>
4396
4397 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4398 unused declaration.
4399 (vcond<v_cmp_mixed><mode>): Ditto.
4400 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4401
4402 2016-08-11 Bin Cheng <bin.cheng@arm.com>
4403
4404 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4405 variable explicitly, also assert on it before use.
4406
4407 2016-08-11 Richard Biener <rguenther@suse.de>
4408
4409 PR tree-optimization/72772
4410 * cfgloopmanip.c (create_preheader): Use split_edge if there
4411 is a single loop entry, avoiding degenerate PHIs.
4412
4413 2016-08-11 Richard Biener <rguenther@suse.de>
4414
4415 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4416 unconditional TODO_cleanup_cfg.
4417 (pass_thread_jumps::execute): Initialize loops, perform a CFG
4418 cleanup only if we threaded a jump.
4419
4420 2016-08-11 Alan Modra <amodra@gmail.com>
4421
4422 PR target/71680
4423 * lra-constraints.c (simplify_operand_subreg): Allow subreg
4424 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4425 slow. Emit two reloads for slow mem case, first loading in
4426 fast innermode, then converting to required mode.
4427
4428 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
4429
4430 * config/rs6000/altivec.h (vec_extract_exp): New macro.
4431 (vec_extract_sig): New macro.
4432 (vec_insert_exp): New macro.
4433 (vec_test_data_class): New macro.
4434 (scalar_extract_exp): New macro.
4435 (scalar_extract_sig): New macro.
4436 (scalar_insert_exp): New macro.
4437 (scalar_test_data_class): New macro.
4438 (scalar_test_neg): New macro.
4439 (scalar_cmp_exp_gt): New macro.
4440 (scalar_cmp_exp_lt): New macro.
4441 (scalar_cmp_exp_eq): New macro.
4442 (scalar_cmp_exp_unordered): New macro.
4443 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4444 to enforce constraint that operand is a 7-bit unsigned literal.
4445 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4446 for power9 built-ins.
4447 (BU_P9V_VSX_2): Likewise.
4448 (BU_P9V_64BIT_VSX_2): Likewise.
4449 (VSEEDP): Add scalar extract exponent support.
4450 (VSEESP): Add scalar extract signature support.
4451 (VSTDCNDP): Add scalar test negative support.
4452 (VSTDCNSP): Likewise.
4453 (VSIEDP): Add scalar insert exponent support.
4454 (VSCEDPGT): Add scalar compare exponent greater than support.
4455 (VSCEDPLT): Add scalar compare exponent less than support.
4456 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4457 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4458 (VSTDCDP): Add scalar test data class support.
4459 (VSTDCSP): Likewise.
4460 (VSEEDP): Add overload support for scalar extract exponent
4461 operation.
4462 (VSESDP): Add overload support for scalar extract signature
4463 operation.
4464 (VSTDCN): Add overload support for scalar test negative
4465 operation.
4466 (VSTDCNDP): Add overload support for scalar test negative
4467 operation.
4468 (VSTDCNSP): Add overload support for scalar test negative
4469 operation.
4470 (VSIEDP): Add overload support for scalar insert exponent
4471 operation.
4472 (VSTDC): Add overload support for scalar test data class
4473 operation.
4474 (VSTDCDP): Add overload support for scalar test data class
4475 operation.
4476 (VSTDCSP): Add overload support for scalar test data class
4477 opreation.
4478 (VSCEDPGT): Add overload support for scalar compare exponent
4479 greater than operation.
4480 (VSCEDPLT): Add overload support for scalar compare exponent
4481 less than operation.
4482 (VSCEDPEQ): Add overload support for scalar compare exponent
4483 test-for-equality operation.
4484 (VSCEDPUO): Add overload support for scalar compare exponent
4485 test-for-unordered operation.
4486 (VEEDP): Add vector extract exponent support.
4487 (VEESP): Likewise.
4488 (VESDP): Add vector extract significand support.
4489 (VESSP): Likewise.
4490 (VIEDP): Add vector insert exponent support.
4491 (VIESP): Likewise.
4492 (VTDCDP): Add vector test data class support.
4493 (VTDCSP): Likewise.
4494 (VES): Add overload support for vector extract significand operation.
4495 (VESDP): Likewise.
4496 (VESSP): Likewise
4497 (VEE): Add overload support for vector extract exponent operation.
4498 (VEEDP): Likewise.
4499 (VEESP): Likewise.
4500 (VTDC): Add overload support for vector test data class operation.
4501 (VTDCDP): Likewise.
4502 (VTDCSP): Likewise.
4503 (VIE): Add overload support for vector insert exponent operation.
4504 (VIEDP): Likewise.
4505 (VIESP): Likewise.
4506 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4507 overloaded binary floating point functions.
4508 (altivec_resolve_overloaded_builtin): Improve error messages to
4509 distinguish between functions not supported in the current
4510 compiler configuration and functions that were invoked with an
4511 invalid parameter combination, and include the built-in function
4512 name in both error messages.
4513 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4514 New prototype.
4515 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4516 function.
4517 (rs6000_expand_binop_builtin): Add check to enforce that argument
4518 2 of the test data class operations is a 7-bit unsigned literal.
4519 (rs6000_invalid_builtin): Add code to issue an error message if a
4520 built-in function that requires the power9_vector and -m32
4521 command-line options is compiled without these options.
4522 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4523 (UNSPEC_VSX_SXSIGDP): New value.
4524 (UNSPEC_VSX_SXSIGPDP): New value.
4525 (UNSPEC_VSX_SIEXPDP): New value.
4526 (UNSPEC_VSX_SCMPEXPDP): New value.
4527 (UNSPEC_VSX_STSTDC): New value.
4528 (UNSPEC_VSX_VXEXP): New value.
4529 (UNSPEC_VSX_VXSIG): New value.
4530 (UNSPEC_VSX_VIEXP): New value.
4531 (UNSPEC_VSX_VTSTDC): New value.
4532 (xsxexpdp): New insn for scalar extract exponent.
4533 (xsxsigdp): New insn for scalar extract significand.
4534 (xsiexpdp): New insn for scalar insert exponent.
4535 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4536 (*xscmpexpdp): New insn for scalar compare exponents.
4537 (xststdc<Fvsx): New expansion for both single- and
4538 double-precision scalar test data class operations.
4539 (xststdcneg<Fvsx>): New expansion for both single- and
4540 double-precision scalar test for negative value operations.
4541 (*xststdc<Fvsx>): New insn for scalar test data class
4542 operation.
4543 (xvxexp<VSs>): New insn for single- and double-precision
4544 vector extract exponent operation.
4545 (xvxsig<VSs>): New insn for single- and double-precision
4546 vector extract significand operation.
4547 (xviexp<VSs>): New insn for single- and double-precision
4548 vector insert exponent operation.
4549 (xvtstdc<VSs>): New insn for single- and double-precision
4550 vector test data class operation.
4551 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4552 built-in functions to represent the Power9 binary floating-point
4553 support instructions.
4554
4555 2016-08-10 bin cheng <bin.cheng@arm.com>
4556
4557 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4558
4559 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
4560 Renlin Li <renlin.li@arm.com>
4561 Bin Cheng <bin.cheng@arm.com>
4562
4563 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4564 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4565 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4566 (aarch64_vcond_internal<mode><mode>): Delete pattern.
4567 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4568 (vcond<v_cmp_result><mode>): Ditto.
4569 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4570 (vcondu<mode><mode>): Ditto.
4571 (vcond<v_cmp_mixed><mode>): New pattern.
4572 (vcondu<mode><v_cmp_mixed>): New pattern.
4573 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4574 of aarch64_vcond_internal.
4575
4576 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
4577 Renlin Li <renlin.li@arm.com>
4578 Bin Cheng <bin.cheng@arm.com>
4579
4580 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4581 (vec_cmp<mode><v_cmp_result>): New pattern.
4582 (vec_cmpu<mode><mode>): New pattern.
4583 (vcond_mask_<mode><v_cmp_result>): New pattern.
4584
4585 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
4586
4587 PR tree-optimization/71734
4588 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
4589 REF_LOOP, invoke ref_indep_loop_p_1.
4590 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
4591 to ref_indep_loop_p.
4592 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
4593 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
4594 is inside LOOP, do not cache dpendence value for loops with
4595 non-zero SAFELEN.
4596 (ref_indep_loop_p_2): Delete function.
4597 (can_sm_ref_p): Pass LOOP as additional argument to
4598 ref_indep_loop_p.
4599
4600 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4601
4602 PR target/72853
4603 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4604 being an offsettable address.
4605
4606 2016-08-10 Martin Liska <mliska@suse.cz>
4607
4608 PR gcov-profile/58306
4609 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
4610 atomic variants of profile update functions.
4611
4612 2016-08-10 Martin Liska <mliska@suse.cz>
4613
4614 Cherry picked (and modified) from google-4_7 branch
4615 2012-12-26 Rong Xu <xur@google.com>
4616 * common.opt (fprofile-update): Add new flag.
4617 * coretypes.h: Define enum profile_update.
4618 * doc/invoke.texi: Document -fprofile-update.
4619 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
4620 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
4621 * tree-profile.c (gimple_init_edge_profiler): Generate
4622 also atomic profiler update.
4623 (gimple_gen_edge_profiler): Likewise.
4624
4625 2016-08-10 David Malcolm <dmalcolm@redhat.com>
4626
4627 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
4628 stack_usage_file to NULL after fclose calls.
4629
4630 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4631
4632 PR target/71873
4633 * reload.c (push_reload): Compute subreg_in_class for
4634 subregs of constants and plus expressions. Remove special
4635 handling of SYMBOL_REFs.
4636
4637 2016-08-10 Alan Modra <amodra@gmail.com>
4638
4639 PR target/71680
4640 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
4641 SImode for TARGET_E500_DOUBLE when given SImode.
4642
4643 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
4644
4645 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
4646 unused variable __O.
4647
4648 2016-08-09 Martin Liska <mliska@suse.cz>
4649
4650 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
4651 _gcov_reset to __gcov_reset.
4652 * doc/gcov-tool.texi: Fix typo.
4653
4654 2016-08-09 Martin Liska <mliska@suse.cz>
4655
4656 * value-prof.c (gimple_divmod_values_to_profile): Do not
4657 instrument MOD histogram if a value is not a SSA name.
4658
4659 2016-08-09 Martin Liska <mliska@suse.cz>
4660
4661 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
4662 values.
4663
4664 2016-08-09 Renlin Li <renlin.li@arm.com>
4665
4666 PR middle-end/64971
4667 * calls.c (prepare_call_address): Convert funexp to Pmode when
4668 necessary.
4669 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
4670 (sibcall_value): Likewise.
4671
4672 2016-08-09 Marek Polacek <polacek@redhat.com>
4673
4674 PR c/7652
4675 * cselib.c (cselib_expand_value_rtx_1): Add return.
4676 * gengtype.c (dbgprint_count_type_at): Likewise.
4677 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
4678 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
4679
4680 2016-08-09 Martin Jambor <mjambor@suse.cz>
4681
4682 PR ipa/71981
4683 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4684 if instance is a MEM_REF.
4685
4686 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
4687
4688 PR target/72843
4689 * config/i386/i386.md (*movtf_internal): Use
4690 lra_in_progress || reload_completed instead of !can_create_pseudo_p
4691 in the insn constraint.
4692 (*movxf_internal): Ditto.
4693 (*movdf_internal): Ditto.
4694 (*movsf_internal): Ditto.
4695
4696 2016-08-09 Bin Cheng <bin.cheng@arm.com>
4697
4698 PR tree-optimization/72772
4699 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
4700 for expanded base.
4701
4702 2016-08-09 Bin Cheng <bin.cheng@arm.com>
4703
4704 PR tree-optimization/72772
4705 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
4706 parameter STOP.
4707 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
4708 parameter STOP and update calls. Move expand_simple_operations
4709 function call from here...
4710 (simplify_using_initial_conditions): ...to here. Delete parameter
4711 STOP.
4712 (tree_simplify_using_condition): Delete parameter STOP.
4713 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
4714 simplify_using_initial_conditions.
4715
4716 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
4717
4718 PR c/65345
4719 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
4720 Use create_tmp_var_raw instead of create_tmp_var.
4721
4722 2016-08-09 Richard Biener <rguenther@suse.de>
4723
4724 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
4725 Treat same SSA names related.
4726
4727 2016-08-09 Jakub Jelinek <jakub@redhat.com>
4728
4729 PR tree-optimization/72824
4730 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
4731 real_zerop is not negative.
4732
4733 2016-08-09 Richard Biener <rguenther@suse.de>
4734
4735 PR tree-optimization/71802
4736 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
4737 all merge opportunities with the predecessor.
4738
4739 2016-08-09 Richard Biener <rguenther@suse.de>
4740
4741 PR ipa/68273
4742 * ipa-prop.c (ipa_modify_formal_parameters): Build
4743 parameter types with natural alignment also for the
4744 over-aligned case.
4745
4746 2016-08-08 Andi Kleen <ak@linux.intel.com>
4747
4748 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
4749
4750 2016-08-08 David Malcolm <dmalcolm@redhat.com>
4751
4752 PR c/64955
4753 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
4754 do-nothing langhook.
4755 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
4756 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
4757 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
4758 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
4759
4760 2016-08-08 David Malcolm <dmalcolm@redhat.com>
4761
4762 PR bootstrap/72844
4763 * input.c: Ensure that HAVE_ICONV is defined.
4764
4765 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4766
4767 PR middle-end/72781
4768 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
4769 private vars for lastprivate and for linear iterator.
4770
4771 PR middle-end/68762
4772 * omp-simd-clone.c: Include varasm.h.
4773 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
4774 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
4775 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
4776 update function name.
4777
4778 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4779
4780 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
4781 (avr_diagnose_devicespecs_error): Remove.
4782 (avr_devicespecs_file): Remove composing absolute path for specfile
4783 and its verbose info. Remove conditions to check specs-file,
4784
4785 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR rtl-optimization/72821
4788 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
4789 just return false for them.
4790
4791 2016-08-08 Alan Modra <amodra@gmail.com>
4792
4793 PR target/72771
4794 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
4795 toc refs created during reload. Update function comment.
4796
4797 2016-08-08 Alan Modra <amodra@gmail.com>
4798
4799 PR target/72802
4800 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
4801 alternatives. Put loads first, then stores, and reg/reg moves
4802 within same class later. Delete attr length.
4803
4804 2016-08-08 Alan Modra <amodra@gmail.com>
4805
4806 PR target/72802
4807 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
4808 (mem_operand_ds_form): New predicate.
4809 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
4810 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
4811 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
4812 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
4813 (extendsfdf2_fpr): Replace o constraint with wY.
4814
4815 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
4816
4817 * tree-ssa-threadbackward.c: Include tree-inline.h
4818 (profitable_jump_thread_path): Use estimate_num_insns to estimate
4819 size of copied block; for cold paths reduce duplication.
4820 (find_jump_threads_backwards): Remove redundant tests.
4821 (pass_thread_jumps::gate): Enable for -Os.
4822
4823 2016-08-07 Jakub Jelinek <jakub@redhat.com>
4824
4825 PR c/72816
4826 * stor-layout.c (layout_decl): Fix up formatting.
4827 (relayout_decl): Allow DECL to be FIELD_DECL.
4828
4829 2016-08-07 Alan Modra <amodra@gmail.com>
4830
4831 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
4832
4833 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4834
4835 * data-streamer-in.c (streamer_read_wide_int): New.
4836 (streamer_read_widest_int): Renamed function.
4837 * data-streamer-out.c (streamer_write_wide_int): New
4838 (streamer_write_widest_int): Renamed function.
4839 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
4840 data-stream-in.c.
4841 (input_cfg): Call renamed function.
4842 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
4843 data-stream-out.c.
4844 (output_cfg): Call renamed function.
4845 * data-streamer.h: Add declarations.
4846
4847 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4848
4849 * tree-ssa-ccp.c (extend_mask): New param sgn.
4850 Remove ORing with wi::mask.
4851 (get_default_value): Adjust call to extend_mask to pass sign.
4852 (evaluate_stmt): Likewise.
4853
4854 2016-08-06 Jakub Jelinek <jakub@redhat.com>
4855
4856 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
4857 INT64_MAX.
4858
4859 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4860
4861 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
4862 transform if operand's type is pointer to function or method.
4863
4864 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
4865
4866 PR tree-optimization/18046
4867 * tree-ssa-threadedge.c: Include cfganal.h.
4868 (simplify_control_statement_condition): If simplifying a
4869 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
4870 with the dominating ASSERT_EXPR before handing it off to VRP.
4871 Mention that a CASE_LABEL_EXPR may be returned.
4872 (thread_around_empty_blocks): Adjust to handle
4873 simplify_control_statement_condition() returning a
4874 CASE_LABEL_EXPR.
4875 (thread_through_normal_block): Likewise.
4876 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
4877 a switch statement by trying to determine which case label
4878 will be taken.
4879
4880 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
4881
4882 PR rtl-optimization/69847
4883 * lra-constraints.c (process_invariant_for_inheritance): Save
4884 pattern instead of src.
4885 (remove_inheritance_pseudos): Use the pattern. Add assert.
4886
4887 2016-08-05 David Malcolm <dmalcolm@redhat.com>
4888
4889 * input.c (string_concat::string_concat): New constructor.
4890 (string_concat_db::string_concat_db): New constructor.
4891 (string_concat_db::record_string_concatenation): New method.
4892 (string_concat_db::get_string_concatenation): New method.
4893 (string_concat_db::get_key_loc): New method.
4894 (class auto_cpp_string_vec): New class.
4895 (get_substring_ranges_for_loc): New function.
4896 (get_source_range_for_substring): New function.
4897 (get_num_source_ranges_for_substring): New function.
4898 (class selftest::lexer_test_options): New class.
4899 (struct selftest::lexer_test): New struct.
4900 (class selftest::ebcdic_execution_charset): New class.
4901 (selftest::ebcdic_execution_charset::s_singleton): New variable.
4902 (selftest::lexer_test::lexer_test): New constructor.
4903 (selftest::lexer_test::~lexer_test): New destructor.
4904 (selftest::lexer_test::get_token): New method.
4905 (selftest::assert_char_at_range): New function.
4906 (ASSERT_CHAR_AT_RANGE): New macro.
4907 (selftest::assert_num_substring_ranges): New function.
4908 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
4909 (selftest::assert_has_no_substring_ranges): New function.
4910 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
4911 (selftest::test_lexer_string_locations_simple): New function.
4912 (selftest::test_lexer_string_locations_ebcdic): New function.
4913 (selftest::test_lexer_string_locations_hex): New function.
4914 (selftest::test_lexer_string_locations_oct): New function.
4915 (selftest::test_lexer_string_locations_letter_escape_1): New function.
4916 (selftest::test_lexer_string_locations_letter_escape_2): New function.
4917 (selftest::test_lexer_string_locations_ucn4): New function.
4918 (selftest::test_lexer_string_locations_ucn8): New function.
4919 (selftest::uint32_from_big_endian): New function.
4920 (selftest::test_lexer_string_locations_wide_string): New function.
4921 (selftest::uint16_from_big_endian): New function.
4922 (selftest::test_lexer_string_locations_string16): New function.
4923 (selftest::test_lexer_string_locations_string32): New function.
4924 (selftest::test_lexer_string_locations_u8): New function.
4925 (selftest::test_lexer_string_locations_utf8_source): New function.
4926 (selftest::test_lexer_string_locations_concatenation_1): New
4927 function.
4928 (selftest::test_lexer_string_locations_concatenation_2): New
4929 function.
4930 (selftest::test_lexer_string_locations_concatenation_3): New
4931 function.
4932 (selftest::test_lexer_string_locations_macro): New function.
4933 (selftest::test_lexer_string_locations_stringified_macro_argument):
4934 New function.
4935 (selftest::test_lexer_string_locations_non_string): New function.
4936 (selftest::test_lexer_string_locations_long_line): New function.
4937 (selftest::test_lexer_char_constants): New function.
4938 (selftest::input_c_tests): Call the new test functions once per
4939 case within the line_table test matrix.
4940 * input.h (struct string_concat): New struct.
4941 (struct location_hash): New struct.
4942 (class string_concat_db): New class.
4943 * substring-locations.h: New header.
4944
4945 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
4946
4947 PR tree-optimization/72810
4948 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
4949 the type of the case labels when truncating.
4950
4951 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
4952
4953 PR Target/72819
4954 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
4955 (aarch64_fp16_ptr_type_node): Likewise.
4956 * config/aarch64/aarch64-simd-builtins.c
4957 (aarch64_fp16_ptr_type_node): Define.
4958 (aarch64_init_fp16_types): New, refactored out of...
4959 (aarch64_init_builtins): ...here, update to call
4960 aarch64_init_fp16_types.
4961 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
4962 HFmode.
4963 (aapcs_vfp_sub_candidate): Likewise.
4964
4965 2016-08-05 Martin Liska <mliska@suse.cz>
4966 Joshua Cranmer <Pidgeot18@gmail.com>
4967
4968 * gcov.c (line_t::has_block): New function.
4969 (enum loop_type): New enum.
4970 (handle_cycle): New function.
4971 (unblock): Likewise.
4972 (circuit): Likewise.
4973 (get_cycles_count): Likewise.
4974 (accumulate_line_counts): Use new loop detection algorithm.
4975
4976 2016-08-05 Martin Liska <mliska@suse.cz>
4977
4978 * gcov.c (output_intermediate_file): Rename
4979 function_info::line_next to next_file_fn.
4980 (process_file): Likewise.
4981 (read_graph_file): Likewise.
4982 (accumulate_line_counts): Likewise.
4983 (output_lines): Likewise.
4984
4985 2016-08-05 Richard Biener <rguenther@suse.de>
4986
4987 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
4988 restriction on threading to a loop header.
4989
4990 2016-08-05 Richard Biener <rguenther@suse.de>
4991
4992 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
4993 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
4994 adjust loop info accordingly.
4995
4996 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
4997
4998 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
4999 before folding call to __builtin_constant_p with parameters to false.
5000
5001 2016-08-05 Alan Modra <amodra@gmail.com>
5002
5003 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
5004 code accidentally committed 2016-05-02 providing class when given
5005 NO_REGS.
5006
5007 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
5008
5009 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
5010 the case label ranges that partially overlap with OP's value
5011 range.
5012
5013 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
5014
5015 PR target/72805
5016 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
5017 Cast builtin function result to __mmask16 instead of __mmask8.
5018 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5019 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
5020 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5021
5022 2016-08-04 David Malcolm <dmalcolm@redhat.com>
5023
5024 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
5025 (ASSERT_TRUE_AT): New macro.
5026 (ASSERT_FALSE): Reimplement in terms of...
5027 (ASSERT_FALSE_AT): New macro.
5028 (ASSERT_STREQ_AT): Fix typo in comment.
5029
5030 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
5031
5032 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
5033 labels are exhaustive, designate the label with the widest
5034 range to be the default label.
5035
5036 2016-08-04 Andrew Pinski <apinski@cavium.com>
5037
5038 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
5039 (thunderx_tunings): Use thunderx_vector_cost instead of
5040 generic_vector_cost.
5041
5042 2016-08-04 Martin Liska <mliska@suse.cz>
5043
5044 * gcov.c (main): Fix GNU coding style.
5045 (output_intermediate_file): Likewise.
5046 (process_file): Likewise.
5047 (generate_results): Likewise.
5048 (release_structures): Likewise.
5049 (create_file_names): Likewise.
5050 (find_source): Likewise.
5051 (read_graph_file): Likewise.
5052 (find_exception_blocks): Likewise.
5053 (canonicalize_name): Likewise.
5054 (make_gcov_file_name): Likewise.
5055 (mangle_name): Likewise.
5056 (accumulate_line_counts): Likewise.
5057 (output_branch_count): Likewise.
5058 (read_line): Likewise.
5059
5060 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5061
5062 PR rtl-optimization/71779
5063 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5064 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5065 or if it was truncated.
5066
5067 PR rtl-optimization/70903
5068 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5069
5070 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
5071
5072 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5073 accessing SSA_NAME_PTR_INFO.
5074
5075 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
5076
5077 PR 70677
5078 * common/config/avr/avr-common.c (avr_option_optimization_table)
5079 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5080
5081 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
5082
5083 PR 55181
5084 * config/avr/avr.md: New pattern to work around do_store_flag
5085 generating shift instructions for bit extractions.
5086
5087 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
5088
5089 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5090 BITMAP_ALLOC.
5091 (add_equivalence): Likewise.
5092 (get_value_range): Allocate value range with vrp_value_range_pool.
5093 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5094 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5095
5096 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
5097
5098 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5099 the default for the rs6000 port.
5100
5101 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5102
5103 PR middle-end/71876
5104 * calls.c (special_function_p): Remove special handling of
5105 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5106 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
5107 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5108
5109 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
5110
5111 PR middle-end/72778
5112 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5113 Don't stop on regular insns.
5114
5115 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5116
5117 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5118 size to DImode boundary.
5119 (nvptx_propagate): Likewise.
5120
5121 2016-08-03 Alan Modra <amodra@gmail.com>
5122
5123 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5124 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5125 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5126 from -mefficient-unaligned-vector. Note that this affects fp too.
5127
5128 2016-08-03 Alan Modra <amodra@gmail.com>
5129
5130 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5131 cost more.
5132
5133 2016-08-03 Alan Modra <amodra@gmail.com>
5134
5135 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5136 to a reg. Localize vars.
5137
5138 2016-08-03 Alan Modra <amodra@gmail.com>
5139
5140 * config/rs6000/rs6000.opt: Remove negatives from help strings
5141 and comments.
5142
5143 2016-08-03 Alan Modra <amodra@gmail.com>
5144
5145 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5146 Delete duplicated code.
5147
5148 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
5149
5150 PR middle-end/72778
5151 * lra-spills.c (regno_in_use_p): New.
5152 (lra_final_code_change): Use it.
5153
5154 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
5155
5156 PR rtl-optimization/69847
5157 * lra-int.h (struct lra-reg): Use restore_rtx instead of
5158 restore_regno.
5159 (lra_rtx_hash): New.
5160 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5161 of restore_regno.
5162 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5163 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5164 * lra-spills.c (lra_final_code_change): Don't delete insn when the
5165 next insn is USE with the same reg as the current insn source.
5166 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5167 of restore_regno.
5168 (lra_constraints_init): Call initiate_invariants.
5169 (lra_constraints_finish): Call finish_invariants.
5170 (struct invariant, invariant_t, invariant_ptr_t): New.
5171 (const_invariant_ptr_t, invariants, invariants_pool): New.
5172 (invariant_table, invariant_hash, invariant_eq_p): New.
5173 (insert_invariant, initiate_invariants, finish_invariants): New.
5174 (clear_invariants, invalid_invariant_regs): New.
5175 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5176 instead of restore_regno.
5177 (invariant_p, process_invariant_for_inheritance): New.
5178 (inherit_in_ebb): Implement invariant inheritance.
5179 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5180 (remove_inheritance_pseudos): Implement undoing invariant
5181 inheritance.
5182 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5183 instead of restore_regno.
5184 * lra-assigns.c (regno_live_length): New.
5185 (reload_pseudo_compare_func): Use regno_live_length.
5186 (assign_by_spills): Use restore_rtx instead of restore_regno.
5187 (lra_assign): Ditto. Initiate regno_live_length.
5188
5189 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
5190
5191 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5192 __builtin_aarch64_fmindf.
5193
5194 2016-08-02 Bin Cheng <bin.cheng@arm.com>
5195
5196 PR tree-optimization/34114
5197 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5198 information for more control IVs.
5199
5200 2016-08-02 Bin Cheng <bin.cheng@arm.com>
5201
5202 PR tree-optimization/34114
5203 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5204 PLUS_EXPR case. Handle SSA_NAME case.
5205
5206 2016-08-02 Tamar Christina <tamar.christina@arm.com>
5207
5208 * config/aarch64/aarch64-simd-builtins.def
5209 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5210 (__builtin_aarch64_fmaxdf): Likewise.
5211 (__builtin_aarch64_smin_nandf): Likewise.
5212 (__builtin_aarch64_smax_nandf): Likewise.
5213 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5214 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5215 (<fmaxmin><mode>3): ...this.
5216 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5217 (vminnm_f64): Likewise.
5218 (vmin_f64): Likewise.
5219 (vmax_f64): Likewise.
5220 * config/aarch64/iterators.md (FMAXMIN): Merge with...
5221 (FMAXMIN_UNS): ...this.
5222 (fmaxmin): Merged with
5223 (fmaxmin_op): ...this...
5224 (maxmin_uns_op): ...in to this.
5225
5226 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5227
5228 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5229 Add support for vec_extract on vector float, vector int, vector
5230 short, and vector char vector types.
5231 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5232 vector float, vector int, vector short, and vector char
5233 optimizations on 64-bit ISA 2.07 systems for both constant and
5234 variable element numbers.
5235 (rs6000_split_vec_extract_var): Likewise.
5236 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5237 Altivec registers on ISA 2.07 and above.
5238 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5239 which never was matched due to the split occuring before register
5240 allocation (and the code would not have worked on little endian
5241 systems if it did match). Allow extracts to go to the Altivec
5242 registers if ISA 2.07 (power8). Change from using "" around the
5243 C++ code to using {}'s.
5244 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5245 vec_extracts when the vector is in memory.
5246 (vsx_extract_v4sf_var): New insn to optimize vector float
5247 vec_extracts when the element number is variable on 64-bit ISA
5248 2.07 systems.
5249 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5250 for 64-bit ISA 2.07 as well as ISA 3.0.
5251 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5252 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5253 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5254 optimize vector int, vector short, and vector char vec_extracts
5255 when the vector is in memory.
5256 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5257 optimize vector int, vector short, and vector char vec_extracts
5258 when the element number is variable.
5259
5260 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
5261
5262 PR target/71948
5263 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5264 does not overlap with other symbol flags.
5265
5266 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
5267
5268 * config/aarch64/aarch64.h (aarch64_frame):
5269 Remove padding0 and hardfp_offset. Add locals_offset,
5270 initial_adjust, callee_adjust, callee_offset and final_adjust.
5271 * config/aarch64/aarch64.c (aarch64_layout_frame):
5272 Remove unused padding0 and hardfp_offset initializations.
5273 Choose frame layout and set frame variables accordingly.
5274 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5275 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5276 (aarch64_pop_regs): Likewise.
5277 (aarch64_expand_prologue): Remove all decision code, just emit
5278 prolog according to frame variables.
5279 (aarch64_expand_epilogue): Remove all decision code, just emit
5280 epilog according to frame variables.
5281 (aarch64_initial_elimination_offset): Use offset to local/arg area.
5282
5283 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
5284
5285 PR target/72748
5286 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5287 fix_debug_reg_uses after changing source register mode to
5288 V1TImode if source register is undefined.
5289
5290 2015-08-01 Alan Hayward <alan.hayward@arm.com>
5291
5292 PR tree-optimization/71818
5293 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5294 with non invariant evolutions
5295
5296 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
5297
5298 PR target/72767
5299 * config/avr/avr.md (length) [branch]: Correct insn length
5300 attribute for forward branches.
5301
5302 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
5303
5304 * doc/extend.texi (AVR Built-in Functions): Document
5305 __builtin_avr_nops.
5306 * config/avr/builtins.def (NOPS): New.
5307 * config/avr/avr.c (avr_expand_nops): New static function.
5308 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5309
5310 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5311
5312 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5313 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5314 addresses.
5315
5316 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
5317
5318 * config/aarch64/aarch64.c (vulcan_tunings): Update
5319 vulcan L1 cache_line_size.
5320
5321 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
5322
5323 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5324 function that takes a vector memory address, a hard register, an
5325 element number and a temporary base register, and recreates an
5326 address that points to the appropriate element within the vector.
5327 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5328 (rs6000_split_vec_extract_var): Add support for the target of a
5329 vec_extract with variable element number being a scalar memory
5330 location.
5331 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5332 swappable.
5333 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5334 vsx_extract_<mode>_load insn with a new insn that optimizes
5335 storing either element to a memory location, using scratch
5336 registers to pick apart the vector and reconstruct the address.
5337 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5338 (vsx_extract_<mode>_store): Rework alternatives to more correctly
5339 support Altivec registers. Add support for ISA 3.0 Altivec d-form
5340 store instruction.
5341 (vsx_extract_<mode>_var): Add support for extracting a variable
5342 element number from memory.
5343
5344 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
5345
5346 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5347 when testing for compares against constants of the form 0xabab.
5348
5349 2016-07-29 Bin Cheng <bin.cheng@arm.com>
5350
5351 PR tree-optimization/57558
5352 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5353 function.
5354 (vect_loop_versioning): Support versioning with niter assumptions.
5355 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5356 (vect_get_loop_niters): New parameter. Reimplement to support
5357 assumptions in loop niter info.
5358 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5359 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5360 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5361 Support loop versioning for niters.
5362 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5363 (vect_free_loop_info_assumptions): New function.
5364 (vectorize_loops): Free loop niter info for loops with flag
5365 LOOP_F_ASSUMPTIONS set if vectorization failed.
5366 * tree-vectorizer.h (struct _loop_vec_info): New field
5367 num_iters_assumptions.
5368 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5369 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5370 (LOOP_REQUIRES_VERSIONING): New macro.
5371 (vect_free_loop_info_assumptions): New decl.
5372
5373 2016-07-29 Bin Cheng <bin.cheng@arm.com>
5374
5375 * cfgloop.h (struct loop): New field constraints.
5376 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5377 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5378 functions.
5379 * cfgloop.c (alloc_loop): Initialize new field.
5380 * cfgloopmanip.c (copy_loop_info): Copy constraints.
5381 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5382 Adjust niter analysis wrto loop constraints.
5383 * doc/loop.texi (@node Number of iterations): Add description for loop
5384 constraints.
5385
5386 2016-07-29 Marek Polacek <polacek@redhat.com>
5387
5388 PR c/7652
5389 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5390 (ix86_expand_round_builtin): Likewise.
5391
5392 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5393 Georg-Johann Lay <avr@gjlay.de>
5394
5395 PR rtl-optimization/71976
5396 * combine.c (get_last_value): Return 0 if the argument for which
5397 the function is called has a wider mode than the recorded value.
5398
5399 2016-07-29 Marek Polacek <polacek@redhat.com>
5400
5401 PR c/7652
5402 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5403 (altivec_expand_st_builtin): Likewise.
5404
5405 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
5406
5407 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5408 introduced in r238381.
5409
5410 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
5411
5412 PR middle-end/68217
5413 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5414 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5415
5416 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
5417
5418 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5419 New declaration.
5420 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5421 Add support for vec_extract of vector double or vector long having
5422 a variable element number on 64-bit ISA 2.07 systems or newer.
5423 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5424 Likewise.
5425 (rs6000_split_vec_extract_var): New function to split a
5426 vec_extract built-in function with variable element number.
5427 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5428 swappable.
5429 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5430 (UNSPEC_VSX_EXTRACT): Likewise.
5431 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5432 direct move instructions to be generated on 64-bit ISA 2.07
5433 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5434 instruction.
5435 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5436 arguments for vec_extract variable element.
5437 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5438 vec_extract with variable element on V2DFmode and V2DImode
5439 vectors.
5440 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5441 -mupper-regs-df requirement, since it isn't needed.
5442 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5443 do direct moves on 64-bit systems, which allows optimization of
5444 vec_extract on 64-bit ISA 2.07 systems and newer.
5445
5446 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
5447 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
5448
5449 * config/aarch64/aarch64.md
5450 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5451 statement and type.
5452 (<optab>qihi2_aarch64): Likewise, and split into two.
5453 (extendqihi2_aarch64): New.
5454 (zero_extendqihi2_aarch64): New.
5455 * config/aarch64/iterators.md (ldrxt): Remove.
5456 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5457 uxtb/uxth.
5458
5459 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
5460
5461 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5462
5463 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
5464
5465 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5466 (aarch64_push_reg): New function to push 1 or 2 registers.
5467 (aarch64_pop_reg): New function to pop 1 or 2 registers.
5468 (aarch64_expand_prologue): Use aarch64_push_regs.
5469 (aarch64_expand_epilogue): Use aarch64_pop_regs.
5470
5471 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
5472
5473 PR tree-optimization/71734
5474 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5475 attribute instead of REF_LOOP and use it.
5476 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5477 set it for Loops having non-zero safelen attribute.
5478 (ref_indep_loop_p): Pass zero as initial value for safelen.
5479
5480 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
5481
5482 PR middle-end/72657
5483 PR target/72683
5484 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5485 call using chkp_gimple_call_builtin_p.
5486 (chkp_copy_bounds_for_assign): Likewise.
5487
5488 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5489
5490 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5491 * config/arm/arm-protos.h (struct tune_params): Likewise.
5492 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5493 (cortex_a9_sched_adjust_cost): Likewise.
5494 (fa726te_sched_adjust_cost): Likewise.
5495 (arm_adjust_cost): Likewise.
5496 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5497 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5498 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5499 * config/i386/i386.c (ix86_adjust_cost): Likewise.
5500 * config/ia64/ia64.c: Likewise.
5501 * config/m68k/m68k.c: Likewise.
5502 * config/mep/mep.c (mep_adjust_cost): Likewise.
5503 * config/microblaze/microblaze.c (microblaze_adjust_cost):
5504 * Likewise.
5505 * config/mips/mips.c (mips_adjust_cost): Likewise.
5506 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5507 * Likewise.
5508 * config/pa/pa.c (pa_adjust_cost): Likewise.
5509 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5510 (rs6000_debug_adjust_cost): Likewise.
5511 * config/sh/sh.c (sh_adjust_cost): Likewise.
5512 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5513 (hypersparc_adjust_cost): Likewise.
5514 (sparc_adjust_cost): Likewise.
5515 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5516 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5517 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5518 * Likewise.
5519 * config/visium/visium.c (visium_adjust_cost): Likewise.
5520 * doc/tm.texi: Regenerate.
5521 * haifa-sched.c (dep_cost_1): Adjust.
5522 * target.def: Merge adjust_cost and adjust_cost_2.
5523
5524 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5525
5526 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5527
5528 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5529
5530 * store-motion.c (struct st_expr): Make pattern_regs a vector.
5531 (extract_mentioned_regs): Append to a vector instead of
5532 returning a rtx_expr_list.
5533 (st_expr_entry): Adjust.
5534 (free_st_expr_entry): Likewise.
5535 (store_ops_ok): Likewise.
5536 (store_killed_in_insn): Likewise.
5537 (find_moveable_store): Likewise.
5538
5539 2016-07-28 Martin Liska <mliska@suse.cz>
5540
5541 PR gcov-profile/68025
5542 * tree-profile.c (tree_profiling): Respect
5543 no_profile_instrument_function attribute.
5544 * doc/extend.texi: Document no_profile_instrument_function
5545 attribute.
5546
5547 2016-07-28 Martin Liska <mliska@suse.cz>
5548
5549 PR rtl-optimization/70944
5550 * combine.c (make_compound_operation):
5551 Do not allow make_compound_operation for vector mode
5552
5553 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
5554
5555 PR middle-end/71994
5556 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5557 before calling get_ops.
5558
5559 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5560
5561 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5562 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5563 (BITS_PER_UNIT_LOG): Remove.
5564 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5565 * expr.c (expand_assignment): Likewise.
5566 * stor-layout.c (initialize_sizetypes): Likewise.
5567
5568 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
5569
5570 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5571 signature of rs6000_expand_vector_extract so that the element
5572 number is a RTX instead of a constant integer.
5573 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5574 Likewise.
5575 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5576 (altivec_expand_vec_ext_builtin): Likewise.
5577 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5578 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5579 MFVSRLD instruction.
5580
5581 2016-07-27 David Malcolm <dmalcolm@redhat.com>
5582
5583 * input.c (get_pure_location): Move here from tree.c.
5584 (make_location): Likewise. Add header comment.
5585 (selftest::test_accessing_ordinary_linemaps): Verify
5586 pure_location_p, make_location, get_location_from_adhoc_loc and
5587 get_range_from_loc.
5588 * input.h (get_pure_location): Move declaration here from tree.h.
5589 (get_finish): Likewise for inline function.
5590 (make_location): Likewise for declaration.
5591 * tree.c (get_pure_location): Move to input.c.
5592 (make_location): Likewise.
5593 * tree.h (get_pure_location): Move declaration to tree.h.
5594 (get_finish): Likewise for inline function.
5595 (make_location): Likewise for declaration.
5596
5597 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5598
5599 PR middle-end/71078
5600 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
5601
5602 2016-07-27 David Malcolm <dmalcolm@redhat.com>
5603
5604 * system.h (STATIC_ASSERT): Use static_assert if building
5605 with C++11 onwards.
5606
5607 2016-07-27 Richard Biener <rguenther@suse.de>
5608
5609 PR tree-optimization/72517
5610 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5611 Revert change to not compute read-read dependences.
5612
5613 2016-07-27 Richard Biener <rguenther@suse.de>
5614
5615 * predict.c (set_even_probabilities): Make nedges unsigned.
5616
5617 2016-07-27 Martin Liska <mliska@suse.cz>
5618
5619 * predict.c (set_even_probabilities): Handle unlikely edges.
5620 (combine_predictions_for_bb): Likewise.
5621
5622 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5623
5624 PR target/71869
5625 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
5626 __float128 support when we don't have hardware support, so that
5627 the IEEE built-in functions like isgreater, first call __unordkf3
5628 to make sure neither operand is a NaN, and if both operands are
5629 ordered, do the normal comparison.
5630
5631 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
5632
5633 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
5634 name.
5635 (extract_code_and_val_from_cond_with_ops): Verify that name is
5636 either cond_op0 or cond_op1.
5637
5638 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
5639
5640 PR tree-optimization/18046
5641 * genmodes.c (emit_mode_size_inline): Emit an assert that
5642 verifies that mode is a valid array index.
5643 (emit_mode_nuinits_inline): Likewise.
5644 (emit_mode_inner_inline): Likewise.
5645 (emit_mode_unit_size_inline): Likewise.
5646 (emit_mode_unit_precision_inline): Likewise.
5647 * tree-vrp.c: Include params.h.
5648 (find_switch_asserts): Register edge assertions for the default
5649 label which correspond to the anti-ranges of each case label.
5650 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
5651 * doc/invoke.texi: Document it.
5652
5653 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5654
5655 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
5656 and unnecessary call to gimple_bb.
5657
5658 2016-07-26 Richard Biener <rguenther@suse.de>
5659
5660 PR rtl-optimization/71984
5661 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
5662 for VOIDmode.
5663
5664 2016-07-26 Richard Biener <rguenther@suse.de>
5665
5666 PR middle-end/72517
5667 * expmed.c (extract_bit_field_1): Constrain the vector mode
5668 with element size matching the extraction mode size when
5669 choosing a better vector mode to do the extraction from.
5670
5671 2016-07-26 Richard Biener <rguenther@suse.de>
5672 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5673
5674 PR middle-end/70920
5675 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
5676 pattern.
5677
5678 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5679
5680 * tree-ssa-structalias.c (struct scc_info): Change types of
5681 members to auto_sbitmap and auto_vec.
5682 (scc_info::scc_info): New constructor.
5683 (scc_info::~scc_info): New destructor.
5684 (init_scc_info): Remove.
5685 (free_scc_info): Remove.
5686 (find_indirect_cycles): Adjust.
5687 (perform_var_substitution): Likewise.
5688 (free_var_substitution_info): Likewise.
5689
5690 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5691
5692 * tree-outof-ssa.c (struct elim_graph): Change type of members
5693 to auto_vec and auto_sbitmap.
5694 (elim_graph::elim_graph): New constructor.
5695 (delete_elim_graph): Remove.
5696 (expand_phi_nodes): Adjust.
5697
5698 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5699
5700 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
5701 (new_elim_graph): Adjust.
5702 (clear_elim_graph): Likewise.
5703 (delete_elim_graph): Likewise.
5704 (elim_graph_size): Likewise.
5705 (elim_graph_add_node): Likewise.
5706 (elim_graph_add_edge): Likewise.
5707 (elim_graph_remove_succ_edge): Likewise.
5708 (eliminate_name): Likewise.
5709 (eliminate_build): Likewise.
5710 (elim_forward): Likewise.
5711 (elim_unvisited_predecessor): Likewise.
5712 (elim_backward): Likewise.
5713 (elim_create): Likewise.
5714 (eliminate_phi): Likewise.
5715 (expand_phi_nodes): Likewise.
5716
5717 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5718
5719 * bt-load.c (compute_out): Use auto_sbitmap class.
5720 (link_btr_uses): Likewise.
5721 * cfganal.c (mark_dfs_back_edges): Likewise.
5722 (post_order_compute): Likewise.
5723 (inverted_post_order_compute): Likewise.
5724 (pre_and_rev_post_order_compute_fn): Likewise.
5725 (single_pred_before_succ_order): Likewise.
5726 * cfgexpand.c (pass_expand::execute): Likewise.
5727 * cfgloop.c (verify_loop_structure): Likewise.
5728 * cfgloopmanip.c (fix_bb_placements): Likewise.
5729 (remove_path): Likewise.
5730 (update_dominators_in_loop): Likewise.
5731 * cfgrtl.c (break_superblocks): Likewise.
5732 * ddg.c (check_sccs): Likewise.
5733 (create_ddg_all_sccs): Likewise.
5734 * df-core.c (df_worklist_dataflow): Likewise.
5735 * dse.c (dse_step3): Likewise.
5736 * except.c (eh_region_outermost): Likewise.
5737 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5738 * gcse.c (prune_expressions): Likewise.
5739 (prune_insertions_deletions): Likewise.
5740 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
5741 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5742 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
5743 * lcm.c (compute_earliest): Likewise.
5744 (compute_farthest): Likewise.
5745 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
5746 (unroll_loop_runtime_iterations): Likewise.
5747 (unroll_loop_stupid): Likewise.
5748 * lower-subreg.c (decompose_multiword_subregs): Likewise.
5749 * lra-lives.c: Likewise.
5750 * lra.c (lra): Likewise.
5751 * modulo-sched.c (schedule_reg_moves): Likewise.
5752 (optimize_sc): Likewise.
5753 (get_sched_window): Likewise.
5754 (sms_schedule_by_order): Likewise.
5755 (check_nodes_order): Likewise.
5756 (order_nodes_of_sccs): Likewise.
5757 (order_nodes_in_scc): Likewise.
5758 * recog.c (split_all_insns): Likewise.
5759 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
5760 * reload1.c (reload): Likewise.
5761 * sched-rgn.c (haifa_find_rgns): Likewise.
5762 (split_edges): Likewise.
5763 (compute_trg_info): Likewise.
5764 * sel-sched.c (init_seqno): Likewise.
5765 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5766 * tree-into-ssa.c (update_ssa): Likewise.
5767 * tree-ssa-live.c (live_worklist): Likewise.
5768 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
5769 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5770 * Likewise.
5771 (try_peel_loop): Likewise.
5772 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
5773 * Likewise.
5774 * tree-ssa-pre.c (compute_antic): Likewise.
5775 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5776 * tree-stdarg.c (reachable_at_most_once): Likewise.
5777 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
5778 * var-tracking.c (vt_find_locations): Likewise.
5779
5780 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5781
5782 * sbitmap.h (auto_sbitmap): New class.
5783
5784 2016-07-26 Alan Modra <amodra@gmail.com>
5785
5786 PR target/72103
5787 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
5788 sri->t_icode.
5789
5790 2016-07-25 David Malcolm <dmalcolm@redhat.com>
5791
5792 * input.c (selftest::temp_source_file::temp_source_file): Fix
5793 missing "%s" in fprintf.
5794
5795 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
5796
5797 PR middle-end/71732
5798 * cselib.c (cselib_process_insn): Invalidate argument slots for
5799 const/pure calls.
5800
5801 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5802
5803 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
5804 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
5805 vmulxh_lane_f16, vmulxh_laneq_f16): New.
5806
5807 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5808
5809 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5810 * config/aarch64/aarch64.md (fma, fnma): Support HF.
5811 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
5812
5813 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5814
5815 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5816 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
5817 New.
5818 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
5819 (add<mode>3): Likewise.
5820 (sub<mode>3): Likewise.
5821 (mul<mode>3): Likewise.
5822 (div<mode>3): Likewise.
5823 (*div<mode>3): Likewise.
5824 (<fmaxmin><mode>3): Extend to HF.
5825 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
5826 (fabd<mode>3): Likewise.
5827 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
5828 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
5829 (aarch64_fmulx<mode>): Likewise.
5830 (aarch64_fac<optab><mode>): Likewise.
5831 (aarch64_frecps<mode>): Likewise.
5832 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
5833 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
5834 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
5835 (VSDQ_HSDI): Support HI.
5836 (fcvt_target, FCVT_TARGET): Likewise.
5837 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
5838 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
5839 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
5840 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
5841 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
5842 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
5843 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
5844 vrsqrtsh_f16): New.
5845
5846 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5847
5848 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
5849 * config/aarch64/aarch64-builtins.c (hi_UP): New.
5850 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5851 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
5852 mode.
5853 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
5854 (aarch64_cm<optab><mode>): Likewise.
5855 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
5856 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
5857 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
5858 (sqrt<mode>2): Likewise.
5859 (*sqrt<mode>2): Likewise.
5860 (abs<mode>2): Likewise.
5861 (<optab><mode>hf2): New pattern for HF mode.
5862 (<optab>hihf2): Likewise.
5863 * config/aarch64/arm_neon.h: Include arm_fp16.h.
5864 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
5865 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
5866 Support HF mode.
5867 * config/aarch64/arm_fp16.h: New file.
5868 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
5869 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
5870 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
5871 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
5872 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
5873 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
5874 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
5875 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
5876 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
5877 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
5878 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
5879 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
5880 vsqrth_f16): New.
5881
5882 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5883
5884 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
5885 reduc_smin_scal_): Use VDQIF_F16.
5886 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
5887 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
5888 Use VHSDF.
5889 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
5890 * config/aarch64/iterators.md (VDQIF_F16): New.
5891 (vp): Support HF modes.
5892 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
5893 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
5894
5895 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5896
5897 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
5898 "*aarch64_mulx_elt_from_dup<mode>".
5899 (*aarch64_mul3_elt<mode>): Update schedule type.
5900 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
5901 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
5902 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5903 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
5904 (f, fp): Support HF modes.
5905 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
5906 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
5907 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
5908 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
5909 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
5910 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
5911
5912 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5913
5914 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5915 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
5916 modes.
5917 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
5918 vfmsq_f16): New.
5919
5920 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5921
5922 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5923 * config/aarch64/aarch64-simd.md
5924 (aarch64_rsqrts<mode>): Extend to HF modes.
5925 (fabd<mode>3): Likewise.
5926 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
5927 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
5928 (aarch64_<maxmin_uns>p<mode>): Likewise.
5929 (<su><maxmin><mode>3): Likewise.
5930 (<maxmin_uns><mode>3): Likewise.
5931 (<fmaxmin><mode>3): Likewise.
5932 (aarch64_faddp<mode>): Likewise.
5933 (aarch64_fmulx<mode>): Likewise.
5934 (aarch64_frecps<mode>): Likewise.
5935 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
5936 (add<mode>3): Extend to HF modes.
5937 (sub<mode>3): Likewise.
5938 (mul<mode>3): Likewise.
5939 (div<mode>3): Likewise.
5940 (*div<mode>3): Likewise.
5941 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
5942 HF, V4HF and V8HF.
5943 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
5944 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
5945 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
5946 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
5947 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
5948 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
5949 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
5950 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
5951 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
5952 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
5953 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
5954 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
5955 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
5956 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
5957
5958 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5959
5960 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
5961 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5962 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
5963 (neg<mode>2): Likewise.
5964 (abs<mode>2): Likewise.
5965 (<frint_pattern><mode>2): Likewise.
5966 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
5967 (<optab><VDQF:mode><fcvt_target>2): Likewise.
5968 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
5969 (ftrunc<VDQF:mode>2): Likewise.
5970 (<optab><fcvt_target><VDQF:mode>2): Likewise.
5971 (sqrt<mode>2): Likewise.
5972 (*sqrt<mode>2): Likewise.
5973 (aarch64_frecpe<mode>): Likewise.
5974 (aarch64_cm<optab><mode>): Likewise.
5975 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
5976 HF, V4HF and V8HF.
5977 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
5978 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
5979 (stype): New.
5980 * config/aarch64/arm_neon.h (vdup_n_f16): New.
5981 (vdupq_n_f16): Likewise.
5982 (vld1_dup_f16): Use vdup_n_f16.
5983 (vld1q_dup_f16): Use vdupq_n_f16.
5984 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
5985 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
5986 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
5987 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
5988 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
5989 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
5990 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
5991 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
5992 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
5993 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
5994 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
5995 vsqrt_f16, vsqrtq_f16): New.
5996
5997 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5998
5999 * config/aarch64/aarch64-simd.md
6000 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
6001 (aarch64_ext<mode>): Likewise.
6002 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
6003 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
6004 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
6005 and V8HFmode.
6006 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
6007 float16x8_t.
6008 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
6009 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
6010 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
6011 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
6012 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
6013 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
6014 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
6015 New.
6016 (vmov_n_f16): Reimplement using vdup_n_f16.
6017 (vmovq_n_f16): Reimplement using vdupq_n_f16..
6018
6019 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6020
6021 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
6022 "frame_related_p". Generate CFA annotation when it's necessary.
6023 (aarch64_expand_prologue): Use aarch64_add_constant.
6024 (aarch64_expand_epilogue): Likewise.
6025 (aarch64_output_mi_thunk): Pass "false" when calling
6026 aarch64_add_constant.
6027
6028 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6029
6030 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
6031 sequences.
6032
6033 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6034
6035 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
6036 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
6037 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
6038 (aarch64_build_constant): Delete.
6039
6040 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
6041
6042 Revert
6043 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
6044
6045 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6046 flag_toplevel_reorder.
6047
6048 2016-07-25 Richard Biener <rguenther@suse.de>
6049
6050 * cgraph.c (cgraph_node::verify_node): Compare against builtin
6051 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6052 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6053 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6054 (streamer_get_builtin_tree): Likewise.
6055 (streamer_write_builtin): Likewise.
6056 * lto-streamer.h (LTO_builtin_decl): Remove.
6057 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6058 (lto_input_scc): Remove LTO_builtin_decl handling.
6059 (lto_input_tree_1): Liekwise.
6060 * lto-streamer-out.c (lto_output_tree_1): Remove special
6061 handling of builtins.
6062 (DFS::DFS): Likewise.
6063 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6064 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6065 assert.
6066 (streamer_write_builtin): Remove.
6067
6068 2016-07-25 Martin Liska <mliska@suse.cz>
6069
6070 * lto-cgraph.c (input_symtab): Don't call get_working_sets
6071 if flag_auto_profile is set to true.
6072
6073 2016-07-25 Martin Liska <mliska@suse.cz>
6074
6075 PR gcov-profile/71868
6076 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6077 have a function with multiple latches, count them all.
6078
6079 2016-07-25 Martin Liska <mliska@suse.cz>
6080
6081 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6082
6083 2016-07-25 Martin Liska <mliska@suse.cz>
6084
6085 PR tree-optimization/71987
6086 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6087 just for SSA_NAMEs. Fix GNU coding style.
6088
6089 2016-07-25 Martin Liska <mliska@suse.cz>
6090
6091 PR gcov-profile/64874
6092 * gcov-io.h: Update command about file format.
6093 * gcov-iov.c (main): Adapt the numbering scheme.
6094
6095 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6096
6097 PR middle-end/66726
6098 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6099 whose result is used in PHI.
6100 (final_range_test_p): Likewise.
6101 (maybe_optimize_range_tests): Likewise.
6102
6103 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6104
6105 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6106 Reformat two multi-line strings.
6107
6108 2016-07-22 Martin Sebor <msebor@redhat.com>
6109
6110 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6111
6112 2016-07-22 Martin Sebor <msebor@redhat.com>
6113
6114 PR c/71560
6115 * doc/extend.texi (Compound Literals): Correct and clarify.
6116 (Cast to Union): Same.
6117
6118 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
6119
6120 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6121 comments to explain why certain error messages make mention of
6122 undocumented options.
6123 (rs6000_invalid_builtin): Change error messages to replace mention
6124 of undocumented options with mention of the -mcpu=power9 option
6125 that enables those undocumented options.
6126 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6127 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6128 definition of this macro to correct an existing error.
6129 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6130 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6131 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6132 descriptions of built-in functions so that they depend on
6133 -mcpu=power9 instead of on the corresponding undocumented flags.
6134 * doc/invoke.texi (Option Summary): Remove all mention of newly
6135 undocumented flags.
6136 (IBM RS/6000 and PowerPC Options): Likewise.
6137 * doc/md.texi (Constraints for Particuliar Machines): Remove all
6138 mention of newly undocumented flags.
6139
6140 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
6141
6142 * ipa-cp.c (determine_versionability): Do not create constprop clones,
6143 when target_clones attribute is set.
6144
6145 2016-07-22 Bin Cheng <bin.cheng@arm.com>
6146
6147 * common.opt (funsafe-loop-optimizations): Mark ignore.
6148 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6149 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6150 related code.
6151 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6152 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6153
6154 2016-07-22 Bin Cheng <bin.cheng@arm.com>
6155
6156 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6157 Parameter.
6158 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6159 Parameter.
6160 (number_of_iterations_exit): Warn missed loop optimization for
6161 possible infinite loops.
6162
6163 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
6164
6165 PR target/71216
6166 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6167 when to emit a ".machine" pseudo-op.
6168
6169 2016-07-22 Martin Liska <mliska@suse.cz>
6170
6171 PR gcov-profile/69028
6172 PR gcov-profile/62047
6173 * coverage.c (coverage_compute_lineno_checksum): Do not
6174 calculate checksum for fns w/o xloc.file.
6175 (coverage_compute_profile_id): Likewise.
6176
6177 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
6178
6179 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6180 (avr_secondary_reload): ...and implementation.
6181 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6182 * config/avr/avr.md (reload_in<mode>): Remove insns.
6183 (adjust_len) [lpm]: Remove insn attribute value.
6184 * config/avr/predicates.md (flash_operand): Remove insn predicate.
6185
6186 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6187
6188 PR middle-end/71876
6189 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6190 attribute.
6191 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6192 * calls.c (special_function_p): Remove the special handling of the
6193 "__builtin_" prefix.
6194
6195 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6196
6197 PR middle-end/71876
6198 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
6199 if STMT may be an alloca call.
6200 (gimple_alloca_call_p, alloca_call_p): Return only true for the
6201 builtin alloca call.
6202 * calls.h (gimple_maybe_alloca_call_p): New function.
6203 * tree-inline.c (inline_forbidden_p_stmt): Use
6204 gimple_maybe_alloca_call_p here.
6205
6206 2016-07-21 David Malcolm <dmalcolm@redhat.com>
6207
6208 * spellcheck-tree.c (best_macro_match::best_macro_match):
6209 Explictly specify the template arguments when invoking the base
6210 class constructor, to help older C++ compilers.
6211
6212 2016-07-21 Jakub Jelinek <jakub@redhat.com>
6213
6214 PR sanitizer/71953
6215 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6216 before builtin_decl_implicit.
6217
6218 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
6219
6220 * optabs.c (emit_condiitonal_move): Short circuit for identical
6221 sources.
6222
6223 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
6224
6225 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6226 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
6227 (noce_conversion_profitable_p): New.
6228 (noce_try_store_flag_constants): Use it.
6229 (noce_try_addcc): Likewise.
6230 (noce_try_store_flag_mask): Likewise.
6231 (noce_try_cmove): Likewise.
6232 (noce_try_cmove_arith): Likewise.
6233 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6234 overwriting it.
6235 (noce_convert_multiple_sets): Move cost model to here, from...
6236 (bb_ok_for_noce_convert_multiple_sets) ...here.
6237 (noce_process_if_block): Update calls for above changes.
6238 (noce_find_if_block): Record new noce_if_info parameters.
6239
6240 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
6241
6242 * target.def (max_noce_ifcvt_seq_cost): New.
6243 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6244 * doc/tm.texi: Regenerate.
6245 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6246 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6247 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6248 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6249 * doc/invoke.texi: Document new params.
6250
6251 2016-07-21 Richard Biener <rguenther@suse.de>
6252
6253 PR tree-optimization/71947
6254 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6255 ranges have useful limit_vr information.
6256
6257 2016-07-21 Richard Biener <rguenther@suse.de>
6258
6259 * function-tests.c (build_trivial_generic_function): Set
6260 BLOCK_SUPERCONTEXT of DECL_INITIAL.
6261 * omp-low.c (create_omp_child_function): Likewise.
6262 (grid_expand_target_grid_body): Likewise.
6263 * cgraphunit.c (init_lowered_empty_function): Likewise.
6264 (cgraph_node::expand_thunk): Likewise.
6265 * tree-parloops.c (create_loop_fn): Likewise.
6266 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6267
6268 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6269
6270 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6271 in comment.
6272
6273 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
6274
6275 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6276 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6277 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6278 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6279 values for insn attribute.
6280 * config/avr/avr.c (avr_out_insert_notbit): New function.
6281 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6282 ADJUST_LEN_INSV_NOTBIT_0/_7.
6283 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6284
6285 2016-07-21 Bin Cheng <bin.cheng@arm.com>
6286
6287 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
6288 (chrec_convert_1, chrec_convert): Ditto.
6289 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6290 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6291 * tree-vrp.c (adjust_range_with_scev): Ditto.
6292 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6293 (scev_var_range_cant_overflow): New function.
6294 (scev_probably_wraps_p): New parameter. Call above function.
6295 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6296
6297 2016-07-21 Bin Cheng <bin.cheng@arm.com>
6298
6299 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6300 by removing computation of may_be_zero.
6301
6302 2016-07-21 Jakub Jelinek <jakub@redhat.com>
6303
6304 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6305
6306 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
6307
6308 Improving concepts performance and diagnostics.
6309 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6310 for constraint satisfaction and subsumption.
6311 * timevar.h (auto_timevar): New constructor that matches the push/pop
6312 pattern of usage in pt.c.
6313
6314 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
6315
6316 * hwint.h (HOST_WIDE_INT_0): New define.
6317 (HOST_WIDE_INT_0U): Ditto.
6318 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6319 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6320 * simplify-rtx.c: Ditto.
6321 * tree-object-size.c: Ditto.
6322
6323 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6324
6325 * config/s390/s390.c (s390_encode_section_info): Remove mode size
6326 check.
6327
6328 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
6329
6330 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6331 * combine.c: Use HOST_WIDE_INT_M1U instead of
6332 ~(unsigned HOST_WIDE_INT) 0.
6333 * double-int.h: Ditto.
6334 * dse.c: Ditto.
6335 * dwarf2asm.c:Ditto.
6336 * expmed.c: Ditto.
6337 * genmodes.c: Ditto.
6338 * match.pd: Ditto.
6339 * read-rtl.c: Ditto.
6340 * tree-ssa-loop-ivopts.c: Ditto.
6341 * tree-ssa-loop-prefetch.c: Ditto.
6342 * tree-vect-generic.c: Ditto.
6343 * tree-vect-patterns.c: Ditto.
6344 * tree.c: Ditto.
6345
6346 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
6347
6348 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6349 constant addresses outside [0,0xc0] into a register.
6350 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
6351 cases where the base address register is unused after.
6352 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6353 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6354 (avr_out_store_psi_reg_disp_tiny): Same.
6355
6356 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
6357
6358 Implement attribute progmem on reduced Tiny cores by adding
6359 flash offset 0x4000 to respective symbols.
6360
6361 PR target/71948
6362 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6363 documentation how it works on reduced Tiny cores.
6364 (AVR Named Address Spaces): No support for reduced Tiny.
6365 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6366 (avr_address_tiny_pm_p): New static function.
6367 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6368 if the address is in progmem.
6369 (avr_assemble_integer): Same.
6370 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6371 for symbol_ref in progmem.
6372 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6373 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6374 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6375
6376 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
6377
6378 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
6379 * configure: Regenerate.
6380 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6381 (USE_THIN_ARCHIVES): New variable.
6382 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6383 this archive as a thin archive.
6384
6385 2016-07-20 David Malcolm <dmalcolm@redhat.com>
6386
6387 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6388 same location as last time, don't skip if we have fix-it hints.
6389 Clarify the skipping logic by converting it from one "if" clause
6390 to repeated "if" clauses.
6391 * spellcheck-tree.c: Include "cpplib.h".
6392 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6393 (best_macro_match::best_macro_match): New constructor.
6394 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6395 Move here from c/c-decl.c.
6396 (class best_macro_match): Move here from c/c-decl.c, converting
6397 from a typedef to a subclass, gaining a ctor.
6398
6399 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
6400
6401 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6402 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6403 define...
6404 (avr_addr_space_diagnose_usage): ...and implementation.
6405 (avr_addr_space_supported_p): New function.
6406 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6407 report bad address space usage if that space is supported.
6408 (avr_insert_attributes): Same. No more complain about unsupported
6409 address spaces.
6410 * config/avr/avr-c.c (tm_p.h): Include it.
6411 (avr_cpu_cpp_builtins): Only define addr-space related built-in
6412 macro if avr_addr_space_supported_p.
6413
6414 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
6415
6416 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6417 flag_toplevel_reorder.
6418
6419 2016-07-20 David Malcolm <dmalcolm@redhat.com>
6420
6421 * gcc-rich-location.c
6422 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6423 a const char *.
6424 * gcc-rich-location.h
6425 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6426
6427 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
6428
6429 * target.def (addr_space): Add new diagnose_usage to hook vector.
6430 * targhooks.c (default_addr_space_diagnose_usage): Add default
6431 implementation and...
6432 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6433 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6434 is some address space, call targetm.addr_space.diagnose_usage.
6435 * doc/tm.texi.in (Named Address Spaces): Add anchor for
6436 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6437 * doc/tm.texi: Regenerate.
6438
6439 2016-07-20 Martin Liska <mliska@suse.cz>
6440
6441 PR middle-end/71898
6442 * graphite-isl-ast-to-gimple.c (later_of_the_two):
6443 Properly handly PHI stmts.
6444
6445 2016-07-20 Bin Cheng <bin.cheng@arm.com>
6446
6447 PR tree-optimization/71503
6448 PR tree-optimization/71683
6449 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6450 and break.
6451
6452 2016-07-20 Martin Liska <mliska@suse.cz>
6453
6454 * doc/invoke.texi (-fipa-ra): Document when the option is
6455 disabled. Fix a typo.
6456
6457 2016-07-20 Martin Liska <mliska@suse.cz>
6458
6459 * Makefile.in: Include fibonacci_heap.c
6460 * fibonacci_heap.c: New file.
6461 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6462 (fibonacci_heap::union_with): Fix deletion of the second heap.
6463 * selftest-run-tests.c (selftest::run_tests): Incorporate
6464 fibonacci heap tests.
6465 * selftest.h: Declare fibonacci_heap_c_tests.
6466
6467 2016-07-20 Martin Liska <mliska@suse.cz>
6468
6469 * selftest-run-tests.c (selftest::run_tests): New function.
6470 * selftest.h (sreal_c_tests): Declare.
6471 * sreal.c (sreal_verify_basics): New function.
6472 (verify_aritmetics): Likewise.
6473 (sreal_verify_arithmetics): Likewise.
6474 (verify_shifting): Likewise.
6475 (sreal_verify_shifting): Likewise.
6476 (void sreal_c_tests): Likewise.
6477
6478 2016-07-19 Jakub Jelinek <jakub@redhat.com>
6479
6480 PR rtl-optimization/71916
6481 * cfgrtl.c (contains_no_active_insn_p): Return false also for
6482 bb which have a single succ fake edge.
6483
6484 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
6485
6486 PR debug/71855
6487 * dwarf2out.c (gen_subprogram_die): Only call
6488 gen_unspecified_parameters_die while dumping early dwarf.
6489
6490 2016-07-19 Jakub Jelinek <jakub@redhat.com>
6491
6492 PR middle-end/71874
6493 * gimple-fold.c (fold_builtin_memory_op): Use
6494 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6495
6496 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
6497
6498 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6499 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6500 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6501 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6502 * combine.c: Ditto.
6503 * cse.c: Ditto.
6504 * dojump.c: Ditto.
6505 * double-int.c: Ditto.
6506 * dse.c: Ditto.
6507 * dwarf2out.c: Ditto.
6508 * expmed.c: Ditto.
6509 * expr.c: Ditto.
6510 * fold-const.c: Ditto.
6511 * function.c: Ditto.
6512 * fwprop.c: Ditto.
6513 * genmodes.c: Ditto.
6514 * hwint.c: Ditto.
6515 * hwint.h: Ditto.
6516 * ifcvt.c: Ditto.
6517 * loop-doloop.c: Ditto.
6518 * loop-invariant.c: Ditto.
6519 * loop-iv.c: Ditto.
6520 * match.pd: Ditto.
6521 * optabs.c: Ditto.
6522 * real.c: Ditto.
6523 * reload.c: Ditto.
6524 * rtlanal.c: Ditto.
6525 * simplify-rtx.c: Ditto.
6526 * stor-layout.c: Ditto.
6527 * toplev.c: Ditto.
6528 * tree-ssa-loop-ivopts.c: Ditto.
6529 * tree-vect-generic.c: Ditto.
6530 * tree-vect-patterns.c: Ditto.
6531 * tree.c: Ditto.
6532 * tree.h: Ditto.
6533 * ubsan.c: Ditto.
6534 * varasm.c: Ditto.
6535 * wide-int-print.cc: Ditto.
6536 * wide-int.cc: Ditto.
6537 * wide-int.h: Ditto.
6538
6539 2016-07-19 David Malcolm <dmalcolm@redhat.com>
6540
6541 * selftest.c (selftest::assert_streq): Handle NULL values of
6542 val_actual and val_expected.
6543
6544 2016-07-19 Martin Jambor <mjambor@suse.cz>
6545
6546 PR fortran/71688
6547 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6548 rather than cgraph_create_node to get a call graph node.
6549
6550 2016-07-19 Richard Biener <rguenther@suse.de>
6551
6552 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6553 handle all tcc_constant bases and valueize SSA names.
6554 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6555 tcc_constant bases.
6556
6557 2016-07-19 David Malcolm <dmalcolm@redhat.com>
6558
6559 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6560 the flags of the exit block and bb2, not just the entry block.
6561
6562 2016-07-19 Richard Biener <rguenther@suse.de>
6563
6564 PR tree-optimization/71901
6565 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6566 align member, group stuff with the bitfield.
6567 (vn_ref_op_align_unit): New inline.
6568 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6569 record element alignment and operand 3 unchanged.
6570 (ao_ref_init_from_vn_reference): Adjust.
6571 (valueize_refs_1): Likewise.
6572 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6573
6574 2016-07-19 Richard Biener <rguenther@suse.de>
6575
6576 PR tree-optimization/71908
6577 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6578 symbolic constants in a more reliable way.
6579
6580 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
6581
6582 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
6583 comment.
6584 (vect_update_inits_of_drs): Likewise.
6585 (vect_create_cond_for_alias_checks): Likewise.
6586 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
6587
6588 2016-07-19 Richard Biener <rguenther@suse.de>
6589
6590 PR lto/71907
6591 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
6592 with an abstract origin that is not an inlined function outer
6593 scope add a self-reference as abstract origin.
6594 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
6595
6596 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6597
6598 PR target/71493
6599 * config/rs6000/rs6000.c (rs6000_function_value): Fix
6600 unintentional System V.4 structure return breakage for structures
6601 with a single floating point element.
6602
6603 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6604
6605 PR tree-optimization/71734
6606 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
6607 contains REF, use it to check safelen, assume that safelen value
6608 must be greater 1, fix style.
6609 (ref_indep_loop_p_2): Add REF_LOOP argument.
6610 (ref_indep_loop_p): Pass LOOP as additional argument to
6611 ref_indep_loop_p_2.
6612
6613 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
6614
6615 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
6616 allocation in the prologue.
6617 * explow.c (get_dynamic_stack_base): New function to return an address
6618 expression for the dynamic stack base.
6619 (get_dynamic_stack_size): New function to do the required dynamic stack
6620 space size calculations.
6621 (allocate_dynamic_stack_space): Use new functions.
6622 (align_dynamic_address): Move some code from
6623 allocate_dynamic_stack_space to new function.
6624 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
6625
6626 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6627
6628 * config/s390/s390.c (s390_encode_section_info): Always set
6629 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
6630 found.
6631
6632 2016-07-18 Richard Biener <rguenther@suse.de>
6633
6634 PR tree-optimization/71893
6635 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
6636 for sizetype cast added by array_ref_element_size.
6637 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6638
6639 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
6640
6641 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
6642 register parameters. Remove code to initialize argument pointer
6643 on TARGET_64BIT. Optimize call to _mcount when it can be reached
6644 using a pc-relative branch. Cleanup conditional code.
6645 * config/pa/pa.md (call_mcount): New expander.
6646 (call_mcount_nonpic): New insn.
6647 (call_mcount_pic): New insn and split.
6648 (call_mcount_pic_post_reload): New insn.
6649 (call_mcount_64bit): New insn and split.
6650 (call_mcount_64bit_post_reload): New insn.
6651
6652 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
6653
6654 * config/avr/predicates.md (const_m255_to_m1_operand): New.
6655 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
6656 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
6657 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
6658 (*usum_widenqihi3, *udiff_widenqihi3)
6659 (*addhi3_zero_extend.const): New combiner insns.
6660 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
6661 just 1 bit is affected.
6662 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
6663 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
6664
6665 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
6666
6667 * omp-low.c (lower_omp_target): Mark data clauses with
6668 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
6669 zero-length subarrays.
6670
6671 2016-07-15 Richard Biener <rguenther@suse.de>
6672
6673 PR tree-optimization/71881
6674 * tree-loop-distribution.c (destroy_loop): Remove blocks in
6675 reverse DOM order to make debug temp generation happy.
6676
6677 2016-07-15 Richard Biener <rguenther@suse.de>
6678
6679 PR tree-optimization/71887
6680 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
6681 verify it is not zero for division / modulo handling.
6682 (value_replacement): Adjust.
6683
6684 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
6685 Julian Brown <julian@codesourcery.com>
6686
6687 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
6688 * config/aarch64/aarch64-cost-tables.h
6689 (vulcan_extra_costs): New variable.
6690 * config/aarch64/aarch64.c
6691 (vulcan_addrcost_table): Likewise.
6692 (vulcan_regmove_cost): Likewise.
6693 (vulcan_vector_cost): Likewise.
6694 (vulcan_branch_cost): Likewise.
6695 (vulcan_tunings): Likewise.
6696
6697 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
6698
6699 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
6700 (output_in_order): Loop over undefined variables too. Output them
6701 via assemble_undefined_decl. Skip variables that correspond to hard
6702 registers or have value-exprs.
6703 * varpool.c (symbol_table::output_variables): Handle undefined
6704 variables together with defined ones.
6705
6706 2016-07-15 Richard Biener <rguenther@suse.de>
6707
6708 * tree-ssa-pre.c (get_representative_for): Make sure to return
6709 the value number of SSA names.
6710 (phi_translate_1): get_representative_for cannot return NULL.
6711 (do_pre_regular_insertion): Remove redundant call to
6712 fully_constant_expression.
6713 (do_pre_partial_partial_insertion): Likewise.
6714
6715 2016-07-15 Bin Cheng <bin.cheng@arm.com>
6716
6717 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
6718 (derive_simple_iv_with_niters): New function.
6719 (simple_iv): Rewrite using simple_iv_with_niters.
6720 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
6721 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6722 function.
6723 (number_of_iterations_exit): Rewrite using above function.
6724 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6725 Decl.
6726
6727 2016-07-15 Richard Biener <rguenther@suse.de>
6728
6729 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
6730 vec_construct cost.
6731
6732 2016-07-14 Jakub Jelinek <jakub@redhat.com>
6733
6734 PR tree-optimization/71872
6735 * tree-data-ref.c (get_references_in_stmt): Ignore references
6736 with is_gimple_constant get_base_address.
6737
6738 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
6739
6740 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
6741 (TARGET_HAVE_LDACQD): New macro.
6742 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
6743 than TARGET_HAVE_LDACQ.
6744 (arm_load_acquire_exclusivedi): Likewise.
6745 (arm_store_release_exclusivedi): Likewise.
6746
6747 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
6748
6749 PR rtl-optimization/71878
6750 * lra-constraints.c (match_reload): Pass information about other
6751 output operands. Create new unique register value if matching input
6752 operand shares same register value as output operand being considered.
6753 (curr_insn_transform): Record output operands already processed.
6754
6755 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6756
6757 PR target/65951
6758 PR tree-optimization/70923
6759 * tree-vect-patterns.c: Include mult-synthesis.h.
6760 (target_supports_mult_synth_alg): New function.
6761 (synth_lshift_by_additions): Likewise.
6762 (apply_binop_and_append_stmt): Likewise.
6763 (vect_synth_mult_by_constant): Likewise.
6764 (target_has_vecop_for_code): Likewise.
6765 (vect_recog_mult_pattern): Use above functions to synthesize vector
6766 multiplication by integer constants.
6767
6768 2016-07-14 Alan Modra <amodra@gmail.com>
6769
6770 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
6771 gpr alternatives. Correct '*' placement on Y,r alternative.
6772 Add '*' on operand 1 of r,r alternative.
6773
6774 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6775
6776 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
6777 * expmed.h: ... Here.
6778
6779 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
6780
6781 * gimple.h (stmt_can_terminate_bb_p): New function.
6782 * tree-cfg.c (need_fake_edge_p): Rename to ...
6783 (stmt_can_terminate_bb_p): ... this; return true if stmt can
6784 throw external; handle const and pure calls.
6785 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
6786
6787 2016-07-14 Richard Biener <rguenther@suse.de>
6788
6789 PR tree-optimization/71866
6790 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
6791 (do_hoist_insertion): Avoid endless recursion when we
6792 didn't insert anything because we managed to simplify
6793 things down to a constant or SSA name.
6794 (fully_constant_expression): Re-write in terms of ...
6795 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
6796 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
6797 vn_nary_build_or_lookup_1.
6798 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
6799 (vn_nary_build_or_lookup): ... this which now wraps it.
6800
6801 2016-07-14 Alan Modra <amodra@gmail.com>
6802
6803 PR target/71733
6804 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
6805 with p9_vector override before power9-dform override.
6806
6807 2016-07-13 Andi Kleen <ak@linux.intel.com>
6808
6809 * value-prof.c (gimple_value_profile_transformations): Don't run
6810 when auto_profile is on.
6811
6812 2016-07-13 Andi Kleen <ak@linux.intel.com>
6813
6814 * auto-profile.c (update_inlined_ind_target,
6815 afdo_indirect_call): Print information to dump file.
6816
6817 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6818
6819 * genrecog.c (special_predicate_operand_p): New function.
6820 (predicate_name): Move function.
6821 (validate_pattern): Don't warn about missing mode for all
6822 define_special_predicate predicates.
6823
6824 2016-07-13 Bin Cheng <bin.cheng@arm.com>
6825
6826 * tree-vect-data-refs.c (vect_no_alias_p): New function.
6827 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
6828 resolve alias checks which are known at compilation time.
6829 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
6830 alias checks are resolved. Move dump info for too many runtime
6831 alias checks to here...
6832 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
6833
6834 2016-07-13 Richard Biener <rguenther@suse.de>
6835
6836 PR tree-optimization/24574
6837 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
6838 position and add shift, rotate, divison and modulo support
6839 for left zero.
6840 (value_replacement): Pass in argument position to absorbing_element_p.
6841
6842 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
6843
6844 PR ipa/71633
6845 * ipa-inline-transform.c (inline_call): Support
6846 instrumented thunks.
6847
6848 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6849
6850 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
6851 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
6852 divide feature.
6853 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
6854 Baseline. Make initial alternative TARGET_32BIT only.
6855 (udivsi3): Likewise.
6856 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
6857 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
6858 target.
6859
6860 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6861
6862 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
6863 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
6864 availability with TARGET_HAVE_MOVT.
6865 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
6866 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
6867 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
6868 UINTVAL.
6869 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
6870 extra instruction if MOVW is available. Use a cost variable
6871 incremented by COSTS_N_INSNS (1) when the condition match rather than
6872 returning an arithmetic expression based on COSTS_N_INSNS. Make
6873 constant with bottom half word zero cost 2 instruction if MOVW is
6874 available.
6875 * config/arm/arm.md (define_attr "arch"): Add v8mb.
6876 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
6877 target is ARMv8-M Baseline.
6878 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
6879 (arm_movtas_ze): Likewise.
6880 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
6881 alternative for constants satisfying j constraint.
6882 (thumb1_movsi_insn): Likewise.
6883 (movsi splitter for K alternative): Tighten condition to not trigger
6884 if movt is available and j constraint is satisfied.
6885 (Pe immediate splitter): Likewise.
6886 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
6887 constant fitting in an halfword to use MOVW.
6888 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
6889 effective target.
6890
6891 2016-07-13 Richard Biener <rguenther@suse.de>
6892
6893 PR middle-end/71104
6894 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
6895 gimplifying the LHS. Make sure to gimplify a returning twice
6896 call LHS without using SSA names.
6897
6898 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6899
6900 * tree-data-ref.c (find_data_references_in_stmt): Remove
6901 unnecessary call to vec::release.
6902 (graphite_find_data_references_in_stmt): Likewise.
6903 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
6904 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6905
6906 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6907
6908 * cfgexpand.c (expand_used_vars): Make the type of a local
6909 variable auto_vec.
6910 * genmatch.c (lower_for): Likewise.
6911 * haifa-sched.c (haifa_sched_init): Likewise.
6912 (add_to_speculative_block): Likewise.
6913 (create_check_block_twin): Likewise.
6914 * predict.c (handle_missing_profiles): Likewise.
6915 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
6916 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
6917 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6918 Likewise.
6919 (maybe_lower_iteration_bound): Likewise.
6920 * tree-ssa-sccvn.c (DFS): Likewise.
6921 * tree-stdarg.c (reachable_at_most_once): Likewise.
6922 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
6923 (vectorizable_store): Likewise.
6924
6925 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6926
6927 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
6928 (sccvn_dom_walker): make cond_stack an auto_vec.
6929
6930 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6931
6932 * ree.c (struct ext_state): Make type of members auto_vec.
6933 (find_and_remove_re): Adjust.
6934
6935 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6936
6937 * cfgexpand.c (struct stack_vars_data): Make type of fields
6938 auto_vec.
6939 (expand_used_vars): Adjust.
6940
6941 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6942
6943 * ipa.c (record_cdtor_fn): Adjust.
6944 (build_cdtor_fns): Likewise.
6945 (ipa_cdtor_merge): Make static_ctors and static_dtors local
6946 variables.
6947
6948 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6949
6950 * genextract.c (struct accum_extract): Add constructor and make
6951 members auto_vec.
6952 (gen_insn): Adjust.
6953
6954 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6955
6956 * tree.c (struct free_lang_data_d): Add constructor and change
6957 types of members to ones that automatically manage resources.
6958 (fld_worklist_push): Adjust.
6959 (find_decls_types): Likewise.
6960 (find_decls_types_in_eh_region): Likewise.
6961 (free_lang_data_in_cgraph): Stop manually creating and
6962 destroying members of free_lang_data_d.
6963
6964 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
6965
6966 PR rtl-optimization/68961
6967 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
6968 peephole variant. Use sse_reg_operand predicates.
6969
6970 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
6971
6972 * config/i386/predicates.md (x86_64_immediate_operand)
6973 <case CONST_INT>: Remove unneeded truncation to DImode.
6974 <case CONST>: Ditto.
6975 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
6976
6977 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6978
6979 PR target/71805
6980 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
6981 The xxperm and xxpermr instructions require that the 2nd input
6982 operand overlap with the output operand, and not the 1st.
6983 (altivec_vperm_v8hiv16qi): Likewise.
6984 (altivec_vperm_<mode>_uns_internal): Likewise.
6985 (altivec_vpermr_<mode>_internal): Likewise.
6986 (vperm_v8hiv4si): Likewise.
6987 (vperm_v16qiv8hi): Likewise.
6988
6989 2016-07-12 Nathan Sidwell <nathan@acm.org>
6990
6991 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
6992 when -mno-pic-data-is-text-relative is in effect, by default.
6993 * doc/invoke.texi (mpic-data-is-text-relative): Document new
6994 behavior and clarify.
6995
6996 2016-07-12 Martin Liska <mliska@suse.cz>
6997
6998 * params.def: Add avg-loop niter.
6999 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
7000 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
7001 * doc/invoke.texi: Document the new parameter.
7002
7003 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7004
7005 PR middle-end/71700
7006 * expr.c (store_constructor): Mask sign-extended bits when widening
7007 sub-word constructor element at the start of a word.
7008
7009 2016-07-12 Martin Liska <mliska@suse.cz>
7010
7011 * Makefile.in: Append rule for params-options.h.
7012 * params-options.h: New file.
7013
7014 2016-07-12 Martin Liska <mliska@suse.cz>
7015
7016 * ira-build.c (mark_loops_for_removal): Properly iterate
7017 loops.
7018
7019 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
7020 Richard Biener <rguenther@suse.de>
7021
7022 PR tree-optimization/23286
7023 PR tree-optimization/70159
7024 * doc/invoke.texi: Document -fcode-hoisting.
7025 * common.opt (fcode-hoisting): New flag.
7026 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
7027 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
7028 (do_regular_insertion): Rename to ...
7029 (do_pre_regular_insertion): ... this and amend general comments
7030 on insertion strathegy.
7031 (do_partial_partial_insertion): Rename to ...
7032 (do_pre_partial_partial_insertion): ... this.
7033 (do_hoist_insertion): New function.
7034 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
7035 and call do_hoist_insertion properly.
7036 (insert): Adjust.
7037 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
7038 (pass_pre::execute): Register hoist_insert stats.
7039
7040 2016-07-12 Jakub Jelinek <jakub@redhat.com>
7041
7042 PR middle-end/71716
7043 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
7044 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
7045 is different from mode's bitsize. Small cleanup.
7046
7047 2016-07-12 Richard Biener <rguenther@suse.de>
7048
7049 PR rtl-optimization/68961
7050 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7051 to simplify to a non-constant.
7052
7053 2016-07-11 Jakub Jelinek <jakub@redhat.com>
7054
7055 PR middle-end/71758
7056 * omp-low.c (expand_omp_target): Gimplify device.
7057
7058 PR tree-optimization/71823
7059 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7060 to get vec_oprnds2 from op2.
7061
7062 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
7063
7064 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7065 Hoist common subexpressions.
7066 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7067
7068 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
7069
7070 PR target/71800
7071 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7072 prevent generation of 'stxsiwx' on pre Power8 hardware.
7073
7074 2016-07-11 David Malcolm <dmalcolm@redhat.com>
7075
7076 * input.c: Include cpplib.h.
7077 (selftest::temp_source_file): New class.
7078 (selftest::temp_source_file::temp_source_file): New ctor.
7079 (selftest::temp_source_file::~temp_source_file): New dtor.
7080 (selftest::should_have_column_data_p): New function.
7081 (selftest::test_should_have_column_data_p): New function.
7082 (selftest::temp_line_table): New class.
7083 (selftest::temp_line_table::temp_line_table): New ctor.
7084 (selftest::temp_line_table::~temp_line_table): New dtor.
7085 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7086 it to create a temp_line_table.
7087 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7088 locations that are known to have column data.
7089 (selftest::line_table_case): New struct.
7090 (selftest::test_reading_source_line): Move tempfile handling
7091 to class temp_source_file.
7092 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7093 (selftest::assert_token_loc_eq): New function.
7094 (ASSERT_TOKEN_LOC_EQ): New macro.
7095 (selftest::test_lexer): New function.
7096 (selftest::boundary_locations): New array.
7097 (selftest::input_c_tests): Call test_should_have_column_data_p.
7098 Loop over a test matrix of interesting values of location and
7099 default_range_bits, calling test_lexer on each case in the matrix.
7100 Move call to test_accessing_ordinary_linemaps into the matrix.
7101 * selftest.h (ASSERT_EQ): Reimplement in terms of...
7102 (ASSERT_EQ_AT): New macro.
7103
7104 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
7105
7106 PR target/71801
7107 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7108 Don't convert TImode in debug insn.
7109
7110 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7111
7112 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7113 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7114 (tree_type_common::lang_flag_7): New.
7115 (tree_type_common::spare): Reduce size.
7116 * tree.h (TYPE_ALIGN_OK): Remove.
7117 (TYPE_LANG_FLAG_7): New.
7118 (get_inner_reference): Adjust header.
7119 * print-tree.c (print_node): Adjust.
7120 * expr.c (get_inner_reference): Remove parameter keep_aligning.
7121 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7122 calls to get_inner_reference.
7123 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
7124 handling of TYPE_ALIGN_OK.
7125 * builtins.c (get_object_alignment_2): Adjust call to
7126 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
7127 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7128 TYPE_ALIGN_OK.
7129 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7130 * cfgexpand.c (expand_debug_expr): Likewise.
7131 * dbxout.c (dbxout_expand_expr): Likewise.
7132 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7133 loc_list_from_tree, fortran_common): Likewise.
7134 * fold-const.c (optimize_bit_field_compare,
7135 decode_field_reference, fold_unary_loc, fold_comparison,
7136 split_address_to_core_and_offset): Likewise.
7137 * gimple-laddress.c (execute): Likewise.
7138 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7139 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7140 * hsa-gen.c (gen_hsa_addr): Likewise.
7141 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7142 * tsan.c (instrument_expr): Likewise.
7143 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7144 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7145 * tree-affine.c (tree_to_aff_combination,
7146 get_inner_reference_aff): Adjust calls to get_inner_reference.
7147 * tree-data-ref.c (split_constant_offset_1,
7148 dr_analyze_innermost): Likewise.
7149 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7150 * tree-sra.c (ipa_sra_check_caller): Likewise.
7151 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7152 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7153 bswap_replace): Likewise.
7154 * tree-vect-data-refs.c (vect_check_gather,
7155 vect_analyze_data_refs): Likewise.
7156 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7157 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7158 TYPE_ALIGN_OK.
7159
7160 2016-07-11 David Malcolm <dmalcolm@redhat.com>
7161
7162 * Makefile.in (selftest-valgrind): New phony target.
7163 * function-tests.c (selftest::build_cfg): Delete pass instances
7164 created by the test.
7165 (selftest::convert_to_ssa): Likewise.
7166 (selftest::test_expansion_to_rtl): Likewise.
7167 * tree-cfg.c (selftest::test_linear_chain): Release dominator
7168 vectors.
7169 (selftest::test_diamond): Likewise.
7170
7171 2016-07-11 Richard Biener <rguenther@suse.de>
7172
7173 PR tree-optimization/71816
7174 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7175 than replacing all of its operands.
7176
7177 2016-07-11 Alan Modra <amodra@gmail.com>
7178
7179 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7180 (ctr<mode>): Add unspec.
7181 (ctr<mode>_internal*): Likewise.
7182
7183 2016-07-08 James Bowman <james.bowman@ftdichip.com>
7184
7185 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7186 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7187
7188 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
7189
7190 PR rtl-optimization/71621
7191 * lra-constraints.c (process_alt_operands): Check combination of
7192 reg class and mode.
7193
7194 2016-07-08 Jason Merrill <jason@redhat.com>
7195 Richard Biener <rguenther@suse.de>
7196
7197 P0145: Refining Expression Order for C++.
7198 * gimplify.c (initial_rhs_predicate_for): New.
7199 (gimplfy_modify_expr): Gimplify RHS before LHS.
7200
7201 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7202
7203 PR target/71297
7204 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7205 Allow standard error handling to take over when a wrong number
7206 of arguments is presented to __builtin_vec_ld () or
7207 __builtin_vec_st ().
7208
7209 2016-07-08 Jiong Wang <jiong.wang@arm.com>
7210
7211 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7212 variants.
7213 (smin): Likewise.
7214 (fmax): New entry.
7215 (fmin): Likewise.
7216 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7217 __builtin_aarch64_fmaxv2sf.
7218 (vmaxnmq_f32): Likewise.
7219 (vmaxnmq_f64): Likewise.
7220 (vminnm_f32): Likewise.
7221 (vminnmq_f32): Likewise.
7222 (vminnmq_f64): Likewise.
7223
7224 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7225
7226 PR target/71806
7227 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7228 enable -mfloat128-hardware by default.
7229 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7230 that IEEE 128-bit hardware support needs.
7231 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7232 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7233 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7234 floating point requires.
7235 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7236 -mfloat128 and -mfloat128-hardware changes.
7237
7238 2016-07-08 Alan Hayward <alan.hayward@arm.com>
7239
7240 PR tree-optimization/71667
7241 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7242
7243 2016-07-08 Martin Liska <mliska@suse.cz>
7244
7245 PR middle-end/71606
7246 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7247 folding produces SAVE_EXPRs, thus return false for the type.
7248
7249 2016-07-07 Martin Liska <mliska@suse.cz>
7250
7251 * file-find.c (remove_prefix): New function.
7252 * file-find.h (remove_prefix): Declare the function.
7253 * gcc-ar.c (main): Skip a folder of the wrapper if
7254 a wrapped binary would point to the same file.
7255
7256 2016-07-07 Jan Hubicka <jh@suse.cz>
7257
7258 * tree-scalar-evolution.c (iv_can_overflow_p): export.
7259 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7260 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7261
7262 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
7263
7264 PR ipa/71624
7265 * ipa-inline-analysis.c (compute_inline_parameters): Set
7266 local.can_change_signature to false for intrumentation
7267 thunk callees.
7268
7269 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
7270
7271 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7272 with TARGET_HAVE_MOVT.
7273 (TARGET_HAVE_MOVT): Define.
7274 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7275 availability with TARGET_HAVE_MOVT.
7276 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7277 availability.
7278 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7279 TARGET_THUMB2.
7280 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7281 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7282 * config/arm/constraints.md (define_constraint "j"): Use
7283 TARGET_HAVE_MOVT to check MOVT availability.
7284
7285 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
7286
7287 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7288
7289 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
7290
7291 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7292 (armv8-m.main): Likewise.
7293 (armv8-m.main+dsp): Likewise.
7294 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7295 (FL_FOR_ARCH8M_MAIN): Likewise.
7296 * config/arm/arm-tables.opt: Regenerate.
7297 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7298 armv8-m.main+dsp to BE8_LINK_SPEC.
7299 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7300 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7301 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7302 Baseline and Mainline.
7303 (arm_option_override_internal): Also disable arm_restrict_it when
7304 !arm_arch_notm. Update comment for -munaligned-access to also cover
7305 ARMv8-M Baseline.
7306 (arm_file_start): Increase buffer size for printing architecture name.
7307 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7308 and armv8-m.main+dsp.
7309 (mno-unaligned-access): Clarify that this is disabled by default for
7310 ARMv8-M Baseline architectures as well.
7311
7312 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
7313
7314 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7315 decide whether to prevent some libgcc routines being included for some
7316 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7317 link between this condition and the one in
7318 libgcc/config/arm/lib1func.S.
7319
7320 2016-07-07 Richard Biener <rguenther@suse.de>
7321
7322 * tree-ssa-pre.c: Include alias.h.
7323 (compute_avail): If we have multiple VN_REFERENCEs with the
7324 same hashtable entry adjust that to make it a valid replacement
7325 for all of them with respect to alignment and aliasing
7326 when doing insertion.
7327 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7328 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7329
7330 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
7331
7332 PR target/70098
7333 PR target/71763
7334 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7335 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7336 constraint.
7337
7338 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7339
7340 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7341 (adjust_mems): Adjust.
7342 (adjust_insn): Likewise.
7343 (prepare_call_arguments): Likewise.
7344
7345 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7346
7347 * gcse.c (struct ls_expr): Make stores field a vector.
7348 (ldst_entry): Adjust.
7349 (free_ldst_entry): Likewise.
7350 (print_ldst_list): Likewise.
7351 (compute_ld_motion_mems): Likewise.
7352 (update_ld_motion_stores): Likewise.
7353
7354 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7355
7356 * gcse.c (struct ls_expr): Remove loads field.
7357 (ldst_entry): Adjust.
7358 (free_ldst_entry): Likewise.
7359 (print_ldst_list): Likewise.
7360 (compute_ld_motion_mems): Likewise.
7361
7362 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7363
7364 * store-motion.c (struct st_expr): Make antic_stores a vector.
7365 (st_expr_entry): Adjust.
7366 (free_st_expr_entry): Likewise.
7367 (print_store_motion_mems): Likewise.
7368 (find_moveable_store): Likewise.
7369 (compute_store_table): Likewise.
7370 (remove_reachable_equiv_notes): Likewise.
7371 (replace_store_insn): Likewise.
7372 (build_store_vectors): Likewise.
7373
7374 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7375
7376 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7377 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7378
7379 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
7380
7381 PR tree-optimization/71518
7382 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7383 misalign also for outer loops with negative step.
7384
7385 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
7386
7387 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7388 (cortex_a53_shift): Add mov_shift.
7389 (cortex_a53_shift_reg): Add new reservation for register shifts.
7390 (cortex_a53_alu): Remove bfm.
7391 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7392 (cortex_a53_alu_extr): Add new reservation for EXTR.
7393 (bypasses): Improve bypass modelling.
7394
7395 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7396
7397 PR target/50739
7398 * config/avr/avr.c (avr_asm_select_section): Strip off
7399 SECTION_DECLARED from flags when calling get_section.
7400
7401 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7402
7403 * tree-vectorizer.h (vect_memory_access_type): Add
7404 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7405 * tree-vect-stmts.c (compare_step_with_zero): New function.
7406 (perm_mask_for_reverse): Move further up file.
7407 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7408 step is negative.
7409 (get_negative_load_store_type): New function.
7410 (get_load_store_type): Call it. Add an ncopies argument.
7411 (vectorizable_mask_load_store): Update call accordingly and
7412 remove tests for negative steps.
7413 (vectorizable_store, vectorizable_load): Likewise. Handle new
7414 memory_access_types.
7415
7416 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7417
7418 * tree-vectorizer.h (vect_memory_access_type): New enum.
7419 (_stmt_vec_info): Add a memory_access_type field.
7420 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7421 (vect_model_store_cost): Take an access type instead of a boolean.
7422 (vect_model_load_cost): Likewise.
7423 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7424 vect_model_store_cost and vect_model_load_cost.
7425 * tree-vect-stmts.c (vec_load_store_type): New enum.
7426 (vect_model_store_cost): Take an access type instead of a
7427 store_lanes_p boolean. Simplify tests.
7428 (vect_model_load_cost): Likewise, but for load_lanes_p.
7429 (get_group_load_store_type, get_load_store_type): New functions.
7430 (vectorizable_store): Use get_load_store_type. Record the access
7431 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7432 (vectorizable_load): Likewise.
7433 (vectorizable_mask_load_store): Likewise. Replace is_store
7434 variable with vls_type.
7435
7436 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7437
7438 * tree-vectorizer.h (vect_grouped_load_supported): Add a
7439 single_element_p parameter.
7440 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7441 Check the PR65518 case here rather than in vectorizable_load.
7442 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7443 * tree-vect-stmts.c (vectorizable_load): Likewise.
7444
7445 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7446
7447 * tree-vectorizer.h (gather_scatter_info): New structure.
7448 (vect_check_gather_scatter): Return a bool rather than a decl.
7449 Replace return-by-pointer arguments with a single
7450 gather_scatter_info *.
7451 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7452 (vect_analyze_data_refs): Update call accordingly.
7453 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7454 (vectorizable_mask_load_store): Likewise. Also record the
7455 offset dt and vectype in the gather_scatter_info.
7456 (vectorizable_store): Likewise.
7457 (vectorizable_load): Likewise.
7458
7459 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7460
7461 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7462 strided groups, use the cost of N scalar accesses instead
7463 of ncopies vector accesses.
7464 (vect_model_load_cost): Likewise.
7465
7466 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7467
7468 * tree-vect-stmts.c (vect_cost_group_size): Delete.
7469 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
7470 variable to indicate when once-per-group costs are being used.
7471 (vect_model_load_cost): Likewise. Fix comment and misindented code.
7472
7473 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7474
7475 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7476 peeling-for-gaps condition.
7477
7478 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7479
7480 * config/s390/s390.c (s390_expand_vec_init): Force initializer
7481 element to register if it doesn't match general_operand.
7482
7483 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7484 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7485
7486 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7487 prototype.
7488 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7489 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7490 (SIGNBIT): New mode iterator.
7491 (Fsignbit): New mode attribute.
7492 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7493 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7494 when direct moves are available.
7495 (signbit<mode>2_dm): New define_insn_and_split).
7496 (signbit<mode>2_dm2): New define_insn.
7497
7498 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7499
7500 PR rtl-optimization/71594
7501 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7502 into subregs of appropriate mode before trying to emit a conditional
7503 move.
7504
7505 2016-07-05 Jan Hubicka <jh@suse.cz>
7506
7507 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7508 (simple_iv): Use it.
7509
7510 2016-07-05 Jan Hubicka <jh@suse.cz>
7511
7512 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7513
7514 2016-07-05 Jiong Wang <jiong.wang@arm.com>
7515
7516 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7517 "offmemok".
7518
7519 2016-07-05 Jan Hubicka <jh@suse.cz>
7520
7521 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7522 IV can overflow.
7523
7524 2016-07-05 Richard Biener <rguenther@suse.de>
7525
7526 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7527 Handle empty else block.
7528 (is_feasible_trace): Likewise.
7529 (split_paths): Likewise.
7530
7531 2016-07-05 Richard Biener <rguenther@suse.de>
7532
7533 * tree-loop-distribution.c (distribute_loop): Fix issue with
7534 the cost model loop.
7535
7536 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
7537
7538 * config/arm/neon-testgen.ml: Delete.
7539 * config/arm/neon.ml: Delete.
7540
7541 2016-07-04 Jakub Jelinek <jakub@redhat.com>
7542
7543 PR c++/71739
7544 * tree.c (attribute_value_equal): Use get_attribute_name instead of
7545 directly using TREE_PURPOSE.
7546
7547 2016-07-04 Jiong Wang <jiong.wang@arm.com>
7548
7549 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7550 * config/aarch64/aarch64_neon.h: Likewise.
7551 * config/aarch64/arm_neon.h: Likewise.
7552 * config/aarch64/atomics.md: Likewise.
7553 * config/aarch64/aarch64-simd-builtins.def: Likewise.
7554 * doc/invoke.texi: Likewise.
7555
7556 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
7557
7558 * config/s390/s390.md: Add "z13" cpu_facility.
7559 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7560 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7561 condition" type instructions.
7562
7563 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
7564 Jeff Law <law@redhat.com>
7565
7566 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7567 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7568
7569 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
7570
7571 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7572 permutation for TARGET_AVX512F.
7573 (ix86_expand_vec_one_operand_perm_avx512): New function.
7574 (expand_vec_perm_1): Invoke introduced function.
7575 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7576 it may be not valid after vectorization.
7577
7578 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7579
7580 PR target/63874
7581 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
7582 typo in comment. Only force to memory if it is a weak
7583 external reference.
7584
7585 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
7586 Jiong Wang <jiong.wang@arm.com>
7587
7588 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
7589 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
7590 (AARCH64_FL_F16): New.
7591 (AARCH64_FL_FOR_ARCH8_2): New.
7592 (AARCH64_ISA_8_2): New.
7593 (AARCH64_ISA_F16): New.
7594 (TARGET_FP_F16INST): New.
7595 (TARGET_SIMD_F16INST): New.
7596 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
7597 ("fp"): Disabling "fp" also disables "fp16".
7598 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
7599 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
7600 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
7601 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
7602
7603 2016-07-04 Jan Beulich <jbeulich@suse.com>
7604
7605 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
7606
7607 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7608
7609 PR target/71720
7610 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
7611 the insns, use an insn form that does not adjust the offset on
7612 little endian systems.
7613
7614 2016-07-01 Jan Beulich <jbeulich@suse.com>
7615
7616 * varasm.c (get_variable_section): Validate initializer in
7617 named .bss-like sections.
7618
7619 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
7620
7621 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
7622 Exchange the order of the second and third operands in the vpermr
7623 instruction tmeplate.
7624
7625 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
7626
7627 PR target/71698
7628 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
7629 Disallow TDmode values.
7630
7631 2016-07-01 Alan Modra <amodra@gmail.com>
7632
7633 PR rtl-optimization/71709
7634 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
7635 being set, not referenced.
7636
7637 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
7638
7639 PR tree-optimization/70729
7640 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
7641 of loop since it can be not valid after transformation.
7642
7643 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7644
7645 * config/arm/arm.c (thumb_reload_in_hi): Delete.
7646 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
7647
7648 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
7649
7650 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
7651 for NULL decl.
7652
7653 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7654
7655 PR target/71677
7656 * config/rs6000/constraints.md (wY constraint): New constraint to
7657 match the requirements for the LXSD and STXSD instructions.
7658 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
7659 predicate to match the requirements for the LXSD and STXSD
7660 instructions.
7661 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
7662 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
7663 to make sure that the bottom 2 bits of offset are 0, the address
7664 form is offsettable, and no updating is done in the address mode.
7665 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
7666 (movdi_internal32): Likewise
7667 (movdi_internal64): Likewise.
7668
7669 2016-06-30 Jakub Jelinek <jakub@redhat.com>
7670
7671 PR tree-optimization/71707
7672 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
7673 strinfo even for ADDR_EXPR ptr.
7674
7675 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
7676
7677 * config/rs6000/altivec.md (darn_32): Change the condition to
7678 TARGET_P9_MISC instead of TARGET_MODULO.
7679 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
7680 condition expression.
7681 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
7682 condition expression.
7683 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
7684 (DFP_TEST): New code iterator.
7685 (dfptstsfi_<code>_mode>): New define_expand.
7686 (*dfp_sgnfcnc_<mode>): New define_insn.
7687 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
7688 definition next to BU_P9_MISC_1 definition and change the MASK
7689 value to RS6000_BTM_P9_MISC.
7690 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
7691 (BU_P9_64BIT_MISC_0): Likewise.
7692 (BU_P9_DFP_MISC_0): New macro definition.
7693 (BU_P9_DFP_MISC_1): New macro definition.
7694 (BU_P9_DFP_MISC_2): New macro definition.
7695 (BU_P9_DFP_OVERLOAD_1): New macro definition.
7696 (BU_P9_DFP_OVERLOAD_2): New macro definition.
7697 (BU_P9_DFP_OVERLOAD_3): New macro definition.
7698 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
7699 (TSTSFI_LT_TD): Likewise.
7700 (TSTSFI_EQ_DD): Likewise.
7701 (TSTSFI_EQ_TD): Likewise.
7702 (TSTSFI_GT_DD): Likewise.
7703 (TSTSFI_GT_TD): Likewise.
7704 (TSTSFI_OV_DD): Likewise.
7705 (TSTSFI_OV_TD): Likewise.
7706 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
7707 (TSTSFI_LT_DD): Likewise.
7708 (TSTSFI_LT_TD): Likewise.
7709 (TSTSFI_EQ): Likewise.
7710 (TSTSFI_EQ_DD): Likewise.
7711 (TSTSFI_EQ_TD): Likewise.
7712 (TSTSFI_GT): Likewise.
7713 (TSTSFI_GT_DD): Likewise.
7714 (TSTSFI_GT_TD): Likewise.
7715 (TSTSFI_OV): Likewise.
7716 (TSTSFI_OV_DD): Likewise.
7717 (TSTSFI_OV_TD): Likewise.
7718 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7719 overloaded test significance functions.
7720 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7721 OPTION_MASK_P9_MISC into the representation of this mask.
7722 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
7723 of this mask.
7724 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
7725 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
7726 non-zero.
7727 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
7728 argument is a 6-bit unsigned literal value if the icode argument
7729 represents a DFP test significance built-in call.
7730 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
7731 flag used independently and in combination with the
7732 RS6000_BTM_64BIT flag.
7733 (rs6000_opt_masks): Add entry for power9-misc command-line option.
7734 (rs6000_builtin_mask_names): Add entry for power9-misc
7735 command-line option.
7736 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
7737 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
7738 RS6000_BTM_P9_MISC macros.
7739 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
7740 option and change the description of the -mpower9-vector option to
7741 enable only vector instructions, removing its erroneously claimed
7742 support for scalar instructions.
7743 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7744 the ISA 3.0 digital floating point test significance built-in
7745 functions.
7746
7747 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
7748
7749 * config/aarch64/aarch64.c (cortexa35_tunings):
7750 Enable AES fusion. Use cortexa57_branch_cost.
7751 (cortexa53_tunings): Use cortexa57_branch_cost.
7752 (cortexa72_tunings): Use cortexa57_branch_cost.
7753 Use AUTOPREFETCHER_WEAK.
7754 (cortexa73_tunings): Use cortexa57_branch_cost.
7755
7756 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7757 James Greenhalgh <james.greenhalgh@arm.com>
7758
7759 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
7760 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
7761 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
7762 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
7763 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
7764 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
7765 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
7766 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
7767 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
7768 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
7769 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
7770 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
7771 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
7772 New intrinsics.
7773
7774 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
7775 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7776
7777 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
7778 New define_insn.
7779 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
7780
7781 2016-06-30 David Malcolm <dmalcolm@redhat.com>
7782
7783 PR driver/71651
7784 * gcc.c (driver::build_option_suggestions): Pass "option" to
7785 add_misspelling_candidates.
7786 * opts-common.c (add_misspelling_candidates): Add "option" param;
7787 use it to avoid adding negated forms for options marked with
7788 RejectNegative.
7789 * opts.h (add_misspelling_candidates): Add "option" param.
7790
7791 2016-06-30 Jakub Jelinek <jakub@redhat.com>
7792
7793 PR middle-end/71693
7794 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
7795 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
7796 first when permuting bitwise operation with rotate. Cast
7797 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
7798
7799 2016-06-29 David Malcolm <dmalcolm@redhat.com>
7800
7801 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
7802 for misspelled param names.
7803 * params.c: Include spellcheck.h.
7804 (find_param_fuzzy): New function.
7805 * params.h (find_param_fuzzy): New prototype.
7806 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
7807 * spellcheck.h (struct edit_distance_traits<const char *>):
7808 ...here.
7809
7810 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7811
7812 * config/rs6000/predicates.md (const_0_to_7_operand): New
7813 predicate, recognize 0..7.
7814 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7815 support for doing extracts from V16QImode, V8HImode, V4SImode
7816 under ISA 3.0.
7817 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
7818 vector extract support.
7819 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
7820 for ISA 3.0 vector extract.
7821 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
7822 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
7823 extracts of a constant element number from small integer vectors
7824 on 64-bit ISA 3.0 systems.
7825 (vsx_extract_<mode>_di): Likewise.
7826 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
7827 say when we can do ISA 3.0 vector extracts.
7828 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
7829 registers, using the stxsiwx instruction.
7830
7831 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
7832
7833 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
7834 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
7835 qdf24xx_regmove_cost, qdf24xx_tunings): New.
7836 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
7837 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
7838 * config/arm/arm.c (arm_qdf24xx_tune): New.
7839
7840 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
7841
7842 * config/aarch64/aarch64.c (cortexa53_tunings):
7843 Increase loop alignment to 8. Set function alignment to 16.
7844 (cortexa35_tunings): Likewise.
7845 (cortexa57_tunings): Increase loop alignment to 8.
7846 (cortexa72_tunings): Likewise.
7847 (cortexa73_tunings): Likewise.
7848
7849 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
7850
7851 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
7852 for arm_fp16_ok and arm_fp16_hw.
7853 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
7854 arm_fp16_alternative.
7855
7856 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
7857
7858 PR tree-optimization/71655
7859 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
7860 types when swapping operands.
7861
7862 2016-06-29 Martin Liska <mliska@suse.cz>
7863
7864 PR middle-end/71585
7865 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
7866 * ipa-inline-transform.c (inline_call): Remove unnecessary call
7867 of build_optimization_node.
7868
7869 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
7870
7871 PR tree-optimization/70729
7872 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
7873 independent in loops having positive safelen value.
7874 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7875 it may be not valid after vectorization.
7876
7877 2016-06-29 Jakub Jelinek <jakub@redhat.com>
7878
7879 PR tree-optimization/71625
7880 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
7881 is sorted by ascending list->offset. If PTR is non-NULL and there is
7882 previous strinfo, call get_stridx_plus_constant.
7883 (get_stridx): Pass exp as second argument to get_addr_stridx.
7884 (addr_stridxptr): Add missing list = list->next, so that there can be
7885 more than one entries in the list. Bump limit from 16 to 32. Ensure
7886 the list is sorted by ascending list->offset.
7887 (get_stridx_plus_constant): Adjust so that it can be also called with
7888 ADDR_EXPR instead of SSA_NAME as PTR.
7889 (handle_char_store): Pass NULL_TREE as second argument to
7890 get_addr_stridx.
7891
7892 2016-06-29 Richard Biener <rguenther@suse.de>
7893
7894 PR rtl-optimization/68961
7895 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
7896
7897 2016-06-29 Richard Biener <rguenther@suse.de>
7898
7899 PR middle-end/71002
7900 * alias.c (component_uses_parent_alias_set_from): Handle
7901 type punning through union accesses by using the union alias set.
7902 * gimple.c (gimple_get_alias_set): Remove union type punning case.
7903
7904 2016-07-29 Richard Biener <rguenther@suse.de>
7905
7906 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
7907 precision not matching mode precision.
7908
7909 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
7910
7911 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
7912 pa_output_arg_descriptor.
7913 (call_val_symref_64bit_post_reload): Likewise.
7914 (call_val_powf_64bit_post_reload): Likewise.
7915 (sibcall_internal_symref_64bit): Likewise.
7916 (sibcall_value_internal_symref_64bit): Likewise.
7917
7918 2016-06-28 Jakub Jelinek <jakub@redhat.com>
7919
7920 PR middle-end/71626
7921 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
7922 a constant, force its SUBREG_REG into memory or register instead
7923 of whole op1.
7924
7925 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7926
7927 PR target/58655
7928 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
7929 * doc/invoke.texi (AVR Options): Document it.
7930
7931 2016-06-28 Walter Lee <walt@tilera.com>
7932
7933 * config/tilegx/linux.h: Do not include arch/icache.h
7934 (CLEAR_INSN_CACHE): Provide inlined definition directly.
7935 * config/tilepro/linux.h: Do not include arch/icache.h
7936 (CLEAR_INSN_CACHE): Provide inlined definition directly.
7937
7938 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
7939
7940 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
7941 for big-endian BIT_FIELD_REF.
7942
7943 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
7944
7945 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
7946 ('size' attribute): Add '128'.
7947 Include power9.md.
7948 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
7949 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
7950 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
7951 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
7952 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
7953 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
7954 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
7955 *trunc<mode>df2_odd): Set size attribute to '128'.
7956 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
7957 * config/rs6000/power6.md (power6-fp): Include dfp type.
7958 * config/rs6000/power7.md (power7-fp): Likewise.
7959 * config/rs6000/power8.md (power8-fp): Likewise.
7960 * config/rs6000/power9.md: New file.
7961 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
7962 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
7963 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
7964 htmsimple.
7965 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
7966 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
7967 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
7968 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
7969 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
7970 dfp_dscri_<mode>): Change type attribute to dfp.
7971 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
7972 attribute to vecsimple.
7973 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
7974 and prefetch streams.
7975 (rs6000_option_override_internal): Remove temporary code setting
7976 tuning to power8. Don't set rs6000_sched_groups for power9.
7977 (last_scheduled_insn): Change to rtx_insn *.
7978 (divide_cnt, vec_load_pendulum): New variables.
7979 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
7980 (rs6000_issue_rate): Set issue rate for Power9.
7981 (is_power9_pairable_vec_type): New.
7982 (power9_sched_reorder2): New.
7983 (rs6000_sched_reorder2): Call new function for Power9 specific
7984 reordering.
7985 (insn_must_be_first_in_group): Remove Power9.
7986 (insn_must_be_last_in_group): Likewise.
7987 (force_new_group): Likewise.
7988 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
7989 Initialize divide_cnt/vec_load_pendulum.
7990 (_rs6000_sched_context, rs6000_init_sched_context,
7991 rs6000_set_sched_context): Handle context save/restore of new
7992 variables.
7993
7994 2016-06-28 Richard Biener <rguenther@suse.de>
7995
7996 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7997 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
7998 COMPONENT_REF operand.
7999 (nonoverlapping_component_refs_p): Likewise.
8000 * stor-layout.c (start_bitfield_representative): Mark
8001 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
8002
8003 2016-06-28 Jakub Jelinek <jakub@redhat.com>
8004
8005 * Makefile.in: Don't cat ../stage_current if it does not exist.
8006
8007 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
8008 last argument is a bit-field.
8009
8010 PR rtl-optimization/71673
8011 * internal-fn.c (expand_arith_overflow_result_store): Use
8012 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
8013 expand_simple_binop.
8014
8015 PR middle-end/66867
8016 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
8017 expand_ifn_atomic_compare_exchange): New functions.
8018 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
8019 * tree.h (build_call_expr_internal_loc): Rename to ...
8020 (build_call_expr_internal_loc_array): ... this. Fix up type of
8021 last argument.
8022 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
8023 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
8024 ATOMIC_COMPARE_EXCHANGE result.
8025 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
8026 * gimple-fold.h (optimize_atomic_compare_exchange_p,
8027 fold_builtin_atomic_compare_exchange): New prototypes.
8028 * gimple-fold.c (optimize_atomic_compare_exchange_p,
8029 fold_builtin_atomic_compare_exchange): New functions..
8030 * tree-ssa.c (execute_update_addresses_taken): If
8031 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
8032 of call when finding addressable vars, and if such var becomes
8033 non-addressable, call fold_builtin_atomic_compare_exchange.
8034
8035 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
8036
8037 PR target/71670
8038 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
8039 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
8040
8041 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
8042
8043 * config/rs6000/rs6000.md ('type' attribute): Add
8044 veclogical,veccmpfx,vecexts,vecmove insn types.
8045 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
8046 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
8047 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
8048 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
8049 *nabs<mode>2_hw): Change type to vecmove.
8050 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8051 *boolcc<mode>3_internal, *eqv<mode>3_internal,
8052 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8053 *ieee_128bit_vsx_abs<mode>2_internal,
8054 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8055 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8056 *ieee128_mtvsrd_32bit): Change type to veclogical.
8057 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8058 *movdi_internal32, *movdi_internal64): Update insn types.
8059 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8060 vsx_extract_<mode>): Change type to veclogical.
8061 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8062 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8063 *vsx_sign_extend_si_v2di): Change type to vecexts.
8064 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8065 type to veclogical.
8066 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8067 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8068 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8069 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8070 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8071 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8072 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8073 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8074 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8075 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8076 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8077 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8078 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8079 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8080 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8081 (ppc7450-vecsimple): Add veclogical, vecmove.
8082 (ppc7450-veccmp): Add veccmpfx.
8083 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8084 vecmove.
8085 (ppc8540_vector_compare): Add veccmpfx.
8086 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8087 * config/rs6000/cell.md (cell-fp): Add fpsimple.
8088 (cell-vecsimple): Add veclogical, vecmove.
8089 (cell-veccmp): Add veccmpfx.
8090 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8091 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8092 veccmpfx.
8093 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8094 * config/rs6000/power4.md (power4-fp): Add fpsimple.
8095 (power4-vecsimple): Add veclogical, vecmove.
8096 (power4-veccmp): Add veccmpfx.
8097 * config/rs6000/power5.md (power5-fp): Add fpsimple.
8098 * config/rs6000/power6.md (power6-fp): Add fpsimple.
8099 (power6-vecsimple): Add veclogical, vecmove.
8100 (power6-veccmp): Add veccmpfx.
8101 * config/rs6000/power7.md (power7-fp): Add fpsimple.
8102 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8103 * config/rs6000/power8.md (power8-fp): Add fpsimple.
8104 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8105 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8106 * config/rs6000/titan.md (titan_fp): Add fpsimple.
8107 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8108 fpsimple.
8109 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8110
8111 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
8112
8113 PR target/71656
8114 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8115 OPTION_MASK_P9_DFORM_VECTOR.
8116 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8117 disable -mpower9-dform-vector when using reload.
8118 (quad_address_p): Remove 'gpr_p' argument and all associated code.
8119 New 'strict' argument. Update all callers. Add strict addressing
8120 support.
8121 (rs6000_legitimate_offset_address_p): Remove call to
8122 virtual_stack_registers_memory_p.
8123 (rs6000_legitimize_reload_address): Add quad address support.
8124 (rs6000_legitimate_address_p): Move call to quad_address_p above
8125 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
8126 to account for new strict usage.
8127 (rs6000_output_move_128bit): Adjust quad_address_p args to account
8128 for new strict usage.
8129 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8130
8131 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
8132
8133 PR target/70902
8134 PR target/71453
8135 PR target/71555
8136 PR target/71596
8137 PR target/71657
8138 * config/i386/i386.c (ix86_spill_class): Disable condition to
8139 always return NO_REGS.
8140
8141 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
8142
8143 * predict.c: Include gimple-pretty-print.h
8144 (predicted_by_loop_heuristics_p): Check also
8145 PRED_LOOP_EXIT_WITH_RECURSION
8146 (predict_loops): Find self recursive calls and use special purpose
8147 predictors for them; dump log about decisions.
8148 (pass_profile::execute): Dump info about #of iterations.
8149 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8150 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8151
8152 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
8153
8154 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8155 output_asm_insn calls and shorten long lines. Output .CALL
8156 argument descriptor using pa_output_arg_descriptor. Add various
8157 inline $$dyncall and other optimizations.
8158 (pa_attr_length_indirect_call): Adjust ordering and lengths.
8159
8160 2016-06-25 Jakub Jelinek <jakub@redhat.com>
8161
8162 PR tree-optimization/71643
8163 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8164 EH preds.
8165
8166 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8167 leak a bitmap if dep_bb is NULL.
8168
8169 PR tree-optimization/71631
8170 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8171 to rewrite_expr_tree even if negate_result, move new_lhs var
8172 declaration and initialization earlier, for powi_result set afterwards
8173 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
8174 if new_lhs != lhs, and don't shadow gsi var.
8175
8176 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
8177
8178 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8179 Add in_loop parameter.
8180 (predict_loops): Add loop guard heuristics.
8181 * predict.def (PRED_LOOP_GUARD): New heuristics.
8182
8183 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
8184
8185 * predict.c: Include ipa-utils.h
8186 (tree_bb_level_prediction): Predict recursive calls.
8187 (tree_estimate_probability_bb): Skip inexpensive calls for call
8188 predictor.
8189 * predict.def (PRED_RECURSIVE_CALL): New.
8190
8191 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8192
8193 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8194 (BU_FLOAT128_1): Likewise.
8195 (FABSQ): Likewise.
8196 (COPYSIGNQ): Likewise.
8197 (RS6000_BUILTIN_NANQ): Likewise.
8198 (RS6000_BUILTIN_NANSQ): Likewise.
8199 (RS6000_BUILTIN_INFQ): Likewise.
8200 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8201 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8202 (TARGET_FOLD_BUILTIN): New #define.
8203 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8204 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8205 (rs6000_fold_builtin): New target hook implementation, handling
8206 folding of 128-bit NaNs and infinities.
8207 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8208 entries are filled in to avoid problems during bootstrap
8209 self-test; define builtins for 128-bit NaNs and infinities.
8210 (rs6000_opt_mask): Add entry for float128.
8211 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8212 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8213 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8214 (const_str_type_node): New #define.
8215 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8216 to a define_expand that dispatches to either copysign<mode>3_soft
8217 or copysign<mode>3_hard.
8218 (copysign<mode>3_hard): Rename from copysign<mode>3.
8219 (copysign<mode>3_soft): New define_insn.
8220 * doc/extend.texi: Document new builtins.
8221
8222 2016-06-24 Jakub Jelinek <jakub@redhat.com>
8223
8224 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8225 PRIu64 instead of lu.
8226
8227 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
8228
8229 PR debug/71642
8230 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8231 copy the type name.
8232
8233 2016-06-24 Jakub Jelinek <jakub@redhat.com>
8234
8235 PR tree-optimization/71647
8236 * omp-low.c (lower_rec_input_clauses): Convert
8237 omp_clause_aligned_alignment (c) to size_type_node for the
8238 last argument of __builtin_assume_aligned.
8239
8240 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
8241
8242 * configure.ac (calling ___tls_get_addr via GOT): New
8243 assembler/linker check.
8244 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
8245 assembler and linker supports calling ___tls_get_addr via GOT.
8246 Otherise, defined to 0.
8247 * config.in: Regenerated.
8248 * configure: Likewise.
8249 * config/i386/constraints.md (Yb): New constraint.
8250 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8251 (REG_CLASS_NAMES): Likewise.
8252 (REG_CLASS_CONTENTS): Likewise.
8253 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8254 the b constraint with the Yb constraint. Call ___tls_get_addr
8255 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8256 is 1.
8257 (*tls_local_dynamic_base_32_gnu): Likewise.
8258 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8259 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8260 (*tls_local_dynamic_base_64_<mode>): Likewise.
8261
8262 2016-06-24 Martin Liska <mliska@suse.cz>
8263
8264 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8265 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8266 few functions.
8267 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8268 argument to true if the expected number of iterations is
8269 loop-based.
8270
8271 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
8272
8273 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8274 assemble for 32bit target.
8275 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8276 and $ld_ix86_gld_32_opt to link for 32bit target.
8277 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8278 * configure: Regenerate.
8279
8280 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8281
8282 * config/arm/arm.c (int_log2): Delete definition and prototype.
8283 (shift_op): Use exact_log2 instead of int_log2.
8284 (vfp3_const_double_for_fract_bits): Likewise.
8285
8286 2016-06-24 Jakub Jelinek <jakub@redhat.com>
8287
8288 * internal-fn.c (expand_arith_set_overflow): New function.
8289 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8290 Use it.
8291 (expand_arith_overflow_result_store): Likewise. Handle precision
8292 smaller than mode precision.
8293 * tree-vrp.c (extract_range_basic): For imag part, handle
8294 properly signed 1-bit precision result.
8295 * doc/extend.texi (__builtin_add_overflow): Document that last
8296 argument can't be pointer to enumerated or boolean type.
8297 (__builtin_add_overflow_p): Document that last argument can't
8298 have enumerated or boolean type.
8299
8300 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8301 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8302
8303 * config/rs6000/predicates.md (splat_input_operand): Rework.
8304 Don't allow constants, since the insns that use this predicate
8305 don't support constants. Constants are handled by other insns
8306 that are created via combine. During and after register
8307 allocation, only allow indexed or indirect addresses, and not
8308 general addresses. Only allow modes supported by the hardware.
8309 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8310 comment. Move check for using VSPLTIS<x> to a common location,
8311 instead of doing it in two different places.
8312
8313 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
8314
8315 * config/i386/driver-i386.c (host_detect_local_cpu): Set
8316 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8317 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8318 signature_CENTAUR_ebx.
8319
8320 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
8321
8322 PR target/66232
8323 PR target/67400
8324 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8325 (as_ix86_gas_32_opt): This.
8326 (ld_ix86_tls_ldm_opt): Renamed to ...
8327 (ld_ix86_gld_32_opt): This.
8328 (R_386_TLS_LDM reloc): Updated.
8329 (R_386_GOT32X reloc): New assembler/linker check.
8330 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
8331 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
8332 defined to 0.
8333 * config.in: Regenerated.
8334 * configure: Likewise.
8335 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8336 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8337 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8338 if ix86_force_load_from_GOT_p returns true.
8339 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8340 ix86_force_load_from_GOT_p returns true.
8341 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8342 the external function address via the GOT slot.
8343 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8344 HAVE_AS_IX86_GOT32X before returning false.
8345 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8346 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8347
8348 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
8349
8350 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8351
8352 2016-06-23 Andi Kleen <ak@linux.intel.com>
8353
8354 * Makefile.in: Regenerate.
8355 * doc/install.texi: Document autoprofiledbootstrap.
8356
8357 2016-06-23 Andi Kleen <ak@linux.intel.com>
8358
8359 * config/i386/gcc-auto-profile: New file.
8360
8361 2016-06-23 Martin Liska <mliska@suse.cz>
8362
8363 PR middle-end/71619
8364 * predict.c (predict_loops): Revert the hunk that was removed
8365 in r237103.
8366
8367 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
8368
8369 * config.gcc: Add support for arm*-*-phoenix* targets.
8370 * config/arm/t-phoenix: New.
8371 * config/phoenix.h: New.
8372
8373 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
8374 H.J. Lu <hongjiu.lu@intel.com>
8375
8376 PR target/67400
8377 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8378 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8379 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8380 ix86_force_load_from_GOT_p returns true.
8381 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8382 ix86_force_load_from_GOT_p returns true.
8383 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8384 ix86_force_load_from_GOT_p returns true.
8385 (ix86_expand_move): Load the external function address via the
8386 GOT slot if ix86_force_load_from_GOT_p returns true.
8387 * config/i386/predicates.md (x86_64_immediate_operand): Return
8388 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8389 (x86_64_zext_immediate_operand): Ditto.
8390
8391 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
8392
8393 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8394
8395 2016-06-22 David Malcolm <dmalcolm@redhat.com>
8396
8397 PR c/70339
8398 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8399 * diagnostic.c (pedwarn_at_rich_loc): New function.
8400 * spellcheck.h (best_match::best_match): Add a
8401 "best_distance_so_far" optional parameter.
8402 (best_match::set_best_so_far): New method.
8403 (best_match::get_best_distance): New accessor.
8404 (best_match::get_best_candidate_length): New accessor.
8405
8406 2016-06-22 Nick Clifton <nickc@redhat.com>
8407
8408 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8409 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8410 modes are accepted as well.
8411 (ucompare_loc_descriptor): Likewise.
8412 (minmax_loc_descriptor): Likewise.
8413 (clz_loc_descriptor): Likewise.
8414 (popcount_loc_descriptor): Likewise.
8415 (bswap_loc_descriptor): Likewise.
8416 (rotate_loc_descriptor): Likewise.
8417 (mem_loc_descriptor): Likewise.
8418 (loc_descriptor): Likewise.
8419
8420 2016-06-22 David Malcolm <dmalcolm@redhat.com>
8421
8422 * common.opt (fdiagnostics-parseable-fixits): New option.
8423 * diagnostic.c: Include "selftest.h".
8424 (print_escaped_string): New function.
8425 (print_parseable_fixits): New function.
8426 (diagnostic_report_diagnostic): Call print_parseable_fixits.
8427 (selftest::assert_print_escaped_string): New function.
8428 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8429 (selftest::test_print_escaped_string): New function.
8430 (selftest::test_print_parseable_fixits_none): New function.
8431 (selftest::test_print_parseable_fixits_insert): New function.
8432 (selftest::test_print_parseable_fixits_remove): New function.
8433 (selftest::test_print_parseable_fixits_replace): New function.
8434 (selftest::diagnostic_c_tests): New function.
8435 * diagnostic.h (struct diagnostic_context): Add field
8436 "parseable_fixits_p".
8437 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8438 -fdiagnostics-parseable-fixits.
8439 (-fdiagnostics-parseable-fixits): New option.
8440 * opts.c (common_handle_option): Handle
8441 -fdiagnostics-parseable-fixits.
8442 * selftest-run-tests.c (selftest::run_tests): Call
8443 selftest::diagnostic_c_tests.
8444 * selftest.h (selftest::diagnostic_c_tests): New prototype.
8445
8446 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
8447
8448 PR tree-optimization/71488
8449 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8450 comparison of boolean vectors.
8451 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8452 of boolean vectors using bitwise operations.
8453
8454 2016-06-22 Andreas Schwab <schwab@suse.de>
8455
8456 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8457 Remove declaration.
8458
8459 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
8460
8461 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8462
8463 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
8464
8465 * config/i386/i386.c (print_reg): Emit an error message on attempt to
8466 print FLAGS_REG.
8467
8468 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8469
8470 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8471 * config/arm/arm-cores.def (cortex-a73): New entry.
8472 (cortex-a73.cortex-a35): Likewise.
8473 (cortex-a73.cortex-a53): Likewise.
8474 * config/arm/arm-tables.opt: Regenerate.
8475 * config/arm/arm-tune.md: Likewise.
8476 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8477 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8478 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8479 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8480 * doc/invoke.texi (ARM Options): Document cortex-a73,
8481 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8482
8483 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8484
8485 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8486 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8487 (cortex-a73.cortex-a35): Likewise.
8488 (cortex-a73.cortex-a53): Likewise.
8489 * config/aarch64/aarch64-tune.md: Regenerate.
8490 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8491 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8492 -mcpu and -mtune.
8493
8494 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8495
8496 * configure.ac (gcc_cv_as_compress_debug): Remove
8497 --compress-debug-sections as extra as switch.
8498 Handle gas --compress-debug-sections=type.
8499 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8500 Handle gld --compress-debug-sections=type.
8501 * configure: Regenerate.
8502
8503 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8506
8507 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
8508
8509 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8510 (do_rewrite): likewise.
8511
8512 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8513
8514 * common/config/mep/mep-common.c: Remove.
8515 * config.gcc: Remove mep-* support.
8516 * config/mep/constraints.md: Remove.
8517 * config/mep/default.h: Remove.
8518 * config/mep/intrinsics.h: Remove.
8519 * config/mep/intrinsics.md: Remove.
8520 * config/mep/ivc2-template.h: Remove.
8521 * config/mep/mep-c5.cpu: Remove.
8522 * config/mep/mep-core.cpu: Remove.
8523 * config/mep/mep-default.cpu: Remove.
8524 * config/mep/mep-ext-cop.cpu: Remove.
8525 * config/mep/mep-intrin.h: Remove.
8526 * config/mep/mep-ivc2.cpu: Remove.
8527 * config/mep/mep-pragma.c: Remove.
8528 * config/mep/mep-protos.h: Remove.
8529 * config/mep/mep.c: Remove.
8530 * config/mep/mep.cpu: Remove.
8531 * config/mep/mep.h: Remove.
8532 * config/mep/mep.md: Remove.
8533 * config/mep/mep.opt: Remove.
8534 * config/mep/predicates.md: Remove.
8535 * config/mep/t-mep: Remove.
8536 * doc/install.texi: Remove mep-* documentation.
8537 * doc/md.texi: Likewise.
8538
8539 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8540
8541 * config.gcc: Remove support for avr-rtems.
8542 * config/avr/gen-avr-mmcu-specs.c: Likewise.
8543 * config/avr/rtems.h: Remove.
8544 * config/avr/t-rtems: Remove.
8545
8546 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8547
8548 * config.gcc: Remove m32r-rtems support.
8549 * config/m32r/rtems.h: Remove.
8550
8551 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8552
8553 * config.gcc: Remove h8300-rtems support.
8554 * config/h8300/rtems.h: Remove.
8555 * config/h8300/t-rtems: Remove.
8556
8557 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8558
8559 * config.gcc: Remove support for knetbsd.
8560 * configure.ac: Likewise.
8561 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
8562 * config/knetbsd-gnu.h: Remove.
8563 * configure: Regenerate.
8564
8565 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8566
8567 * config.gcc: Remove support for openbsd 2 and 3.
8568 * config/openbsd-oldgas.h: Remove.
8569
8570 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8571
8572 * config.gcc: Remove interix support.
8573 * config/i386/i386-interix.h: Remove.
8574 * config/i386/interix.opt: Remove.
8575 * config/i386/t-interix: Remove.
8576 * configure: Regenerate.
8577 * configure.ac: Remove interix support.
8578 * doc/install.texi: Remove interix documentation.
8579
8580 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
8581
8582 * config/rs6000/rs6000.h: Add conditional preprocessing directives
8583 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
8584 not defined.
8585
8586 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
8587
8588 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
8589 they are both PLACEHOLDER_EXPRs.
8590
8591 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8592
8593 * stor-layout.c (layout_type): Move setting complex MODE to
8594 layout_type, instead of setting it ahead of time by the caller.
8595 * tree.c (build_complex_type): Likewise.
8596
8597 2016-06-21 Martin Liska <mliska@suse.cz>
8598
8599 * predict.c (force_edge_cold): Replace imposisble with
8600 impossible.
8601
8602 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
8603
8604 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
8605 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
8606
8607 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
8608
8609 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
8610
8611 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
8612 Ilya Enkovich <ilya.enkovich@intel.com>
8613
8614 PR target/71549
8615 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8616 New member function to convert V1TImode register to SUBREG
8617 TImode in debug insn.
8618 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
8619 after changing register mode to V1TImode.
8620
8621 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
8622
8623 * config/aarch64/aarch64-cores.def (vulcan): New core.
8624 * config/aarch64/aarch64-tune.md: Regenerate.
8625 * doc/invoke.texi: Document vulcan as an available option.
8626
8627 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
8628
8629 * cse.c (canon_asm_operands): New function extracted from...
8630 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
8631 either standalone or member of a PARALLEL.
8632
8633 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
8634
8635 PR target/30417
8636 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
8637 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
8638 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
8639
8640 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
8641
8642 PR target/71103
8643 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
8644 constant addresses if can_create_pseudo_p.
8645
8646 2016-06-21 Jakub Jelinek <jakub@redhat.com>
8647
8648 PR tree-optimization/71588
8649 * tree-ssa-strlen.c (valid_builtin_call): New function.
8650 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
8651 it.
8652
8653 2016-06-20 Jakub Jelinek <jakub@redhat.com>
8654
8655 PR middle-end/71581
8656 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
8657 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
8658 for conversion of scalar user var to complex type and use the
8659 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
8660 punt.
8661
8662 PR rtl-optimization/71591
8663 * toplev.c (toplev::run_self_tests): If no_backend, complain and
8664 don't run any tests.
8665
8666 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
8667
8668 PR target/71571
8669 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
8670 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
8671 space for PIC with non-v32 and the common non-PIC "jump".
8672
8673 2016-06-20 Jakub Jelinek <jakub@redhat.com>
8674
8675 PR target/71559
8676 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
8677 returned values and add UN*/LTGT/*ORDERED cases with values matching
8678 D operand modifier on vcmp for AVX.
8679
8680 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
8681
8682 * config/aarch64/aarch64.opt
8683 (mpc-relative-literal-loads): Rename internal option name.
8684 * config/aarch64/aarch64.c
8685 (aarch64_nopcrelative_literal_loads): Rename to
8686 aarch64_pcrelative_literal_loads.
8687 (aarch64_expand_mov_immediate): Likewise.
8688 (aarch64_secondary_reload): Likewise.
8689 (aarch64_can_use_per_function_literal_pools_p): Likewise.
8690 (aarch64_override_options_after_change_1): Rename and simplify logic.
8691 (aarch64_classify_symbol): Merge large model checks into switch,
8692 remove pc-relative load check.
8693
8694 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8695
8696 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
8697 costs relative to the cost of a register move.
8698
8699 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8700
8701 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
8702 (vcvt_n_f64_u64): Likewise.
8703 (vcvt_n_s64_f64): Likewise.
8704 (vcvt_n_u64_f64): Likewise.
8705 (vcvt_f64_s64): Likewise.
8706 (vrecpe_f64): Likewise.
8707 (vcvt_f64_u64): Likewise.
8708 (vrecps_f64): Likewise.
8709
8710 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8711
8712 * config/aarch64/aarch64.md
8713 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
8714 iterators.
8715 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
8716 attributes.
8717 * config/aarch64/aarch64-builtins.c
8718 (aarch64_types_binop_uss_qualifiers): Delete.
8719 (TYPES_BINOP_USS): Likewise.
8720 (aarch64_types_binop_sus_qualifiers): Likewise.
8721 (TYPES_BINOP_SUS): Likewise.
8722 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
8723 (TYPES_FCVTIMM_SUS): Likewise.
8724 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
8725 rather than BINOP.
8726 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
8727 (fcvtzs): Use SHIFTIMM rather than BINOP.
8728 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
8729
8730 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8731
8732 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
8733 costs relative to the cost of a register move.
8734
8735 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
8736
8737 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
8738 Allow scalar/single vector modes to be tieable.
8739
8740 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
8741
8742 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
8743
8744 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8745
8746 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
8747 "alignement".
8748 * tree.h (TYPE_ALIGN): Likewise.
8749
8750 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
8751
8752 PR target/71103
8753 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
8754
8755 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
8756
8757 * config/avr/avr.c (avr_print_operand): Fix "format not a string
8758 literal" build warnings.
8759 (avr_print_operand_address): Dito.
8760
8761 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
8762
8763 PR target/71375
8764 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
8765 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
8766
8767 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
8768
8769 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
8770
8771 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
8772
8773 PR bootstrap/71435
8774 * reload1.c (reload): Pass 0 to finish_spills when called because
8775 update_eliminables_and_spill returns true and remove did_spill.
8776 (finish_spills): Adjust comment and document GLOBAL parameter.
8777
8778 2016-06-17 DJ Delorie <dj@redhat.com>
8779
8780 PR target/71338
8781 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
8782 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
8783 (umulqihi3_virt): Likewise.
8784 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
8785 (umulqihi3_real): Likewise.
8786
8787 2016-06-17 Martin Liska <mliska@suse.cz>
8788
8789 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
8790
8791 2016-06-17 Martin Liska <mliska@suse.cz>
8792
8793 * predict.def: PRED_LOOP_EXIT from 92 to 85.
8794
8795 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
8796
8797 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
8798 __FAST_MATH__.
8799 (vaddq_f32): Likewise.
8800 (vmul_f32): Likewise.
8801 (vmulq_f32): Likewise.
8802 (vsub_f32): Likewise.
8803 (vsubq_f32): Likewise.
8804
8805 2016-06-17 Bin Cheng <bin.cheng@arm.com>
8806
8807 PR tree-optimization/71347
8808 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
8809 cost for all uses in group.
8810
8811 2016-06-17 Bin Cheng <bin.cheng@arm.com>
8812
8813 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
8814 insert gimple seq if it's not empty.
8815
8816 2016-06-17 Bin Cheng <bin.cheng@arm.com>
8817
8818 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
8819 member OFFSET.
8820 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
8821 rather than OFFSET.
8822 (comp_dr_with_seg_len_pair): Ditto.
8823 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
8824 struct dr_with_seg_len_pair against DR_OFFSET.
8825 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
8826 DR_OFFSET directly.
8827
8828 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
8829
8830 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
8831
8832 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
8833
8834 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
8835 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
8836 (pa_output_millicode_call): Likewise.
8837 (pa_output_call): Likewise.
8838 (pa_output_indirect_call): Likewise.
8839 (pa_asm_output_mi_thunk): Likewise.
8840
8841 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8842
8843 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
8844
8845 2016-06-16 Martin Liska <mliska@suse.cz>
8846
8847 * predict.c (combine_predictions_for_insn): When we find a first
8848 match predictor, we should consider just predictors with
8849 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
8850 DS theory predictor.
8851 (combine_predictions_for_bb): Likewise.
8852
8853 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8854
8855 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
8856 with base of reference to struct.
8857
8858 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
8859
8860 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
8861
8862 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8863
8864 PR target/71151
8865 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
8866 progmem_swtable_section.
8867 (progmem_swtable_section): Remove.
8868 (avr_asm_function_rodata_section): Remove.
8869 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
8870 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
8871
8872 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
8873
8874 * config/i386/driver-i386.c (host_detect_local_cpu): Set
8875 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
8876 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
8877 signature_CENTAUR_ebx.
8878 * config/i386/i386.c (ix86_option_override_internal): Add
8879 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
8880 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
8881 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
8882
8883 2016-06-16 Martin Liska <mliska@suse.cz>
8884
8885 * predict.def: Add fortran loop preheader predictor.
8886 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
8887 fold IFN_BUILTIN_EXPECT with a known constant argument.
8888
8889 2016-06-16 Martin Liska <mliska@suse.cz>
8890
8891 * predict.def: Add 'Fortran' to display text of all
8892 PRED_FORTRAN_* predictors.
8893
8894 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
8895
8896 PR target/71242
8897 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
8898 [IA64_BUILTIN_NANSQ]: Ditto.
8899 (ia64_fold_builtin): New function.
8900 (TARGET_FOLD_BUILTIN): New define.
8901 (ia64_init_builtins) Declare const_string_type node.
8902 Add __builtin_nanq and __builtin_nansq builtin functions.
8903 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
8904
8905 2016-06-16 Nick Clifton <nickc@redhat.com>
8906
8907 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
8908 MSP430_HWMULT_ prefix to enum values.
8909 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
8910 * config/msp430/msp430.c: Update use of enum values.
8911 * config/msp430/msp430.md: Likewise.
8912 * config/msp430/msp430.opt: Likewise.
8913
8914 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
8915
8916 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
8917 of comparsions in the last iteration.
8918
8919 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
8920 Joern Rennecke <joern.rennecke@embecosm.com>
8921
8922 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
8923 addresses.
8924 (arc_needs_pcl_p): Add GOTOFFPC.
8925 (arc_legitimate_pic_addr_p): Likewise.
8926 (arc_output_pic_addr_const): Likewise.
8927 (arc_legitimize_pic_address): Generate a pc-relative address using
8928 GOTOFFPC.
8929 (arc_output_libcall): Use @pcl syntax.
8930 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
8931 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
8932 (*movsi_insn): Use @pcl syntax.
8933 (doloop_begin_i): Likewise.
8934
8935 2016-06-16 Martin Liska <mliska@suse.cz>
8936
8937 * predict.def: Define a new predictor.
8938
8939 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
8940
8941 * config/arc/arc.opt (mtp-regno): Update text.
8942
8943 2016-06-16 Renlin Li <renlin.li@arm.com>
8944
8945 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
8946
8947 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8948
8949 PR target/71554
8950 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
8951 (setcc + and peephole2): Likewise.
8952
8953 PR rtl-optimization/71532
8954 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
8955 memory slots.
8956
8957 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8958
8959 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
8960 DImode constants with XXSPLTIB in vector registers.
8961 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
8962 vsx_extract_<mode>_internal{1,2} into a single insn that handles
8963 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
8964 extraction of the element at the top of the register as a scalar
8965 value.
8966 (vsx_extract_<mode>_internal1): Likewise.
8967 (vsx_extract_<mode>_internal2): Likewise.
8968 * config/rs6000/constraints.md (wi constraint): Remove a comment
8969 about DImode not being allowed in Altivec registers.
8970 (wB constraint): New constraint for constants that can be
8971 generated in Altivec registers with VSPLTISW/VUPKHSW.
8972 * config/rs6000/predicates.md (xxspltib_constant_split): Update
8973 comments.
8974 (xxspltib_constant_nosplit): Likewise.
8975 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
8976 support for -mupper-regs-di to enable DImode to go into Altivec
8977 registers.
8978 (POWERPC_MASKS): Likewise.
8979 (power7 cpu): Likewise.
8980 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
8981 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
8982 for DImode being allowed in Altivec registers. Update wi/wj
8983 constraints. Set scalar_in_vmx_p flag.
8984 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
8985 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
8986 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
8987 (rs6000_opt_masks): Add -mupper-regs-di.
8988 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
8989 direct move to use wi and not wj.
8990 (lfiwzx): Likewise.
8991 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
8992 alternative.
8993 (floatunssi<mode>2_lfiwzx_mem): Likewise.
8994 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
8995 any VSX register, instead of just Altivec registers, to allow
8996 either operand to be an Altivec register or both.
8997 (fixuns_trunc<mode>di2_fctiduz): Likewise.
8998 (movdi_internal32): Add support for -mupper-regs-di. Add support
8999 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
9000 the alternatives and attributes to be lined up to be easier to
9001 read.
9002 (movdi_internal64): Likewise.
9003 (64-bit DImode splitters): Change predicates to only split loading
9004 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
9005 load constants in ISA 3.0 or ISA 2.07 respectively.
9006 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9007 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
9008 mention -mcpu=power9 sets these options.
9009 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
9010 wB constraint.
9011
9012 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9013
9014 PR target/67353
9015 * config/avr/avr.c (avr_set_current_function): Warn misspelled
9016 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
9017 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
9018 by default to warn misspelled interrupt/ signal handler.
9019 * doc/invoke.texi (AVR Options): Document it. Update description
9020 for -nodevicelib option.
9021
9022 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9023
9024 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
9025 up parentheses. Use GET_MODE_UNIT_BITSIZE.
9026 (aarch64_<sur>shll2_n<mode>): Likewise.
9027
9028 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
9029
9030 PR middle-end/71529
9031 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
9032 DECL_CONTEXT for copied arguments.
9033
9034 2016-06-15 Alan Hayward <alan.hayward@arm.com>
9035
9036 PR tree-optimization/71483
9037 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
9038 for slp
9039
9040 2016-06-15 Martin Liska <mliska@suse.cz>
9041
9042 * predict.c (tree_predict_by_opcode): Call predict_edge_def
9043 instead of predict_edge w/o a probability.
9044
9045 2016-06-15 Alan Hayward <alan.hayward@arm.com>
9046
9047 PR tree-optimization/71439
9048 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
9049 live PHIs.
9050
9051 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9052
9053 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9054 register subregs in SET_SRC.
9055
9056 2016-06-15 Richard Biener <rguenther@suse.de>
9057
9058 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9059 store restrictions.
9060
9061 2016-06-15 Richard Biener <rguenther@suse.de>
9062
9063 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9064 not consider dependences between accesses that belong to the
9065 same group.
9066 (vect_analyze_data_ref_dependences): Do not analyze read-read
9067 or self-dependences.
9068
9069 2016-06-14 David Malcolm <dmalcolm@redhat.com>
9070
9071 * spellcheck-tree.c: Include spellcheck-tree.h rather than
9072 spellcheck.h.
9073 (find_closest_identifier): Reimplement in terms of
9074 best_match<tree,tree>.
9075 * spellcheck-tree.h: New file.
9076 * spellcheck.c (struct edit_distance_traits<const char *>): New
9077 struct.
9078 (find_closest_string): Reimplement in terms of
9079 best_match<const char *, const char *>.
9080 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9081 overload to spellcheck-tree.h.
9082 (find_closest_identifier): Likewise.
9083 (struct edit_distance_traits<T>): New template.
9084 (class best_match): New class.
9085
9086 2016-06-14 David Malcolm <dmalcolm@redhat.com>
9087
9088 * selftest-run-tests.c (selftest::run_tests): Call
9089 selftest::spellcheck_tree_c_tests.
9090 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9091 * spellcheck-tree.c: Include selftest.h and stringpool.h.
9092 (selftest::test_find_closest_identifier): New function.
9093 (selftest::spellcheck_tree_c_tests): New function.
9094 * spellcheck.c (selftest::test_find_closest_string): Verify that
9095 the order of the vec does not affect the results for this case.
9096 (selftest::test_data): New array.
9097 (selftest::test_metric_conditions): New function.
9098 (selftest::spellcheck_c_tests): Add a test of case-comparison.
9099 Call selftest::test_metric_conditions.
9100
9101 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9102
9103 * config/rs6000/rs6000-builtin.def (commentary): Typo.
9104 (BU_P9_MISC_1): Likewise.
9105 (BU_P9_64BIT_MISC_0): Likewise.
9106 (BU_P9_MISC_0): Likewise.
9107
9108 2016-06-14 David Malcolm <dmalcolm@redhat.com>
9109
9110 * gcc-rich-location.c
9111 (gcc_rich_location::add_fixit_misspelled_id): New method.
9112 * gcc-rich-location.h
9113 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9114
9115 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
9116
9117 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9118 FreeBSD 11 and above.
9119
9120 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
9121
9122 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9123
9124 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9125
9126 * expmed.h: Close parenthesis in "at your option" in copyright
9127 boilerplate.
9128 * lower-subreg.h: Likewise.
9129
9130 2016-06-14 Richard Biener <rguenther@suse.de>
9131
9132 PR middle-end/71526
9133 * genmatch.c (expr::gen_transform): Use in_type for comparisons
9134 if available.
9135
9136 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9137
9138 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9139 New function.
9140 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
9141 mask+shift version.
9142 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9143 New prototype.
9144 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9145 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9146
9147 2016-06-14 Richard Biener <rguenther@suse.de>
9148
9149 PR tree-optimization/71522
9150 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9151 copying into float copying.
9152
9153 2016-06-14 Jakub Jelinek <jakub@redhat.com>
9154
9155 PR tree-optimization/71520
9156 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9157 (replace_block_by): Move user labels from bb1 to bb2.
9158
9159 2016-06-14 Richard Biener <rguenther@suse.de>
9160
9161 PR middle-end/71310
9162 PR bootstrap/71510
9163 * expr.h (get_bit_range): Declare.
9164 * expr.c (get_bit_range): Export.
9165 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9166 word_mode again to constrain the bitfield access.
9167
9168 2016-06-14 Richard Biener <rguenther@suse.de>
9169
9170 PR tree-optimization/71521
9171 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9172 division int_const_binop against zero divisor.
9173
9174 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
9175
9176 * config/i386/i386.md (signbittf2): New expander.
9177 * config/i386/sse.md (ptesttf2): New insn pattern.
9178
9179 2016-06-13 David Malcolm <dmalcolm@redhat.com>
9180
9181 PR bootstrap/71481
9182 * input.c (selftest::test_reading_source_line): Avoid reading from
9183 __FILE__ by creating a tempfile with known content and reading
9184 from that instead.
9185
9186 2016-06-13 David Malcolm <dmalcolm@redhat.com>
9187
9188 * pretty-print.c (assert_pp_format_colored): Skip the test if
9189 GCC_COLORS is set.
9190 (test_pp_format): Remove comment about GCC_COLORS.
9191
9192 2016-06-13 David Malcolm <dmalcolm@redhat.com>
9193
9194 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9195 * pretty-print.c (assert_pp_format_va): Add location param and use
9196 it with ASSERT_STREQ_AT.
9197 (assert_pp_format): Add location param and pass it to
9198 assert_pp_format_va.
9199 (assert_pp_format_colored): Likewise.
9200 (ASSERT_PP_FORMAT_1): New.
9201 (ASSERT_PP_FORMAT_2): New.
9202 (ASSERT_PP_FORMAT_3): New.
9203 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9204 explicitly, or implicitly via the above macros.
9205 * selftest.c (selftest::pass): Use a selftest::location rather
9206 than file and line.
9207 (selftest::fail): Likewise. Print the function name.
9208 (selftest::fail_formatted): Likewise.
9209 (selftest::assert_streq): Use a selftest::location rather than
9210 file and line.
9211 * selftest.h (selftest::location): New struct.
9212 (SELFTEST_LOCATION): New macro.
9213 (selftest::pass): Accept a const location & rather than file
9214 and line.
9215 (selftest::fail): Likewise.
9216 (selftest::fail_formatted): Likewise.
9217 (selftest::assert_streq): Likewise.
9218 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9219 (ASSERT_FALSE): Likewise.
9220 (ASSERT_EQ): Likewise.
9221 (ASSERT_NE): Likewise.
9222 (ASSERT_STREQ): Likewise.
9223 (ASSERT_PRED1): Likewise.
9224 (ASSERT_STREQ_AT): New macro.
9225
9226 2016-06-13 David Malcolm <dmalcolm@redhat.com>
9227
9228 * selftest.c (selftest::fail_formatted): New function.
9229 (selftest::assert_streq): New function.
9230 * selftest.h (selftests::fail_formatted): New decl.
9231 (selftest::assert_streq): New decl.
9232 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9233
9234 2016-06-13 Jeff Law <law@redhat.com>
9235
9236 PR tree-optimization/71403
9237 * tree-ssa-threadbackward.c
9238 (convert_and_register_jump_thread_path): No longer accept reference
9239 to path. Do not pop items off the path anymore.
9240 (fsm_find_control_statement_thread_paths): Do not allow threading
9241 to a deeper loop nest. Pop the last item off the path here rather
9242 than in convert_and_register_jump_thread_path.
9243
9244 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
9245 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
9246
9247 [AArch64] Emit division using the Newton series
9248
9249 * config/aarch64/aarch64-protos.h
9250 (cpu_approx_modes): Add new member "division".
9251 (aarch64_emit_approx_div): Declare new function.
9252 * config/aarch64/aarch64.c
9253 (generic_approx_modes): New member "division".
9254 (exynosm1_approx_modes): Likewise.
9255 (xgene1_approx_modes): Likewise.
9256 (aarch64_emit_approx_div): Define new function.
9257 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9258 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9259 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9260 * doc/invoke.texi (-mlow-precision-div): Describe new option.
9261
9262 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
9263 Wilco Dijkstra <wilco.dijkstra@arm.com>
9264
9265 [AArch64] Emit square root using the Newton series
9266
9267 * config/aarch64/aarch64-protos.h
9268 (aarch64_emit_approx_rsqrt): Replace with new function
9269 "aarch64_emit_approx_sqrt".
9270 (cpu_approx_modes): New member "sqrt".
9271 * config/aarch64/aarch64.c
9272 (generic_approx_modes): New member "sqrt".
9273 (exynosm1_approx_modes): Likewise.
9274 (xgene1_approx_modes): Likewise.
9275 (aarch64_emit_approx_rsqrt): Replace with new function
9276 "aarch64_emit_approx_sqrt".
9277 (aarch64_override_options_after_change_1): Handle new option.
9278 * config/aarch64/aarch64-simd.md
9279 (rsqrt<mode>2): Use new function instead.
9280 (sqrt<mode>2): New expansion and insn definitions.
9281 * config/aarch64/aarch64.md: Likewise.
9282 * config/aarch64/aarch64.opt
9283 (mlow-precision-sqrt): Add new option description.
9284 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9285
9286 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
9287
9288 [AArch64] Add more choices for the reciprocal square root approximation
9289
9290 Allow a target to prefer such operation depending on the operation mode.
9291
9292 * config/aarch64/aarch64-protos.h
9293 (AARCH64_APPROX_MODE): New macro.
9294 (AARCH64_APPROX_{NONE,ALL}): Likewise.
9295 (cpu_approx_modes): New structure.
9296 (tune_params): New member "approx_modes".
9297 * config/aarch64/aarch64-tuning-flags.def
9298 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9299 * config/aarch64/aarch64.c
9300 (generic_approx_modes): New core "cpu_approx_modes" structure.
9301 (exynosm1_approx_modes): Likewise.
9302 (xgene1_approx_modes): Likewise.
9303 (generic_tunings): New member "approx_modes".
9304 (cortexa35_tunings): Likewise.
9305 (cortexa53_tunings): Likewise.
9306 (cortexa57_tunings): Likewise.
9307 (cortexa72_tunings): Likewise.
9308 (exynosm1_tunings): Likewise.
9309 (thunderx_tunings): Likewise.
9310 (xgene1_tunings): Likewise.
9311 (use_rsqrt_p): New argument for the mode and use new member from
9312 "tune_params".
9313 (aarch64_builtin_reciprocal): Devise mode from builtin.
9314 (aarch64_optab_supported_p): New argument for the mode.
9315 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9316
9317 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
9318
9319 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9320 RS6000_BTM_MODULO flag into the set of flags that are considered
9321 to be part of the common configuration.
9322
9323 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
9324
9325 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9326 difference unsigned.
9327 (vec_absdb): New macro for vector absolute difference unsigned
9328 byte.
9329 (vec_absdh): New macro for vector absolute difference unsigned
9330 half-word.
9331 (vec_absdw): New macro for vector absolute difference unsigned word.
9332 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9333 (vadu<mode>3): New insn.
9334 (*p9_vadu<mode>3): New insn.
9335 * config/rs6000/rs6000-builtin.def (vadub): New built-in
9336 definition.
9337 (vaduh): New built-in definition.
9338 (vaduw): New built-in definition.
9339 (vadu): New overloaded built-in definition.
9340 (vadub): New overloaded built-in definition.
9341 (vaduh): New overloaded built-in definition.
9342 (vaduw): New overloaded built-in definition.
9343 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9344 overloaded vector absolute difference unsigned functions.
9345 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9346 the ISA 3.0 vector absolute difference unsigned built-in functions.
9347
9348 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
9349
9350 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9351 update shared_lookup_references only once after changing operands.
9352
9353 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
9354
9355 PR middle-end/71373
9356 * tree-nested.c (convert_nonlocal_omp_clauses)
9357 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9358
9359 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9360 * tree.def (CASE_LABEL_EXPR): Likewise.
9361
9362 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9363
9364 PR bootstrap/71481
9365 * input.c (test_builtins): Fix an assertion.
9366
9367 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
9368
9369 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9370 (paritysi2): Ditto.
9371 (isinfxf2): Ditto.
9372 (isinf<mode>2): Ditto.
9373
9374 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
9375
9376 * ggc-tests.c (test_finalization): Only test need_finalization_p
9377 for GCC_VERSION >= 4003.
9378
9379 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9380
9381 * config/s390/vecintrin.h: Fix file description in comment.
9382
9383 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9384
9385 * config/s390/s390-builtin-types.def: Change builtin type naming
9386 scheme to match builtin-types.def.
9387
9388 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
9389
9390 * fold-const.c (optimize_minmax_comparison): Remove.
9391 (fold_comparison): Remove call to the above.
9392 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9393 New transformations.
9394
9395 2016-06-13 Alan Hayward <alan.hayward@arm.com>
9396
9397 PR tree-optimization/71416
9398 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9399 multiple entries
9400
9401 2016-06-13 Martin Liska <mliska@suse.cz>
9402
9403 * predict.c (enum predictor_reason): Prefix enum with REASON_.
9404 (combine_predictions_for_insn): Likewise.
9405 (prune_predictions_for_bb): Likewise.
9406 (combine_predictions_for_bb): Likewise.
9407
9408 2016-06-13 Richard Biener <rguenther@suse.de>
9409
9410 PR tree-optimization/71505
9411 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9412 assert match comment.
9413
9414 2016-06-13 Marek Polacek <polacek@redhat.com>
9415
9416 PR middle-end/71476
9417 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9418 gimplify_switch_expr.
9419 (warn_switch_unreachable_r): New function.
9420
9421 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9422
9423 PR target/71379
9424 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9425 one.
9426
9427 2016-06-13 Richard Biener <rguenther@suse.de>
9428
9429 PR middle-end/64516
9430 * fold-const.c (fold_unary_loc): Preserve alignment when
9431 folding a VIEW_CONVERT_EXPR into a MEM_REF.
9432
9433 2016-06-13 Martin Liska <mliska@suse.cz>
9434
9435 PR sanitizer/71458
9436 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9437 w/ -fsanitize=bounds.
9438
9439 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
9440
9441 * config/i386/i386.c (ix86_init_builtins): Calculate
9442 FLOAT128_FTYPE_CONST_STRING function type only once.
9443 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9444 built-in functions are available for x86-32 and x86-64 targets.
9445
9446 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
9447
9448 PR target/71241
9449 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9450 New primitive type.
9451 (FLOAT128_FTYPE_CONST_STRING): New function type.
9452 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9453 [IX86_BUILTIN_NANSQ]: Ditto.
9454 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9455 (ix86_init_builtin_types): Declare const_string_type_node.
9456 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9457 builtin functions.
9458 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9459 * doc/extend.texi (x86 Built-in Functions): Document
9460 __builtin_nanq and __builtin_nansq.
9461
9462 2016-06-11 Jiong Wang <jiong.wang@arm.com>
9463
9464 PR target/71061
9465 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9466 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9467 length for pop patterns.
9468 (arm_attr_length_push_multi): Update comments.
9469 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9470 attribute.
9471 (*pop_multiple_with_writeback_and_return): Likewise.
9472 (*pop_multiple_with_return): Likewise.
9473
9474 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
9475
9476 PR middle-end/71310
9477 * fold-const.c (optimize_bit_field_compare): Don't try to use
9478 word_mode unconditionally for reading the bit field, look at
9479 DECL_BIT_FIELD_REPRESENTATIVE instead.
9480
9481 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9482
9483 PR middle-end/71478
9484 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9485 vector integer type.
9486
9487 2016-06-10 Jakub Jelinek <jakub@redhat.com>
9488
9489 PR middle-end/71494
9490 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9491 without LABEL_DECL, set *handled_ops_p to false instead of true.
9492
9493 2016-06-10 Martin Sebor <msebor@redhat.com>
9494
9495 PR c/71392
9496 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9497 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9498 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9499 them.
9500 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9501 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9502 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9503 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9504 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9505 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9506 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9507 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9508
9509 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9510
9511 * config/arm/arm.h (pool_vector_label,
9512 return_used_this_function): Remove.
9513
9514 2016-06-10 Jeff Law <law@redhat.com>
9515
9516 PR tree-optimization/71335
9517 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9518 zero length paths here.
9519 (convert_and_register_jump_thread_path): Remove hacks related to
9520 duplicated blocks in the jump thread path.
9521 (fsm_find_control_statement_thread_paths): Avoid putting the same
9522 block on the thread path twice, but ensure the thread path is
9523 unchanged from the caller's point of view.
9524
9525 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
9526
9527 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9528 * predict.def (PRED_LOOP_BRANCH): Remove.
9529
9530 2016-06-10 David Malcolm <dmalcolm@redhat.com>
9531
9532 * Makefile.in (OBJS): Add ggc-tests.o.
9533 (GTFILES): Add ggc-tests.c.
9534 * ggc-tests.c: New file.
9535 * selftest-run-tests.c (selftest::run_tests): Call
9536 selftest::ggc_tests_c_tests.
9537 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9538
9539 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
9540
9541 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9542
9543 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
9544
9545 PR sanitizer/71480
9546 * varasm.c (place_block_symbol): Adjust alignment for asan protected
9547 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9548
9549 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
9550
9551 * profile.c: Include cfgloop.h.
9552 (branch_prob): Compute estimated number of iterations.
9553 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9554 recompute estimate number of iterations from profile.
9555
9556 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9557
9558 PR inline-asm/68843
9559 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9560 must be grouped on top of stack. Don't force early clobber
9561 on ordinary reg outputs.
9562
9563 2016-06-10 Richard Biener <rguenther@suse.de>
9564
9565 * targhooks.c (default_builtin_vectorization_cost): Adjust
9566 vec_construct cost.
9567
9568 2016-06-10 Richard Biener <rguenther@suse.de>
9569
9570 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9571 to fold the RHS to a constant if possible.
9572
9573 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
9574
9575 PR middle-end/71373
9576 * tree-nested.c (convert_nonlocal_omp_clauses)
9577 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9578 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9579 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9580
9581 * gimplify.c (gimplify_adjust_omp_clauses): Discard
9582 OMP_CLAUSE_TILE.
9583 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
9584
9585 * omp-low.c (scan_sharing_clauses): Don't expect
9586 OMP_CLAUSE__CACHE_.
9587
9588 2016-06-10 Alan Hayward <alan.hayward@arm.com>
9589
9590 PR tree-optimization/71407
9591 PR tree-optimization/71416
9592 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
9593 BIT_FIELD_REF type.
9594
9595 2016-06-10 Richard Biener <rguenther@suse.de>
9596
9597 PR middle-end/71477
9598 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
9599
9600 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
9601
9602 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
9603
9604 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
9605 Jiong Wang <jiong.wang@arm.com>
9606
9607 PR rtl-optimization/70751
9608 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
9609 spilled into memory.
9610
9611 2016-06-09 Jonathan Yong <10walls@gmail.com>
9612
9613 Revert:
9614 2015-09-21 Jonathan Yong <10walls@gmail.com>
9615
9616 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9617 sysroot/usr/lib/32api for additional win32 libraries,
9618 fixes failing Cygwin bootstrapping.
9619
9620 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
9621
9622 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
9623 Delete.
9624
9625 2016-06-09 David Malcolm <dmalcolm@redhat.com>
9626
9627 PR bootstrap/71471
9628 * pretty-print.c (pp_indent): Specify that %p is printed in a
9629 host-dependent manner.
9630 (test_pp_format): Remove the test for %p.
9631
9632 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
9633
9634 * config/mips/mips.c (mips_output_jump): Fix formatting.
9635
9636 2016-06-09 Richard Biener <rguenther@suse.de>
9637
9638 PR tree-optimization/71462
9639 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9640 removed blocks.
9641
9642 2016-06-09 Martin Liska <mliska@suse.cz>
9643
9644 * predict.c (dump_prediction): Add new argument.
9645 (enum predictor_reason): New enum.
9646 (struct predictor_hash): New struct.
9647 (predictor_hash::hash): New function.
9648 (predictor_hash::equal): Likewise.
9649 (not_removed_prediction_p): New function.
9650 (prune_predictions_for_bb): Likewise.
9651 (combine_predictions_for_bb): Prune predictions.
9652
9653 2016-06-09 Martin Liska <mliska@suse.cz>
9654
9655 * predict.c (filter_predictions): New function.
9656 (remove_predictions_associated_with_edge): Use the filter
9657 function.
9658 (equal_edge_p): New function.
9659
9660 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
9661
9662 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
9663 Correct usage of @samp vs @option, add @samp where appropriate.
9664 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
9665 Add armv6s-m and document it, as it is no official ARM name.
9666
9667 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9668
9669 * ifcvt.c (struct noce_if_info): Add transform_name field.
9670 (noce_try_move): Set if_info->transform_name to the function name.
9671 (noce_try_ifelse_collapse): Likewise.
9672 (noce_try_store_flag): Likewise.
9673 (noce_try_inverse_constants): Likewise.
9674 (noce_try_store_flag_constants): Likewise.
9675 (noce_try_addcc): Likewise.
9676 (noce_try_store_flag_mask): Likewise.
9677 (noce_try_cmove): Likewise.
9678 (noce_try_cmove_arith): Likewise.
9679 (noce_try_minmax): Likewise.
9680 (noce_try_abs): Likewise.
9681 (noce_try_sign_mask): Likewise.
9682 (noce_try_bitop): Likewise.
9683 (noce_convert_multiple_sets): Likewise.
9684 (noce_process_if_block): Print if_info->transform_name to
9685 dump_file if transformation succeeded.
9686
9687 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9688
9689 * config/arm/cortex-a57.md (cortex_a57_alu):
9690 Handle csel type.
9691
9692 2016-06-08 Martin Sebor <msebor@redhat.com>
9693 Jakub Jelinek <jakub@redhat.com>
9694
9695 PR c++/70507
9696 PR c/68120
9697 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
9698 BUILT_IN_MUL_OVERFLOW_P): New builtins.
9699 * builtins.c: Include gimple-fold.h.
9700 (fold_builtin_arith_overflow): Handle
9701 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
9702 (fold_builtin_3): Likewise.
9703 * doc/extend.texi (Integer Overflow Builtins): Document
9704 __builtin_{add,sub,mul}_overflow_p.
9705
9706 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
9707
9708 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
9709 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
9710
9711 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
9712
9713 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
9714 Rewrite, looking one level down for records and arrays.
9715
9716 2016-06-08 David Malcolm <dmalcolm@redhat.com>
9717
9718 * pretty-print.c: Include "selftest.h".
9719 (pp_format): Fix comment.
9720 (identifier_to_locale): Likewise.
9721 (selftest::test_basic_printing): New function.
9722 (selftest::assert_pp_format): New function.
9723 (selftest::test_pp_format): New function.
9724 (selftest::pretty_print_c_tests): New function.
9725 * selftest-run-tests.c (selftest::run_tests): Call
9726 selftest::pretty_print_c_tests.
9727 * selftest.h (pretty_print_c_tests): New declaration.
9728
9729 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9730
9731 * invoke.texi (max-loop-headers-insns): Document.
9732 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
9733 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
9734 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
9735
9736 2016-06-08 Richard Biener <rguenther@suse.de>
9737
9738 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
9739 on strided SLP loads and fall back to scalar loads in case
9740 we can't chunk them.
9741
9742 2016-06-08 Richard Biener <rguenther@suse.de>
9743
9744 PR tree-optimization/71452
9745 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
9746 type used for the SSA rewrite has enough precision to cover
9747 the dynamic type of the location.
9748
9749 2016-06-08 Jakub Jelinek <jakub@redhat.com>
9750 Richard Biener <rguenther@suse.de>
9751
9752 PR c++/71448
9753 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
9754 the same as DECL_P (base0) for indirect_base0. Use equality_code
9755 in one further place.
9756
9757 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
9758
9759 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
9760 to one word if the field is known to overlap other words.
9761 (extract_bit_field_1): Likewise.
9762 (store_split_bit_field): Remove compensating code.
9763 (extract_split_bit_field): Likewise.
9764
9765 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
9766
9767 PR debug/71432
9768 PR ada/71413
9769 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
9770
9771 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9772
9773 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
9774 VDQF.
9775 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
9776 (arch64_addpv4sf): Delete.
9777 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
9778 "gen_aarch64_addpv4sf".
9779 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
9780 builtin.
9781 (vpadds_f32): Likewise.
9782 (vpaddq_f32): Likewise.
9783 (vpaddq_f64): Likewise.
9784
9785 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9786
9787 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
9788 VALLF.
9789 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
9790 to VALLF. Rename to "fabd<mode>3".
9791 "*fabd_scalar<mode>3): Delete.
9792 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
9793 Use builtin.
9794 (vabdd_f64): Likewise.
9795 (vabd_f32): Likewise.
9796 (vabd_f64): Likewise.
9797 (vabdq_f32): Likewise.
9798 (vabdq_f64): Likewise.
9799
9800 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9801
9802 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
9803 VALLF.
9804 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
9805 "aarch64_rsqrts<mode>".
9806 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
9807 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
9808 builtin.
9809 (vrsqrtsd_f64): Likewise.
9810 (vrsqrts_f32): Likewise.
9811 (vrsqrts_f64): Likewise.
9812 (vrsqrtsq_f32): Likewise.
9813 (vrsqrtsq_f64): Likewise.
9814
9815 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9816
9817 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
9818 VALLF.
9819 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
9820 "aarch64_rsqrte<mode>".
9821 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
9822 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
9823 builtin.
9824 (vrsqrted_f64): Likewise.
9825 (vrsqrte_f32): Likewise.
9826 (vrsqrte_f64): Likewise.
9827 (vrsqrteq_f32): Likewise.
9828 (vrsqrteq_f64): Likewise.
9829
9830 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9831
9832 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
9833 (ucvtf): Likewise.
9834 (fcvtzs): Likewise.
9835 (fcvtzu): Likewise.
9836 * config/aarch64/aarch64-simd.md
9837 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
9838 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
9839 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
9840 Use builtin.
9841 (vcvt_n_f32_u32): Likewise.
9842 (vcvt_n_s32_f32): Likewise.
9843 (vcvt_n_u32_f32): Likewise.
9844 (vcvtq_n_f32_s32): Likewise.
9845 (vcvtq_n_f32_u32): Likewise.
9846 (vcvtq_n_f64_s64): Likewise.
9847 (vcvtq_n_f64_u64): Likewise.
9848 (vcvtq_n_s32_f32): Likewise.
9849 (vcvtq_n_s64_f64): Likewise.
9850 (vcvtq_n_u32_f32): Likewise.
9851 (vcvtq_n_u64_f64): Likewise.
9852 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
9853 (VSDQ_SDI): Likewise.
9854 (fcvt_target): Support V4DI, V4SI and V2SI.
9855 (FCVT_TARGET): Likewise.
9856
9857 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9858
9859 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
9860 (TYPES_BINOP_SUS): Likewise.
9861 (aarch64_simd_builtin_data): Update include file name.
9862 (aarch64_builtins): Likewise.
9863 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
9864 for conversion between scalar float-point and fixed-point.
9865 (ucvtf): Likewise.
9866 (fcvtzs): Likewise.
9867 (fcvtzu): Likewise.
9868 * config/aarch64/aarch64.md
9869 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
9870 pattern for conversion between scalar float to fixed-pointer.
9871 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
9872 (UNSPEC_FCVTZS): New UNSPEC enumeration.
9873 (UNSPEC_FCVTZU): Likewise.
9874 (UNSPEC_SCVTF): Likewise.
9875 (UNSPEC_UCVTF): Likewise.
9876 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
9877 Use builtin.
9878 (vcvtd_n_f64_u64): Likewise.
9879 (vcvtd_n_s64_f64): Likewise.
9880 (vcvtd_n_u64_f64): Likewise.
9881 (vcvtd_n_f32_s32): Likewise.
9882 (vcvts_n_f32_u32): Likewise.
9883 (vcvtd_n_s32_f32): Likewise.
9884 (vcvts_n_u32_f32): Likewise.
9885 * config/aarch64/iterators.md (fcvt_target): Support integer to float
9886 mapping.
9887 (FCVT_TARGET): Likewise.
9888 (FCVT_FIXED2F): New iterator.
9889 (FCVT_F2FIXED): Likewise.
9890 (fcvt_fixed_insn): New define_int_attr.
9891
9892 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9893
9894 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
9895 some statements was removed.
9896
9897 2016-06-08 Alan Hayward <alan.hayward@arm.com>
9898
9899 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
9900 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
9901 (vect_can_advance_ivs_p): likewise.
9902 (vect_update_ivs_after_vectorizer): likewise.
9903 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
9904 (vect_analyze_scalar_cycles_1): likewise.
9905 (vect_analyze_loop_operations): likewise.
9906 (report_vect_op): likewise.
9907 (vect_is_slp_reduction): likewise.
9908 (vect_is_simple_reduction): likewise.
9909 (get_initial_def_for_induction): likewise.
9910 (vect_transform_loop): likewise.
9911 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
9912 (vect_recog_sad_pattern): likewise.
9913 (vect_recog_widen_sum_pattern): likewise.
9914 (vect_recog_widening_pattern): likewise.
9915 (vect_recog_divmod_pattern): likewise.
9916 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
9917 (vect_analyze_slp_instance): likewise.
9918 (vect_transform_slp_perm_load): likewise.
9919 (vect_schedule_slp_instance): likewise.
9920
9921 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9922
9923 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
9924 (return_prediction): PRED_CONST_RETURN predict return as not taken.
9925 * predict.def (PRED_CONTINUE): Change hitrate 50->67
9926 (PRED_LOOP_BRANCH): Document predictor as broken.
9927 (PRED_LOOP_EXIT): Change hitrate 91->92.
9928 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
9929 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
9930 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
9931 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
9932 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
9933 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
9934 (PRED_CALL): Chane hitrate 71->67.
9935 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
9936 (PRED_GOTO): Document as unused right now.
9937 (PRED_CONST_RETURN): Change hitrate 67->69
9938 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
9939 (PRED_NULL_RETURN): Change hitrate 91->90.
9940 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
9941 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
9942 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
9943
9944 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
9945
9946 * config/rs6000/altivec.h: Add __builtin_vec_mul.
9947 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
9948 special case Altivec builtin.
9949 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9950 VSX_BUILTIN_VEC_MUL (replaced with special case code).
9951 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9952 code for ALTIVEC_BUILTIN_VEC_MUL.
9953 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9954 for __builtin_vec_mul.
9955
9956 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
9957
9958 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
9959 -mno-htm.
9960
9961 2016-06-07 David Malcolm <dmalcolm@redhat.com>
9962
9963 * spellcheck.c (selftest::test_find_closest_string): New function.
9964 (spellcheck_c_tests): Call the above.
9965
9966 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9967
9968 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
9969
9970 2016-06-07 Jakub Jelinek <jakub@redhat.com>
9971
9972 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
9973 Yv=Yv,C alternatives.
9974
9975 2016-06-07 Richard Biener <rguenther@suse.de>
9976
9977 PR c/61564
9978 * common.opt (ffast-math): Make Optimization.
9979
9980 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
9981 Prachi Godbole <prachi.godbole@imgtec.com>
9982
9983 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
9984 `fabs' and `fneg' type attributes.
9985 (p5600_fpu_fabs): Add `fmove' to the comment.
9986
9987 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9988
9989 * gimple.c: Include builtins.h
9990 (gimple_inexpensive_call_p): New function.
9991 * gimple.h (gimple_inexpensive_call_p): Declare.
9992 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
9993 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
9994 fix formatting.
9995
9996 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
9997
9998 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
9999 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
10000 warning_at_rich_loc, warning_n, pedwarn, permerror,
10001 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
10002 sorry, fatal_error, internal_error, internal_error_no_backtrace):
10003 Use the above.
10004
10005 2016-06-07 Richard Biener <rguenther@suse.de>
10006
10007 PR tree-optimization/71428
10008 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
10009 BIT_FIELD_REF op vs. load.
10010
10011 2016-06-07 Richard Biener <rguenther@suse.de>
10012
10013 PR middle-end/71423
10014 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
10015 for signed ops.
10016
10017 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
10018
10019 * config/pa/pa.md (call): Generate indirect long calls to non-local
10020 functions on TARGET_64BIT.
10021 (call_value): Likewise.
10022
10023 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
10024
10025 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
10026 pattern and subsequent splitters.
10027 (call_val_reg_64bit_post_reload): Likewise.
10028
10029 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10030
10031 PR middle-end/71408
10032 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
10033 propagate_op_to_single_use.
10034
10035 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10036
10037 PR middle-end/71281
10038 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
10039
10040 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
10041
10042 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
10043 (enum x86_dirflag_state): New enum.
10044 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
10045 (machine_function): Remove needs_cld.
10046 (ix86_current_function_needs_cld): Remove.
10047 * config/i386/i386.c (ix86_set_func_type): Set
10048 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
10049 (ix86_expand_prologue): Do not emit CLD here.
10050 (ix86_dirflag_mode_needed): New function.
10051 (ix86_dirflag_mode_entry): Ditto.
10052 (ix86_mode_needed): Handle X86_DIRFLAG entity.
10053 (ix86_mode_after): Ditto.
10054 (ix86_mode_entry): Ditto.
10055 (ix86_mode_exit): Ditto.
10056 (ix86_emit_mode_set): Ditto.
10057 * config/i386/i386.md (strmov_singleop): Set
10058 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10059 Do not set ix86_current_function_needs_cld.
10060 (rep_mov): Ditto.
10061 (strset_singleop): Ditto.
10062 (rep_stos): Ditto.
10063 (cmpstrnqi_nz_1): Ditto.
10064 (cmpstrnqi_1): Ditto.
10065 (strlenqi_1): Ditto.
10066
10067 2016-06-06 Jakub Jelinek <jakub@redhat.com>
10068
10069 PR tree-optimization/71259
10070 * tree-vect-slp.c (vect_get_constant_vectors): For
10071 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10072 one for constant op, and use COND_EXPR for non-constant.
10073
10074 2016-06-06 David Malcolm <dmalcolm@redhat.com>
10075
10076 * Makefile.in (OBJS): Add function-tests.o,
10077 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10078 selftest-run-tests.o.
10079 (OBJS-libcommon): Add selftest.o.
10080 (OBJS-libcommon-target): Add selftest.o.
10081 (all.internal): Add "selftest".
10082 (all.cross): Likewise.
10083 (selftest): New phony target.
10084 (s-selftest): New target.
10085 (selftest-gdb): New phony target.
10086 (COLLECT2_OBJS): Add selftest.o.
10087 * bitmap.c: Include "selftest.h".
10088 (selftest::test_gc_alloc): New function.
10089 (selftest::test_set_range): New function.
10090 (selftest::test_clear_bit_in_middle): New function.
10091 (selftest::test_copying): New function.
10092 (selftest::test_bitmap_single_bit_set_p): New function.
10093 (selftest::bitmap_c_tests): New function.
10094 * common.opt (fself-test): New.
10095 * diagnostic-show-locus.c: Include "selftest.h".
10096 (make_range): New function.
10097 (test_range_contains_point_for_single_point): New function.
10098 (test_range_contains_point_for_single_line): New function.
10099 (test_range_contains_point_for_multiple_lines): New function.
10100 (assert_eq): New function.
10101 (test_get_line_width_without_trailing_whitespace): New function.
10102 (selftest::diagnostic_show_locus_c_tests): New function.
10103 * et-forest.c: Include "selftest.h".
10104 (selftest::test_single_node): New function.
10105 (selftest::test_simple_tree): New function.
10106 (selftest::test_disconnected_nodes): New function.
10107 (selftest::et_forest_c_tests): New function.
10108 * fold-const.c: Include "selftest.h".
10109 (selftest::assert_binop_folds_to_const): New function.
10110 (selftest::assert_binop_folds_to_nonlvalue): New function.
10111 (selftest::test_arithmetic_folding): New function.
10112 (selftest::fold_const_c_tests): New function.
10113 * function-tests.c: New file.
10114 * gimple.c: Include "selftest.h".
10115 Include "gimple-pretty-print.h".
10116 (selftest::verify_gimple_pp): New function.
10117 (selftest::test_assign_single): New function.
10118 (selftest::test_assign_binop): New function.
10119 (selftest::test_nop_stmt): New function.
10120 (selftest::test_return_stmt): New function.
10121 (selftest::test_return_without_value): New function.
10122 (selftest::gimple_c_tests): New function.
10123 * hash-map-tests.c: New file.
10124 * hash-set-tests.c: New file.
10125 * input.c: Include "selftest.h".
10126 (selftest::assert_loceq): New function.
10127 (selftest::test_accessing_ordinary_linemaps): New function.
10128 (selftest::test_unknown_location): New function.
10129 (selftest::test_builtins): New function.
10130 (selftest::test_reading_source_line): New function.
10131 (selftest::input_c_tests): New function.
10132 * rtl-tests.c: New file.
10133 * selftest-run-tests.c: New file.
10134 * selftest.c: New file.
10135 * selftest.h: New file.
10136 * spellcheck.c: Include "selftest.h".
10137 (selftest::levenshtein_distance_unit_test_oneway): New function,
10138 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10139 (selftest::levenshtein_distance_unit_test): Likewise.
10140 (selftest::spellcheck_c_tests): Likewise.
10141 * toplev.c: Include selftest.h.
10142 (toplev::run_self_tests): New.
10143 (toplev::main): Handle -fself-test.
10144 * toplev.h (toplev::run_self_tests): New.
10145 * tree.c: Include "selftest.h".
10146 (selftest::test_integer_constants): New function.
10147 (selftest::test_identifiers): New function.
10148 (selftest::test_labels): New function.
10149 (selftest::tree_c_tests): New function.
10150 * tree-cfg.c: Include "selftest.h".
10151 (selftest::push_fndecl): New function.
10152 (selftest::test_linear_chain): New function.
10153 (selftest::test_diamond): New function.
10154 (selftest::test_fully_connected): New function.
10155 (selftest::tree_cfg_c_tests): New function.
10156 * vec.c: Include "selftest.h".
10157 (selftest::safe_push_range): New function.
10158 (selftest::test_quick_push): New function.
10159 (selftest::test_safe_push): New function.
10160 (selftest::test_truncate): New function.
10161 (selftest::test_safe_grow_cleared): New function.
10162 (selftest::test_pop): New function.
10163 (selftest::test_safe_insert): New function.
10164 (selftest::test_ordered_remove): New function.
10165 (selftest::test_unordered_remove): New function.
10166 (selftest::test_block_remove): New function.
10167 (selftest::reverse_cmp): New function.
10168 (selftest::test_qsort): New function.
10169 (selftest::vec_c_tests): New function.c.
10170 * wide-int.cc: Include selftest.h and wide-int-print.h.
10171 (selftest::from_int <wide_int>): New function.
10172 (selftest::from_int <offset_int>): New function.
10173 (selftest::from_int <widest_int>): New function.
10174 (selftest::assert_deceq): New function.
10175 (selftest::assert_hexeq): New function.
10176 (selftest::test_printing <VALUE_TYPE>): New function template.
10177 (selftest::test_ops <VALUE_TYPE>): New function template.
10178 (selftest::test_comparisons <VALUE_TYPE>): New function template.
10179 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10180 template.
10181 (selftest::wide_int_cc_tests): New function.
10182
10183 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10184
10185 PR middle-end/37780
10186 * ifcvt.c (noce_try_ifelse_collapse): New function.
10187 Declare prototype.
10188 (noce_process_if_block): Call noce_try_ifelse_collapse.
10189 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10190 (simplify_ternary_operation): Use the above to simplify
10191 conditional CLZ/CTZ expressions.
10192
10193 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10194
10195 PR middle-end/37780
10196 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10197 define_insn_and_split.
10198
10199 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10200
10201 PR middle-end/37780
10202 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10203
10204 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
10205
10206 PR c/24414
10207 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10208 Implicitly clobber memory for basic asm with non-empty assembler
10209 string. Use targetm.md_asm_adjust also here.
10210 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10211 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10212 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10213 non-empty assembler string.
10214 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10215 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10216 (decode_asm_operands): Handle basic asm in PARALLEL block.
10217 (extract_insn): Handle basic asm in PARALLEL block.
10218 * doc/extend.texi: Mention new behavior of basic asm.
10219 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10220 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10221 branch_needs_nop_p): Use asm_noperands.
10222
10223 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
10224
10225 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10226 Include the M7 SPARC DFA scheduler.
10227 New attribute v3pipe.
10228 Annotate insns with v3pipe where appropriate.
10229 Define cpu_feature vis4.
10230 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10231 Add (V8QI "8") to vbits.
10232 Add insns {add,sub}v8qi3
10233 Add insns ss{add,sub}v8qi3
10234 Add insns us{add,sub}{v8qi,v4hi}3
10235 Add insns {min,max}{v8qi,v4hi,v2si}3
10236 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10237 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10238 * config/sparc/niagara4.md: Add a comment explaining the
10239 discrepancy between the documented latenty numbers and the
10240 implemented ones.
10241 * config/sparc/niagara7.md: New file.
10242 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10243 supports SPARC5 and VIS 4.0 instructions.
10244 * configure: Regenerate.
10245 * config.in: Likewise.
10246 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10247 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10248 TARGET_CPU_niagara7.
10249 (ASM_CPU64_DEFAULT_SPEC): Likewise.
10250 (CPP_CPU_SPEC): Handle niagara7.
10251 (ASM_CPU_SPEC): Likewise.
10252 * config/sparc/sparc-opts.h (processor_type): Add
10253 PROCESSOR_NIAGARA7.
10254 (mvis4): New option.
10255 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10256 (AS_NIAGARA7_FLAG): Define.
10257 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10258 (CPP_CPU64_DEFAULT_SPEC): Likewise.
10259 (CPP_CPU_SPEC): Handle niagara7.
10260 (ASM_CPU_SPEC): Likewise.
10261 * config/sparc/sparc.c (niagara7_costs): Define.
10262 (sparc_option_override): Handle niagara7 and adjust cache-related
10263 parameters with better values for niagara cpus. Also support VIS4.
10264 (sparc32_initialize_trampoline): Likewise.
10265 (sparc_use_sched_lookahead): Likewise.
10266 (sparc_issue_rate): Likewise.
10267 (sparc_register_move_cost): Likewise.
10268 (dump_target_flag_bits): Support VIS4.
10269 (sparc_vis_init_builtins): Likewise.
10270 (sparc_builtins): Likewise.
10271 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10272 VIS4 4.0.
10273 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10274 UltraSparc M7.
10275 * config/sparc/sparc.opt (sparc_processor_type): New value
10276 niagara7.
10277 * config/sparc/visintrin.h (__attribute__): Prototypes for the
10278 VIS4 builtins.
10279 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10280 -mvis4.
10281 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10282 VIS4 builtins.
10283
10284 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
10285
10286 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10287
10288 2016-06-06 Richard Biener <rguenther@suse.de>
10289
10290 PR tree-optimization/71398
10291 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10292 remove edges.
10293
10294 2016-06-05 James Bowman <james.bowman@ftdichip.com>
10295
10296 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10297 ft32_expand_prolog, ft32_expand_epilogue):
10298 Handle pretend_args.
10299 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10300 * config/ft32/ft32.md: Add pretend_returner.
10301
10302 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
10303
10304 PR target/71389
10305 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10306 Copy op1 RTX to avoid invalid sharing.
10307 (ix86_expand_vector_move_misalign): Ditto.
10308
10309 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
10310
10311 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10312 ATTRIBUTE_UNUSED.
10313
10314 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
10315
10316 * predict.c (predicted_by_loop_heuristics_p): New function.
10317 (predict_iv_comparison): Use it.
10318 (predict_loops): Walk from innermost loops; do not predict edges
10319 leaving multiple loops multiple times; implement
10320 PRED_LOOP_ITERATIONS_MAX heuristics.
10321 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10322
10323 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
10324
10325 * cfg.c (check_bb_profile): Do not report mismatched profiles when
10326 only edges out of BB are EH edges.
10327
10328 2016-06-04 Martin Sebor <msebor@redhat.com>
10329 Marcin Baczyński <marbacz@gmail.com>
10330
10331 PR c/48116
10332 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10333 a void expression in a void function.
10334
10335 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
10336
10337 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10338 aux; dump reasons of decisions.
10339 (should_duplicate_loop_header_p): Likewise.
10340 (do_while_loop_p): Likewise.
10341 (ch_base::copy_headers): Dump asi num insns duplicated.
10342
10343 2016-06-04 Jakub Jelinek <jakub@redhat.com>
10344
10345 PR tree-optimization/71405
10346 * tree-ssa.c (execute_update_addresses_taken): For clobber with
10347 incompatible type, build a new clobber with the right type instead
10348 of building a VIEW_CONVERT_EXPR around it.
10349
10350 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
10351
10352 PR tree-optimization/52171
10353 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10354 by_pieces_ninsns instead of move_by_pieces_ninsns.
10355
10356 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
10357
10358 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10359 for reg+reg addressing mode.
10360
10361 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10362
10363 * rs6000-c.c (c/c-tree.h): Add #include.
10364 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10365 in C++ when found in the base position of vec_ld or vec_st.
10366
10367 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
10368
10369 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10370 use of profile unless profile status is PROFILE_READ.
10371 * profile.c (compute_branch_probabilities): Set profile status
10372 only after reporting predictor hitrates.
10373
10374 2016-06-03 Joseph Myers <joseph@codesourcery.com>
10375
10376 PR target/71276
10377 PR target/71277
10378 * common.opt (ffp-int-builtin-inexact): New option.
10379 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10380 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10381 (ceil@var{m}2): Document dependence on this option.
10382 * ipa-inline-transform.c (inline_call): Handle
10383 flag_fp_int_builtin_inexact.
10384 * ipa-inline.c (can_inline_edge_p): Likewise.
10385 * config/i386/i386.md (rintxf2): Do not test
10386 flag_unsafe_math_optimizations.
10387 (rint<mode>2_frndint): New define_insn.
10388 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10389 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
10390 for 387 instead of extending and truncating.
10391 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10392 !flag_trapping_math instead of flag_unsafe_math_optimizations.
10393 Change to frndint<mode>2_<rounding>.
10394 (frndintxf2_<rounding>_i387): Likewise. Change to
10395 frndint<mode>2_<rounding>_i387.
10396 (<rounding_insn>xf2): Likewise.
10397 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10398 !flag_trapping_math instead of flag_unsafe_math_optimizations for
10399 x87. Test TARGET_ROUND || !flag_trapping_math ||
10400 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10401 SSE. Use ROUND_NO_EXC in constant operand of
10402 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
10403 for 387 instead of extending and truncating.
10404
10405 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
10406 Julia Koval <julia.koval@intel.com>
10407
10408 PR target/66960
10409 PR target/67630
10410 PR target/67634
10411 PR target/67841
10412 PR target/68037
10413 PR target/68618
10414 PR target/68661
10415 PR target/69575
10416 PR target/69596
10417 PR target/69734
10418 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10419 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10420 all registers, except for function return registers if there are
10421 no caller-saved registers.
10422 (ix86_set_func_type): New function.
10423 (ix86_set_current_function): Call ix86_set_func_type to set
10424 no_caller_saved_registers and func_type. Call reinit_regs if
10425 caller-saved registers are changed. Don't allow MPX, SSE, MMX
10426 nor x87 instructions in interrupt handler nor function with
10427 no_caller_saved_registers attribute.
10428 (ix86_function_ok_for_sibcall): Return false if there are no
10429 caller-saved registers.
10430 (type_natural_mode): Don't warn ABI change for MMX in interrupt
10431 handler.
10432 (ix86_function_arg_advance): Skip for callee in interrupt handler.
10433 (ix86_function_arg): Return special arguments in interrupt handler.
10434 (ix86_promote_function_mode): Promote pointer to word_mode only
10435 for normal functions.
10436 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10437 interrupt handler.
10438 (ix86_epilogue_uses): New function.
10439 (ix86_hard_regno_scratch_ok): Likewise.
10440 (ix86_save_reg): Preserve all registers in interrupt handler
10441 after reload. Preserve all registers, except for function return
10442 registers, if there are no caller-saved registers after reload.
10443 (find_drap_reg): Always use callee-saved register if there are
10444 no caller-saved registers.
10445 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10446 for interrupt handler.
10447 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10448 Emit cld instruction if stringops are used in interrupt handler
10449 or interrupt handler isn't a leaf function.
10450 (ix86_expand_epilogue): Generate interrupt return for interrupt
10451 handler and pop the 'ERROR_CODE' off the stack before interrupt
10452 return in exception handler.
10453 (ix86_expand_call): Disallow calling interrupt handler directly.
10454 If there are no caller-saved registers, mark all registers that
10455 are clobbered by the call which returns as clobbered.
10456 (ix86_handle_no_caller_saved_registers_attribute): New function.
10457 (ix86_handle_interrupt_attribute): Likewise.
10458 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10459 attributes.
10460 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10461 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10462 accumulation in interrupt function if stack may be realigned to
10463 avoid DRAP.
10464 (EPILOGUE_USES): New.
10465 (function_type): New enum.
10466 (machine_function): Add func_type and no_caller_saved_registers.
10467 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10468 (interrupt_return): New pattern.
10469 * doc/extend.texi: Document x86 interrupt and
10470 no_caller_saved_registers attributes.
10471
10472 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
10473
10474 PR tree-optimization/52171
10475 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10476 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
10477 Look for constant strings. Move some code to emit_block_cmp_hints
10478 and use it.
10479 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10480 * defaults.h (COMPARE_MAX_PIECES): New macro.
10481 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10482 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10483 (clear_by_pieces_1): Don't declare. Move definition before use.
10484 (can_do_by_pieces): New static function.
10485 (can_move_by_pieces): Use it. Return bool.
10486 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
10487 OP. All callers changed. Handle COMPARE_BY_PIECES.
10488 (class pieces_addr); New.
10489 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10490 pieces_addr::adjust, pieces_addr::increment_address,
10491 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10492 functions for it.
10493 (class op_by_pieces_d): New.
10494 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10495 functions for it.
10496 (class move_by_pieces_d, class compare_by_pieces_d,
10497 class store_by_pieces_d): New subclasses of op_by_pieces_d.
10498 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10499 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10500 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10501 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10502 compare_by_pieces_d::finish_mode): New member functions.
10503 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10504 functions.
10505 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10506 (emit_block_cmp_hints): New function.
10507 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10508 use the newly defined classes.
10509 * expr.h (by_pieces_constfn): New typedef.
10510 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10511 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10512 (move_by_pieces_ninsns): Don't declare.
10513 (can_move_by_pieces): Change return value to bool.
10514 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10515 (compare_by_pieces_branch_ratio): New hook.
10516 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10517 (by_pieces_ninsns): Declare.
10518 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10519 COMPARE_BY_PIECES.
10520 (default_compare_by_pieces_branch_ratio): New function.
10521 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10522 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10523 * doc/tm.texi: Regenerate.
10524 * tree-ssa-strlen.c: Include "builtins.h".
10525 (handle_builtin_memcmp): New static function.
10526 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10527 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10528
10529 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10530
10531 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10532 relevant stmts which are simple and invariant.
10533 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10534 instead of simple and invariant
10535
10536 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10537
10538 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10539 (vectorizable_reduction): Check for new relevant state.
10540 (vectorizable_live_operation): vectorize live stmts using
10541 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
10542 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10543 (vect_stmt_relevant_p): Check for stmts which are only used live.
10544 (process_use): Use of a stmt does not inherit it's live value.
10545 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10546 (vect_analyze_stmt): Check for new relevant state.
10547 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10548 outside the loop, but not inside it.
10549
10550 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10551
10552 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10553 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10554 (vect_get_vec_def_for_operand): Split out code.
10555
10556 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10557
10558 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10559
10560 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10561
10562 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10563
10564 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10565
10566 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10567
10568 2016-06-03 Jakub Jelinek <jakub@redhat.com>
10569
10570 PR middle-end/71387
10571 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10572 to noreturn e->callee->decl that has void return type and void
10573 arguments, adjust gimple_call_fntype and remove lhs even if it had
10574 previously addressable type.
10575
10576 2016-06-02 Jeff Law <law@redhat.com>
10577
10578 PR tree-optimization/71328
10579 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10580 error when checking for a jump back onto the copied path.
10581
10582 2016-06-02 David Malcolm <dmalcolm@redhat.com>
10583
10584 * config/microblaze/microblaze.c (get_branch_target): Add return
10585 NULL_RTX for the non-CALL_P case.
10586 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
10587 (insert_wic): Remove unused local "j".
10588
10589 2016-06-02 Martin Liska <mliska@suse.cz>
10590
10591 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
10592
10593 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
10594 Julia Koval <julia.koval@intel.com>
10595
10596 * function.c (assign_parm_setup_stack): Force source into a
10597 register if needed.
10598 * target.def (function_incoming_arg): Update documentation to
10599 allow arbitrary address computation based on hard register.
10600 * doc/tm.texi: Regenerated.
10601
10602 2016-06-02 Martin Liska <mliska@suse.cz>
10603
10604 * predict.c (combine_predictions_for_bb): Fix first match in
10605 cases where a first predictor contains more than one occurence
10606 in list of predictors. Take the best value in such case.
10607
10608 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10609
10610 PR rtl-optimization/71295
10611 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
10612 offset would go over the size of the inner mode reject it.
10613
10614 2016-06-02 Jakub Jelinek <jakub@redhat.com>
10615
10616 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
10617 x=x,x and v=v,m instead of x=x,m.
10618
10619 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
10620 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
10621 alternative to v=rm,C.
10622
10623 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
10624 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
10625 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
10626 instead of vex for the last two above mentioned alternatives.
10627
10628 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10629
10630 PR target/70830
10631 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
10632
10633 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
10634
10635 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
10636
10637 2016-06-01 David Malcolm <dmalcolm@redhat.com>
10638
10639 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
10640 from int to unsigned.
10641
10642 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
10643
10644 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
10645 alternatives, eliminating preferred register class. Add support
10646 for the MTVSRDD instruction in ISA 3.0.
10647 (vsx_splat_v4si_internal): Use splat_input_operand instead of
10648 reg_or_indexed_operand.
10649 (vsx_splat_v4sf_internal): Likewise.
10650
10651 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
10652
10653 PR target/71186
10654 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
10655 for loading up all 0's or all 1's.
10656
10657 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
10658
10659 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
10660
10661 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
10662
10663 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
10664 extension.
10665 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
10666 * gcc.c (set_source_date_epoch_envvar): New function, sets
10667 the SOURCE_DATE_EPOCH environment variable to the current time.
10668
10669 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
10670
10671 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
10672 the factor for live Phi nodes.
10673
10674 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
10675
10676 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
10677 * tree-parloops.c (parallelize_loops): likewise.
10678 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
10679 tree_unswitch_outer_loop): likewise.
10680
10681 2016-06-01 Jakub Jelinek <jakub@redhat.com>
10682
10683 PR middle-end/71371
10684 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
10685 around creation of the temporary.
10686
10687 2016-06-01 Richard Biener <rguenther@suse.de>
10688
10689 PR tree-optimization/71366
10690 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
10691 (unloop_loops): Move removing edges here ...
10692 (try_unroll_loop_completely): ... from here.
10693 (try_peel_loop): ... and here.
10694 (tree_unroll_loops_completely_1): Track parent loops via
10695 bitmap of header BBs.
10696 (tree_unroll_loops_completely): Adjust for that.
10697
10698 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10699
10700 * config/rs6000/altivec.h (vec_slv): New macro.
10701 (vec_srv): New macro.
10702 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
10703 (UNSPEC_VSRV): New value.
10704 (vslv): New insn.
10705 (vsrv): New insn.
10706 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
10707 (vsrv): New builtin definition.
10708 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
10709 define argument types for new builtin.
10710 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
10711 new builtin.
10712 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
10713 functions.
10714
10715 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
10716 Jocelyn Mayer <l_indien@magic.fr>
10717
10718 PR target/67310
10719 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
10720 detect processor family for signature_CENTAUR_ebx.
10721 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
10722 signature_CENTAUR_ebx.
10723 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
10724 <default>: Pass x86-64 for has_longmode.
10725
10726 2016-06-01 Nathan Sidwell <nathan@acm.org>
10727
10728 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
10729 undefined weak.
10730
10731 2016-06-01 Richard Biener <rguenther@suse.de>
10732
10733 PR tree-optimization/71261
10734 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
10735 of stmts successfully put in the bool pattern. Remove
10736 single-use restriction.
10737 (adjust_bool_pattern_cast): Add cast at the use site via the
10738 pattern def sequence.
10739 (adjust_bool_pattern): Remove recursion, maintain a hash-map
10740 of patterned defs. Use the pattern def seqence instead of
10741 multiple independent patterns.
10742 (sort_after_uid): New qsort compare function.
10743 (adjust_bool_stmts): New function to process stmts in the bool
10744 pattern in IL order.
10745 (vect_recog_bool_pattern): Adjust.
10746 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
10747 (ifcvt_walk_pattern_tree): Likewise.
10748 (stmt_is_root_of_bool_pattern): Likewise.
10749 (ifcvt_repair_bool_pattern): Likewise.
10750 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
10751
10752 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
10753
10754 * loop-unroll.c (decide_unroll_constant_iterations,
10755 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
10756 likely upper bounds.
10757 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
10758
10759 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
10760
10761 * tree-core.h (enum omp_clause_code): Remove
10762 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
10763
10764 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10765
10766 * config/arm/sync.md (arm_store_exclusive<mode>):
10767 Use 'H' output modifier on operands[2] rather than creating a new
10768 entry in out-of-bounds memory of the operands array.
10769 (arm_store_release_exclusivedi): Likewise.
10770
10771 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10772
10773 * config/arm/arm.c (arm_fusion_enabled_p): New function.
10774 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
10775 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
10776 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
10777
10778 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
10779
10780 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
10781 into account live statements for mask producers.
10782
10783 2016-06-01 Richard Biener <rguenther@suse.de>
10784
10785 PR tree-optimization/71311
10786 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
10787 restrict to non-INTEGER_CST @0.
10788
10789 2016-06-01 Richard Biener <rguenther@suse.de>
10790
10791 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
10792 (relational patterns): Use :c to avoid pattern duplications.
10793
10794 2016-06-01 Richard Biener <rguenther@suse.de>
10795
10796 * genmatch.c (comparison_code_p): New predicate.
10797 (swap_tree_comparison): New function.
10798 (commutate): Add for_vec parameter to append new for entries.
10799 Support commutating relational operators by swapping it alongside
10800 operands.
10801 (lower_commutative): Adjust.
10802 (dt_simplify::gen): Do not pass artificial operators to gen
10803 functions.
10804 (decision_tree::gen): Do not add artificial operators as parameters.
10805 (parser::parse_expr): Verify operator commutativity when :c is
10806 applied. Allow :C to override this.
10807 * match.pd: Adjust patterns to use :C instead of :c where required.
10808
10809 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
10810
10811 PR tree-optimization/71077
10812 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
10813 the combining step, use boolean_false_node and boolean_true_node
10814 as the designated false/true return values.
10815
10816 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
10817
10818 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
10819 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
10820 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
10821 PRED_LOOP_EXIT.
10822
10823 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
10824
10825 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
10826 of flags impliying the register renaming.
10827 * toplev.c (process_options): Do not imply flag_rename_registers with
10828 loop peeling.
10829
10830 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10831
10832 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
10833 default implementation.
10834
10835 2016-05-31 Nathan Sidwell <nathan@acm.org>
10836
10837 * dwarf2out.c (cur_line_info_table): Add GTY marker.
10838
10839 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10840
10841 * config/sh/constraints.md (b): Remove constraint.
10842 * config/sh/predicates.md (arith_reg_operand): Remove
10843 TARGET_REGISTER_P.
10844 * config/sh/sh-modes.def (PDI): Remove.
10845 * config/sh/sh.c (sh_target_reg_class,
10846 sh_optimize_target_register_callee_saved): Remove functions.
10847 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
10848 (sh_expand_epilogue): Update comment.
10849 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
10850 sh_secondary_reload): Remove TARGET_REGS related code.
10851 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
10852 TARGET_REGISTER_P): Remove macros.
10853 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
10854 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
10855 TR1_REG, TR2_REG): Remove constants.
10856 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
10857
10858 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10859
10860 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
10861 define_expand patterns.
10862 (adddi3_compact): Rename to adddi3.
10863 (subdi3_compact): Rename to subdi3.
10864 (*negdi2): Rename to negdi2.
10865 (*abs<mode>2): Rename to abs<mode>2.
10866
10867 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10868
10869 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
10870 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
10871 (atomic_sub_fetchsi): ... this new pattern.
10872 (mvtc): Add CC_REG clobber.
10873
10874 2016-05-31 Marek Polacek <polacek@redhat.com>
10875
10876 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
10877
10878 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10879
10880 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
10881 aarch64_fusion_enabled_p to check for fusion capabilities.
10882
10883 2016-05-31 Richard Biener <rguenther@suse.de>
10884
10885 PR tree-optimization/71352
10886 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
10887 minus one and a negate.
10888
10889 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10890
10891 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
10892 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
10893 Delete prototype.
10894 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
10895 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
10896 Remove use of aarch64_simd_attr_length_move, set length attribute
10897 directly.
10898 (*aarch64_be_movoi): Likewise.
10899 (*aarch64_be_movci): Likewise.
10900 (*aarch64_be_movxi): Likewise.
10901
10902 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
10903
10904 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
10905 It no longer does that.
10906 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
10907
10908 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
10909
10910 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
10911 attribute __unused__.
10912
10913 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10914
10915 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
10916 * config/arm/arm.c (arm_arch_thumb1): Define.
10917 (arm_option_override): Initialize arm_arch_thumb1.
10918 * config/arm/arm.h (arm_arch_thumb1): Declare.
10919 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
10920 support Thumb-1 ISA.
10921
10922 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
10923
10924 PR target/71346
10925 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
10926 `Yv' for scalar operand.
10927
10928 2016-05-31 Tom de Vries <tom@codesourcery.com>
10929
10930 PR tree-optimization/69068
10931 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
10932 phis with more than two args.
10933
10934 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
10935
10936 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
10937 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
10938 target.
10939
10940 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
10941
10942 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
10943 tune_64.
10944 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10945 support on SPARC.
10946 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
10947 cpu_32, cpu_64, tune_32 and tune_64.
10948 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
10949
10950 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
10951
10952 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
10953
10954 2016-05-30 Andi Kleen <ak@linux.intel.com>
10955
10956 * auto-profile.c (read_profile): Replace asserts with errors
10957 when file does not exist.
10958 * gcov-io.c (gcov_read_words): Dito.
10959
10960 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10961
10962 * tree-cfg.c (print_loop): Print likely upper bounds.
10963
10964 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10965
10966 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
10967 * opts.c (default_options): Enable peel loops at -O3.
10968 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
10969 (try_peel_loop): Do not re-peel already peeled loops;
10970 use likely upper bounds; fix profile updating.
10971 (pass_complete_unroll::execute): Initialize peeled_loops.
10972
10973 2016-05-30 Martin Liska <mliska@suse.cz>
10974
10975 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
10976 computed costs by frequency of BB they belong to.
10977 (get_scaled_computation_cost_at): New function.
10978
10979 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
10980 Marc Glisse <marc.glisse@inria.fr>
10981
10982 PR tree-optimization/71289
10983 * match.pd (-1 / B < A, A > -1 / B): New transformations.
10984
10985 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10986
10987 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
10988
10989 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10990
10991 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
10992 for peeled copies; avoid underflow when updating estimates; correctly
10993 scale loop profile.
10994
10995 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
10996
10997 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
10998 r236875. Corrected oe3 to oe2 as obvious.
10999
11000 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
11001
11002 PR middle-end/71269
11003 PR middle-end/71252
11004 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
11005 that inserted stmt will not dominate stmts that defines its operand.
11006 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
11007 (rewrite_expr_tree_parallel): Likewise.
11008
11009 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
11010
11011 PR middle-end/71252
11012 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
11013 all fields including stmt_to_insert are swapped.
11014
11015 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
11016
11017 * predict.h (force_edge_cold): Declare.
11018 * predict.c (force_edge_cold): New function.
11019 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
11020 updating.
11021 (canonicalize_loop_induction_variables): Fix formating.
11022
11023 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
11024
11025 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
11026 (visium_expand_copysign): Use gen_int_mode directly.
11027 (visium_compute_frame_size): Minor tweaks.
11028
11029 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
11030
11031 * tree-vect-loop.c (vect_analyze_loop_2): Use
11032 likely_max_stmt_executions_int.
11033
11034 2016-05-30 Tom de Vries <tom@codesourcery.com>
11035
11036 PR tree-optimization/69067
11037 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
11038
11039 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
11040
11041 PR target/71245
11042 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11043 New peepholes to remove unneeded fild/fistp pairs.
11044 (define_peephole2 atomic_loaddi_fpu): Ditto.
11045
11046 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11047
11048 * predict.c (maybe_hot_frequency_p): Avoid division.
11049
11050 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
11051
11052 * doc/install.texi: Use https for shop.fsf.org.
11053
11054 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11055
11056 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11057 likely_max_stmt_executions_int.
11058
11059 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11060
11061 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11062 likely_max_stmt_executions_int.
11063
11064 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11065
11066 * profile.c (compute_branch_probabilities): Do not report hitrates
11067 here.
11068 (branch_prob): Report hitrates here.
11069 * predict.c (gimple_predict_edge): Do not assert profile status;
11070 fix formatting issues.
11071
11072 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11073
11074 * predict.c (edge_predicted_by_p): New function.
11075 (predict_paths_for_bb): Do not put multiple predictions of the same type
11076 on one edge.
11077
11078 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11079
11080 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11081 commit.
11082
11083 2016-05-28 Alan Modra <amodra@gmail.com>
11084
11085 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11086
11087 2016-05-28 Alan Modra <amodra@gmail.com>
11088
11089 PR rtl-optimization/71275
11090 * ira.c (ira): Free dominance info.
11091
11092 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
11093
11094 * doc/sourcebuild.texi: New address for upstream Go repository.
11095
11096 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
11097
11098 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11099 (TARGET_ARM_V7M): Likewise.
11100
11101 2016-05-26 Jeff Law <law@redhat.com>
11102
11103 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11104 (thread_across_edge): Remove calls to find_jump_threads_backwards.
11105 * passes.def: Add jump threading passes before DOM/VRP.
11106 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11107 argument to a basic block from an edge. Remove tests which are
11108 handled elsewhere.
11109 (pass_data_thread_jumps, class pass_thread_jumps): New.
11110 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11111 (make_pass_thread_jumps): Likewise.
11112 * tree-pass.h (make_pass_thread_jumps): Declare.
11113
11114 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
11115
11116 * config/visium/visium-protos.h (split_double_move): Rename into...
11117 (visium_split_double_move): ...this.
11118 (visium_split_double_add): Declare.
11119 * config/visium/visium.c (split_double_move): Rename into...
11120 (visium_split_double_move): ...this.
11121 (visium_split_double_add): New function.
11122 (visium_expand_copysign): Renumber operands for consistency.
11123 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11124 (DFmode move splitter): Likewise.
11125 (*addi3_insn): Split by means of visium_split_double_add.
11126 (*adddi3_insn_flags): Delete.
11127 (*plus_plus_sltu<subst_arith>): New insn.
11128 (*subdi3_insn): Split by means of visium_split_double_add.
11129 (subdi3_insn_flags): Delete.
11130 (*minus_minus_sltu<subst_arith>): New insn.
11131 (*negdi2_insn): Split by means of visium_split_double_add.
11132 (*negdi2_insn_flags): Delete.
11133
11134 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
11135
11136 * configure.ac: Treat a --with-headers option without argument
11137 the same as the default (i.e. consult sys-include directory).
11138 * configure: Regenerate.
11139
11140 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11141
11142 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11143 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11144 prototype.
11145 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11146 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
11147
11148 2016-05-27 Jiong Wang <jiong.wang@arm.com>
11149
11150 PR target/63596
11151 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11152 tree-stdarg analysis results.
11153 (aarch64_setup_incoming_varargs): Likewise.
11154
11155 2016-05-27 Jiong Wang <jiong.wang@arm.com>
11156
11157 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11158 va_list_gpr_counter_field and va_list_fpr_counter_field.
11159
11160 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
11161
11162 PR67609
11163 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11164 * config/aarch64/aarch64.c
11165 (aarch64_cannot_change_mode_class): Remove function.
11166 * config/aarch64/aarch64-protos.h
11167 (aarch64_cannot_change_mode_class): Remove.
11168
11169 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
11170
11171 * cfgloop.c (record_niter_bound): Record likely upper bounds.
11172 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11173 get_likely_max_loop_iterations_int): New.
11174 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11175 any_likely_upper_bound.
11176 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11177 Declare.
11178 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11179 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11180 upper bound.
11181 (unroll_loop_constant_iterations): Likewise.
11182 (unroll_loop_runtime_iterations): Likewise.
11183 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11184 * lto-streamer-out.c (output_cfg): Likewise.
11185 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11186 bounds.
11187 (canonicalize_loop_induction_variables): Dump likely upper bounds.
11188 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11189 (likely_max_loop_iterations): New.
11190 (likely_max_loop_iterations_int): New.
11191 (likely_max_stmt_executions): New.
11192 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11193 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11194 likely_max_stmt_executions): Declare.
11195
11196 2016-05-27 Marek Polacek <polacek@redhat.com>
11197
11198 PR middle-end/71308
11199 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11200
11201 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11202
11203 * config/s390/s390.md (2x risbg splitters): Use
11204 reg_overlap_mentioned_p instead of rtx_equal_p.
11205
11206 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11207
11208 * combine.c (make_compound_operation): Take known zero bits into
11209 account when checking for possible zero_extend.
11210
11211 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11212
11213 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11214 Use const_int_operand for operand 2 predicate. Simplify expand code
11215 as a result.
11216
11217 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
11218
11219 PR middle-end/71279
11220 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11221 into comparison.
11222
11223 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11224
11225 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11226 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11227 that returns CC_SESWPmode and CC_ZESWPmode.
11228 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11229 and CC_SESWPmode.
11230 (aarch64_rtx_costs): Likewise.
11231
11232 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11233
11234 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11235 for ISA 3.0 min/max support.
11236 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11237 conditional move support.
11238 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11239 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11240 available.
11241 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11242 conditional moves where the comparison type is different from move
11243 type.
11244 (fp_minmax): New code iterator for smin/smax.
11245 (minmax): New code attributes for min/max.
11246 (SMINMAX): Likewise.
11247 (smax<mode>3): Combine min, max insns into one insn using the
11248 fp_minmax code iterator. Add support for ISA 3.0 min/max
11249 instructions that don't need -ffast-math.
11250 (s<minmax><mode>3): Likewise.
11251 (smax<mode>3_vsx): Likewise.
11252 (smin<mode>3): Likewise.
11253 (s<minmax><mode>3_vsx): Likewise.
11254 (smin<mode>3_vsx): Likewise.
11255 (pre-VSX min/max splitters): Likewise.
11256 (s<minmax><mode>3_fpr): Likewise.
11257 (movsfcc): Rewrite floating point conditional moves to combine
11258 SFmode/DFmode into a single insn.
11259 (mov<mode>cc): Likewise.
11260 (movdfcc): Likewise.
11261 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11262 SFDF2 iterators to handle all combinations.
11263 (fseldfsf4): Likewise.
11264 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11265 (fseldfdf4): Likewise.
11266 (fselsfdf4): Likewise.
11267 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11268 comparison instructions that set a 0/-1 mask, and use it for
11269 floating point conditional move via XXSEL.
11270 (fpmask<mode>): Likewise.
11271 (xxsel<mode>): Likewise.
11272 * config/rs6000/predicates.md (min_max_operator): Delete, no
11273 longer used.
11274 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11275 instructions that generate a 0/-1 mask for use with XXSEL.
11276 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11277 say whether floating point min/max is available, either through
11278 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11279 (TARGET_MINMAX_DF): Likewise.
11280
11281 2016-05-27 Alan Modra <amodra@gmail.com>
11282
11283 PR rtl-optimization/71275
11284 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11285 for update_equiv_regs and combine_and_move_insns.
11286
11287 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
11288
11289 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11290 if_then_else or cond RTXes to calculate attribute value.
11291 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11292 <attr "length_immediate>: Ditto.
11293 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11294 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11295 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11296 <attr "type">: Ditto.
11297 <attr "prefix_data16">: Ditto.
11298 <attr "prefix_extra">: Ditto.
11299 <attr "length_immediate">: Ditto.
11300 <attr "prefix">: Ditto.
11301 (vec_set<mode>_0) <attr "isa">: Ditto.
11302 <attr "prefix_extra">: Ditto.
11303 <attr "length_immediate">: Ditto.
11304 <attr "prefix">: Ditto.
11305 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11306 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11307 (sse2_storelpd) <attr "prefix_data16">: Ditto.
11308 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11309 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11310 <attr "length_immediate">: Ditto.
11311 <attr "prefix">: Ditto.
11312 (sse2_movsd) <attr "length_immediate">: Ditto.
11313 <attr "prefix">: Ditto.
11314 (vec_concatv2df) <attr "isa">: Ditto.
11315 <attr "prefix">: Ditto.
11316 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11317 (*vec_extractv2di_1) <attr "isa">: Ditto.
11318 <attr "type">: Ditto.
11319 <attr "length_immediate">: Ditto.
11320 <attr "prefix_rex">: Ditto.
11321 <attr "prefix_extra">: Ditto.
11322 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11323 <attr "prefix_extra">: Ditto.
11324 <attr "length_immediate">: Ditto.
11325 (vec_concatv2di) <attr "isa">: Ditto.
11326 <attr "prefix_extra">: Ditto.
11327 <attr "length_immediate">: Ditto.
11328 <attr "prefix">: Ditto.
11329
11330 2016-05-26 Martin Liska <mliska@suse.cz>
11331
11332 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11333 function.
11334 (operator+): Likewise.
11335 (operator-): Likewise.
11336 (comp_cost::operator+=): Likewise.
11337 (comp_cost::operator-=): Likewise.
11338 (comp_cost::operator/=): Likewise.
11339 (comp_cost::operator*=): Likewise.
11340 (operator<): Likewise.
11341 (operator==): Likewise.
11342 (operator<=): Likewise.
11343 (new_cost): Remove.
11344 (infinite_cost_p): Likewise.
11345 (add_costs): Likewise.
11346 (sub_costs): Likewise.
11347 (compare_costs): Likewise.
11348 (set_group_iv_cost): Use the newly introduced functions.
11349 (get_address_cost): Likewise.
11350 (get_shiftadd_cost): Likewise.
11351 (force_expr_to_var_cost): Likewise.
11352 (split_address_cost): Likewise.
11353 (ptr_difference_cost): Likewise.
11354 (difference_cost): Likewise.
11355 (get_computation_cost_at): Likewise.
11356 (determine_group_iv_cost_generic): Likewise.
11357 (determine_group_iv_cost_address): Likewise.
11358 (determine_group_iv_cost_cond): Likewise.
11359 (autoinc_possible_for_pair): Likewise.
11360 (determine_group_iv_costs): Likewise.
11361 (cheaper_cost_pair): Likewise.
11362 (iv_ca_recount_cost): Likewise.
11363 (iv_ca_set_no_cp): Likewise.
11364 (iv_ca_set_cp): Likewise.
11365 (iv_ca_cost): Likewise.
11366 (iv_ca_new): Likewise.
11367 (iv_ca_dump): Likewise.
11368 (iv_ca_narrow): Likewise.
11369 (iv_ca_prune): Likewise.
11370 (iv_ca_replace): Likewise.
11371 (try_add_cand_for): Likewise.
11372 (try_improve_iv_set): Likewise.
11373 (find_optimal_iv_set): Likewise.
11374
11375 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
11376
11377 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11378 that internal functions will clobber all caller-saved registers.
11379
11380 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
11381
11382 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11383 Return a better case_values_threshold when optimizing.
11384
11385 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
11386
11387 * config/aarch64/aarch64-simd.md (aarch64_combinez):
11388 Add ? to integer variant.
11389 (aarch64_combinez_be): Likewise.
11390
11391 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11392
11393 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11394 instead of x constraint.
11395 (vcvtps2ph256<mask_name>): Likewise.
11396
11397 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11398 alternative. Formatting fix.
11399
11400 * config/i386/sse.md
11401 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11402 to ...
11403 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11404 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
11405 maybe_evex prefix instead of vex.
11406 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
11407 EXT_REX_SSE_REG_P (op0) case in the splitter.
11408
11409 2016-05-25 Jeff Law <law@redhat.com>
11410
11411 PR tree-optimization/71272
11412 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11413 Update comments. Add test for empty path.
11414
11415 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
11416
11417 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11418 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11419 special case builtin.
11420 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11421 code for ALTIVEC_BUILTIN_VEC_CMPNE.
11422 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11423 for __builtin_vec_cmpne.
11424
11425 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
11426
11427 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11428 redundant test and bail out if the type of the new operand is not
11429 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11430
11431 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
11432
11433 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11434 (x_ix86_target_flags_explicit): Remove.
11435 * config/i386/i386.c (ix86_function_specific_save): Do not copy
11436 x_ix86_target_flags_explicit.
11437 (ix86_function_specific_restore): Ditto.
11438
11439 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
11440 H.J. Lu <hongjiu.lu@intel.com>
11441
11442 PR target/70738
11443 * common/config/i386/i386-common.c
11444 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11445 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11446 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11447 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11448 (-mgeneral-regs-only): Add new option.
11449 * config/i386/i386.c (ix86_option_override_internal): Don't enable
11450 x87 instructions if only general registers are allowed.
11451 (ix86_target_string): Add ix86_flags argument. Handle additional
11452 flags options through ix86_flags argument. Update all callers.
11453 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11454
11455 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11456
11457 PR rtl-optimization/66940
11458 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11459 decrementing desired_val will not overflow before performing these
11460 operations.
11461
11462 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
11463
11464 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11465 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11466 * config/i386/i386.c (enum ix86_builtins): Add
11467 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11468 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11469 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11470 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11471 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11472 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11473 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11474 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11475 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11476 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11477 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11478 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11479 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11480 __builtin_ia32_cvtps2dq512_mask.
11481 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11482 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11483 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11484 * config/i386/sse.md
11485 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11486 Rename to ...
11487 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11488 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11489 to ...
11490 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11491 (avx512f_vec_pack_sfix_v8df): New define_expand.
11492 (avx512f_roundpd512): Rename to ...
11493 (avx512f_round<castmode>512): ... this. Change iterator.
11494 (avx512f_roundps512_sfix): New define_expand.
11495 (round<mode>2_sfix): Change iterator.
11496
11497 2016-05-25 Nick Clifton <nickc@redhat.com>
11498
11499 * config/msp430/msp430.c (msp430_attr): Produce an error if a
11500 static interrupt handler is detected.
11501 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11502 default linker script.
11503 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11504 the low part of a symbolic pointer.
11505
11506 2016-05-25 Richard Biener <rguenther@suse.de>
11507
11508 PR tree-optimization/71261
11509 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11510 interesting stmt instead of immediate uses when looking
11511 for the use operand to replace.
11512
11513 2016-05-25 Martin Liska <mliska@suse.cz>
11514
11515 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11516
11517 2016-05-25 Richard Biener <rguenther@suse.de>
11518
11519 PR tree-optimization/71264
11520 * tree-vect-stmts.c (vect_init_vector): Properly deal with
11521 vector type val.
11522
11523 2016-05-25 Martin Liska <mliska@suse.cz>
11524
11525 PR tree-optimization/71239
11526 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11527 if DECL_SIZE is NULL.
11528
11529 2016-05-25 Richard Biener <rguenther@suse.de>
11530
11531 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11532 * tree-if-conv.c (pass_data_if_conversion): Use it.
11533
11534 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11535
11536 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11537 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11538 * varpool.c (varpool_node::get_availability): Likewise.
11539
11540 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11541
11542 * config/rs6000/altivec.md (VNEG iterator): New iterator for
11543 VNEGW/VNEGD instructions.
11544 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11545 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11546 support for ISA 3.0 VNEGW/VNEGD instructions.
11547
11548 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11549
11550 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11551 pointers inside OACC_DATA regions.
11552 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11553 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11554 (gimplify_adjust_omp_clauses): Fix typo in comment.
11555
11556 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11557
11558 * config/rs6000/altivec.md (VParity): New mode iterator for vector
11559 parity built-in functions.
11560 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11561 zeros.
11562 (p9v_parity<mode>2): Likewise.
11563 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11564 parity.
11565 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11566 (parity<mode>2): ISA 3.0 expander for vector parity.
11567 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11568 power9 built-ins.
11569 (BU_P9_64BIT_MISC_0): Likewise.
11570 (BU_P9_MISC_0): Likewise.
11571 (BU_P9V_AV_1): Likewise.
11572 (BU_P9V_AV_2): Likewise.
11573 (BU_P9V_AV_3): Likewise.
11574 (BU_P9V_AV_P): Likewise.
11575 (BU_P9V_VSX_1): Likewise.
11576 (BU_P9V_OVERLOAD_1): Likewise.
11577 (BU_P9V_OVERLOAD_2): Likewise.
11578 (BU_P9V_OVERLOAD_3): Likewise.
11579 (VCTZB): Add vector count trailing zeros support.
11580 (VCTZH): Likewise.
11581 (VCTZW): Likewise.
11582 (VCTZD): Likewise.
11583 (VPRTYBD): Add vector parity support.
11584 (VPRTYBQ): Likewise.
11585 (VPRTYBW): Likewise.
11586 (VCTZ): Add overloaded vector count trailing zeros support.
11587 (VPRTYB): Add overloaded vector parity support.
11588 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11589 overloaded vector count trailing zeros and parity instructions.
11590 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
11591 vector parity support.
11592 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
11593 trailing zeros support.
11594 (vec_cntlz): Likewise.
11595 (vec_vctzb): Likewise.
11596 (vec_vctzd): Likewise.
11597 (vec_vctzh): Likewise.
11598 (vec_vctzw): Likewise.
11599 (vec_vprtyb): Add ISA 3.0 vector parity support.
11600 (vec_vprtybd): Likewise.
11601 (vec_vprtybw): Likewise.
11602 (vec_vprtybq): Likewise.
11603 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11604 the ISA 3.0 vector count trailing zeros and vector parity built-in
11605 functions.
11606
11607 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11608
11609 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
11610 when there is stmt_to_insert.
11611
11612 2016-05-24 Martin Sebor <msebor@redhat.com>
11613
11614 PR c++/71147
11615 * tree.h (complete_or_array_type_p): New inline function.
11616
11617 2016-05-24 Jakub Jelinek <jakub@redhat.com>
11618
11619 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
11620 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
11621 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
11622
11623 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
11624 Limit 1st alternative to noavx isa, split 2nd alternative into one
11625 noavx and one avx alternative, use *x and Bm in the former and
11626 x and m in the latter.
11627
11628 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
11629 of sse4 for the first alternative, drop %v from the template
11630 and d operand modifier. Split second alternative into one sse4_noavx
11631 and one avx alternative, use *x instead of *v in the former and v
11632 instead of *v in the latter.
11633 (*sse4_1_extractps): Use noavx isa instead of * for the first
11634 alternative, drop %v from the template. Split second alternative into
11635 one noavx and one avx alternative, use *x instead of *v in the
11636 former and v instead of *v in the latter.
11637 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
11638 with noavx and the last one with avx.
11639 (sse4_1_phminposuw): Guard first alternative with noavx isa,
11640 split the second one into one noavx and one avx alternative,
11641 use *x and Bm in the former and x and m in the latter one.
11642 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
11643 alternatives.
11644
11645 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
11646 first two alternatives to noavx, use *x instead of *v in the second
11647 one, add avx alternative without *.
11648 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
11649 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
11650 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
11651
11652 2016-05-24 Jeff Law <law@redhat.com>
11653
11654 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
11655 New function, extracted from...
11656 (fsm_find_control_statement_thread_paths): Here. Use the new function.
11657 Allow simple copies and constant initializations in the SSA chain.
11658
11659 2016-05-24 Marek Polacek <polacek@redhat.com>
11660
11661 PR c/71249
11662 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
11663 scope.
11664
11665 2016-05-24 Jakub Jelinek <jakub@redhat.com>
11666
11667 PR c++/71257
11668 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11669 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11670 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
11671 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
11672 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
11673
11674 2016-05-24 Richard Biener <rguenther@suse.de>
11675
11676 PR tree-optimization/71240
11677 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
11678 has integral type.
11679
11680 2016-05-24 Richard Biener <rguenther@suse.de>
11681
11682 PR tree-optimization/71230
11683 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
11684
11685 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
11686
11687 * tree-vectorizer.h (vectorizable_comparison): Delete.
11688 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
11689 PURE_SLP_STMT check.
11690 * tree-vect-stmts.c (vectorizable_call): Likewise.
11691 (vectorizable_simd_clone_call): Likewise.
11692 (vectorizable_conversion): Likewise.
11693 (vectorizable_assignment): Likewise.
11694 (vectorizable_shift): Likewise.
11695 (vectorizable_operation): Likewise.
11696 (vectorizable_load): Likewise.
11697 (vectorizable_condition): Likewise.
11698 (vectorizable_store): Likewise. Assert that we don't have
11699 hybrid SLP.
11700 (vectorizable_comparison): Make static. Remove redundant
11701 PURE_SLP_STMT check.
11702 (vect_transform_stmt): Assert that we always have an slp_node
11703 if PURE_SLP_STMT.
11704
11705 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11706
11707 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
11708 operands[2] against 1 with comparison against CONST1_RTX.
11709 (<shift>di3_neon): Likewise.
11710 * config/arm/predicates.md (const0_operand): Replace with comparison
11711 against CONST0_RTX.
11712
11713 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11714
11715 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
11716 operands[2] against 1 with comparison against CONST1_RTX.
11717 (ashrdi3): Likewise.
11718 (lshrdi3): Likewise.
11719 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
11720 UINTVAL.
11721 (ashrsi3): Likewise.
11722 (lshrsi3): Likewise.
11723 (rotrsi3): Likewise.
11724 (define_split above *compareqi_eq0): Likewise.
11725 (define_split above "prologue"): Likewise.
11726 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
11727 * config/arm/predicates.md (shift_operator): Likewise.
11728 (shift_nomul_operator): Likewise.
11729 (sat_shift_operator): Likewise.
11730 (thumb1_cmp_operand): Likewise.
11731 (const_neon_scalar_shift_amount_operand): Replace manual range
11732 check with IN_RANGE.
11733 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
11734 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
11735
11736 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11737
11738 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
11739 with HOST_WIDE_INT_1.
11740 (insv): Likewise.
11741 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
11742 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
11743 (arm_canonicalize_comparison): Likewise.
11744 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
11745 HOST_WIDE_INT_1.
11746 (thumb1_size_rtx_costs): Likewise.
11747 (vfp_const_double_index): Replace cast of 1 to unsigned
11748 HOST_WIDE_INT with HOST_WIDE_INT_1U.
11749 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
11750 HOST_WIDE_INT_1.
11751 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
11752 HOST_WIDE_INT with HOST_WIDE_INT_1U.
11753 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
11754 HOST_WIDE_INT with HOST_WIDE_INT_1.
11755
11756 2016-05-24 Marek Polacek <polacek@redhat.com>
11757
11758 * tree-cfg.h (should_remove_lhs_p): New predicate.
11759 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
11760 * gimplify.c (gimplify_modify_expr): Likewise.
11761 * tree-cfg.c (verify_gimple_call): Likewise.
11762 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11763 * gimple-fold.c: Include "tree-cfg.h".
11764 (gimple_fold_call): Use should_remove_lhs_p.
11765
11766 2016-05-24 Richard Biener <rguenther@suse.de>
11767
11768 PR tree-optimization/71253
11769 * cfganal.h (control_dependences): Make robust against edge
11770 and BB removal.
11771 (control_dependences::control_dependences): Remove edge_list argument.
11772 (control_dependences::get_edge): Remove.
11773 (control_dependences::get_edge_src): Add.
11774 (control_dependences::get_edge_dest): Likewise.
11775 (control_dependences::m_el): Make a vector of edge src/dest index.
11776 * cfganal.c (control_dependences::find_control_dependence): Adjust.
11777 (control_dependences::control_dependences): Likewise.
11778 (control_dependences::~control_dependence): Likewise.
11779 (control_dependences::get_edge): Remove.
11780 (control_dependences::get_edge_src): Add.
11781 (control_dependences::get_edge_dest): Likewise.
11782 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
11783 get_edge_src.
11784 (perform_tree_ssa_dce): Adjust.
11785 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
11786 get_edge_src.
11787 (pass_loop_distribution::execute): Adjust. Do loop destroying
11788 conditional on changed.
11789
11790 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11791
11792 PR target/69857
11793 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
11794 return. Reindent transformation comment and mention the ARM state
11795 behavior.
11796
11797 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11798
11799 PR middle-end/71252
11800 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
11801 after build_and_add_sum creates new use stmt.
11802
11803 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
11804
11805 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
11806 load_lanes/grouped_load classification comes first. Don't check
11807 whether the vectorization factor is a multiple of the group size
11808 for load_lanes.
11809
11810 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
11811
11812 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
11813 GROUP_GAP for single-element interleaving.
11814 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
11815 variable.
11816
11817 2016-05-24 Richard Biener <rguenther@suse.de>
11818
11819 PR middle-end/70434
11820 PR c/69504
11821 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
11822 bases which are accessed with non-invariant indices.
11823 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
11824 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
11825
11826 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11827
11828 PR middle-end/71170
11829 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
11830 (add_to_ops_vec): Add stmt_to_insert.
11831 (add_repeat_to_ops_vec): Init stmt_to_insert.
11832 (insert_stmt_before_use): New.
11833 (transform_add_to_multiply): Remove mult_stmt insertion and add it
11834 to ops vector.
11835 (get_ops): Init stmt_to_insert.
11836 (maybe_optimize_range_tests): Likewise.
11837 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
11838 (rewrite_expr_tree_parallel): Likewise.
11839 (reassociate_bb): Likewise.
11840
11841 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11842
11843 PR target/71201
11844 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
11845 ISA 3.0 xxperm fusion alternative.
11846 (altivec_vperm_v8hiv16qi): Likewise.
11847 (altivec_vperm_<mode>_uns_internal): Likewise.
11848 (vperm_v8hiv4si): Likewise.
11849 (vperm_v16qiv8hi): Likewise.
11850
11851 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11852 Kelvin Nilsen <kelvin@gcc.gnu.org>
11853
11854 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
11855 vpermr/xxpermr on ISA 3.0.
11856 (altivec_expand_vec_perm_le): Likewise.
11857 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
11858 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
11859 ISA 3.0.
11860
11861 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
11862
11863 * config/i386/i386.h (IS_STACK_MODE): Enable for
11864 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
11865 SSE_FLOAT_MODE_P macros.
11866 * config/i386/i386.c (ix86_preferred_reload_class): Use
11867 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
11868 Cleanup regclass processing for CONST_DOUBLE_P.
11869 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
11870 (ix86_rtx_costs): Remove redundant TARGET_80387 check
11871 with IS_STACK_MODE macro.
11872 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
11873 with TARGET_SSE2.
11874 (*movdf_internal): Use IS_STACK_MODE macro.
11875 (*movsf_internal): Ditto.
11876
11877 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
11878
11879 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
11880 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
11881
11882 2016-05-23 Jeff Law <law@redhat.com>
11883
11884 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
11885 extracted from ...
11886 (fsm_find_control_statement_thread_paths): Call it.
11887
11888 2016-05-23 Martin Jambor <mjambor@suse.cz>
11889
11890 PR ipa/71234
11891 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
11892 from_global_constant if t is not NULL.
11893
11894 2016-05-23 Marek Polacek <polacek@redhat.com>
11895
11896 PR c/49859
11897 * common.opt (Wswitch-unreachable): New option.
11898 * doc/invoke.texi: Document -Wswitch-unreachable.
11899 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
11900 warning.
11901
11902 2016-05-23 Bin Cheng <bin.cheng@arm.com>
11903
11904 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
11905 TMR_INDEX is non-NULL.
11906
11907 2016-05-23 Richard Biener <rguenther@suse.de>
11908
11909 PR tree-optimization/71230
11910 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
11911 (try_special_add_to_ops): ... here. Always test for single-use.
11912
11913 2016-05-23 Martin Jambor <mjambor@suse.cz>
11914
11915 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
11916 default block if a PHI node in the original one would be resized.
11917
11918 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11919
11920 PR tree-optimization/58135
11921 * tree-vect-slp.c: When group size is not multiple
11922 of vector size, allow splitting of store group at
11923 vector boundary.
11924
11925 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
11926
11927 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
11928
11929 2016-05-22 Jakub Jelinek <jakub@redhat.com>
11930
11931 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11932 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
11933 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
11934 of 64x2.
11935
11936 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
11937 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
11938 v constraint instead of x and vinserti32x4 insn.
11939
11940 * config/i386/sse.md (i128vldq): New mode iterator.
11941 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
11942 avx512dq and avx512vl alternatives.
11943
11944 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
11945 constraint, use maybe_evex prefix instead of vex.
11946 (vec_dupv4sf): Use v constraint instead of x for output
11947 operand except for noavx alternative, use Yv constraint
11948 instead of x for input. Use maybe_evex prefix instead of vex.
11949 (*vec_dupv4si): Likewise.
11950 (*vec_dupv2di): Likewise.
11951
11952 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11953
11954 PR middle-end/40921
11955 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
11956 (linearize_expr_tree): Call try_special_add_to_ops.
11957 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
11958
11959 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11960
11961 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
11962 to computed stack_usage.
11963
11964 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11965
11966 PR target/71103
11967 * config/avr/avr.md (define_expand "mov<mode>"): If the source
11968 operand is subreg (symbol_ref) then move the symbol ref to register.
11969
11970 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
11971
11972 * tree.c (array_at_struct_end_p): Look through MEM_REF.
11973
11974 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11975
11976 PR middle-end/71179
11977 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
11978 VECTOR type.
11979
11980 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
11981
11982 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
11983 ranges by calling get_single_symbol and tidy up. Look more closely
11984 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
11985
11986 2016-05-20 Jeff Law <law@redhat.com>
11987
11988 * bitmap.c (bitmap_find_bit): Remove useless test.
11989
11990 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
11991
11992 * function.c (thread_prologue_and_epilogue_insns): Commit the
11993 insertion of the epilogue.
11994
11995 2016-05-20 Martin Jambor <mjambor@suse.cz>
11996
11997 PR tree-optimization/70884
11998 * tree-sra.c (initialize_constant_pool_replacements): Do not check
11999 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
12000 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
12001 of constant pool data as a reason for scalarization.
12002
12003 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
12004
12005 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
12006 for naked functions.
12007 (thumb1_expand_prologue): Likewise.
12008
12009 2016-05-20 Nathan Sidwell <nathan@acm.org>
12010
12011 * config/nvptx/nptx.c (nvptx_option_override): Only set
12012 flag_toplevel_reorder, if not explicitly specified. Set
12013 flag_no_common, unless explicitly specified.
12014
12015 2016-05-20 David Malcolm <dmalcolm@redhat.com>
12016
12017 * calls.c (can_implement_as_sibling_call_p): Mark param
12018 reg_parm_stack_space with ATTRIBUTE_UNUSED.
12019
12020 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
12021
12022 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
12023 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
12024 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
12025 constants.
12026 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
12027 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
12028 and CASE_CONST_ANY.
12029
12030 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
12031
12032 * config/nvptx/nvptx.md (sincossf3): New pattern.
12033
12034 2016-05-20 David Malcolm <dmalcolm@redhat.com>
12035
12036 * calls.c (maybe_complain_about_tail_call): New function.
12037 (initialize_argument_information): Call
12038 maybe_complain_about_tail_call when clearing *may_tailcall.
12039 (can_implement_as_sibling_call_p): Call
12040 maybe_complain_about_tail_call when returning false.
12041 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
12042 ensure try_tail_call is set. Call maybe_complain_about_tail_call
12043 if tail-call optimization fails.
12044 * cfgexpand.c (expand_call_stmt): Initialize
12045 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
12046 * gimple-pretty-print.c (dump_gimple_call): Dump
12047 gimple_call_must_tail_p.
12048 * gimple.c (gimple_build_call_from_tree): Call
12049 gimple_call_set_must_tail with the value of
12050 CALL_EXPR_MUST_TAIL_CALL.
12051 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12052 (gimple_call_set_must_tail): New function.
12053 (gimple_call_must_tail_p): New function.
12054 * print-tree.c (print_node): Update printing of TREE_STATIC
12055 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12056 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12057 trailing comment listing applicable flags.
12058 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12059
12060 2016-05-20 David Malcolm <dmalcolm@redhat.com>
12061
12062 * calls.c (expand_call): Move "Rest of purposes for tail call
12063 optimizations to fail" to...
12064 (can_implement_as_sibling_call_p): ...this new function, and
12065 split into multiple "if" statements.
12066
12067 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
12068
12069 * cfgloop.h (expected_loop_iterations_unbounded,
12070 expected_loop_iterations): Unconstify.
12071 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12072 profile with known upper bound; return 3 when profile is absent.
12073 (expected_loop_iterations): Update.
12074
12075 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
12076
12077 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12078 and get_max_loop_iterations_int.
12079
12080 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
12081
12082 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12083 realistic upper bounds here.
12084
12085 2016-05-20 Jakub Jelinek <jakub@redhat.com>
12086
12087 PR c++/71210
12088 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12089 calls if the LHS is variable length or has addressable type.
12090 If targets[0]->decl is a noreturn call with void return type and
12091 zero arguments, adjust fntype and remove lhs in that case.
12092
12093 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
12094
12095 PR tree-optimization/71079
12096 PR tree-optimization/71206
12097 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12098
12099 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12100
12101 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12102 (get_vec_alignment_for_array_decl): Likewise.
12103 (get_vec_alignment_for_record_decl): Likewise.
12104 (increase_alignment::execute): Move code to find alignment to
12105 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12106 (type_align_map): New hash_map.
12107
12108 2016-05-20 Richard Guenther <rguenther@suse.de>
12109
12110 PR tree-optimization/29756
12111 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12112 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12113 * fold-const.c (operand_equal_p): Likewise.
12114 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12115 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12116 * tree-inline.c (estimate_operator_cost): Likewise.
12117 * tree-pretty-print.c (dump_generic_node): Likewise.
12118 * tree-ssa-operands.c (get_expr_operands): Likewise.
12119 * cfgexpand.c (expand_debug_expr): Likewise.
12120 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12121 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12122 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12123 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12124 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12125 (execute_update_addresses_taken): Do it.
12126
12127 2016-05-20 Richard Biener <rguenther@suse.de>
12128
12129 PR tree-optimization/71185
12130 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12131 register operations.
12132
12133 2016-05-20 Richard Biener <rguenther@suse.de>
12134
12135 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12136 gimple_seq_add_seq_without_update.
12137 (release_bb_predicate): Assert we have no operands to free.
12138 (if_convertible_loop_p_1): Calculate post dominators later.
12139 Do not free BB predicates here.
12140 (combine_blocks): Do not recompute BB predicates.
12141 (version_loop_for_if_conversion): Save BB predicates around
12142 loop versioning.
12143
12144 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12145
12146 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12147 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
12148 code. Ignore sibcalls on EDGE_IGNORE edges.
12149 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
12150 on edges for sibcalls that run without prologue. The rest of the
12151 function is combined from...
12152 (fix_fake_fallthrough_edge): ... this, and ...
12153 (try_shrink_wrapping): ... a part of this. Remove the bb_with
12154 function argument, make it a local variable.
12155
12156 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
12157
12158 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12159 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12160 for 32-bit mode and SEH for 64-bit.
12161 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12162 TARGET_64BIT_DEFAULT.
12163
12164 2016-05-19 Ryan Burn <contact@rnburn.com>
12165
12166 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12167 * gengtype.c (open_base_files): Add cilk.h to ifiles.
12168
12169 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
12170
12171 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12172 force pending loads from memory.
12173
12174 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
12175
12176 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12177 (UNSPEC_DARN_32): New unspec constant.
12178 (UNSPEC_DARN_RAW): New unspec constant.
12179 (darn_32): New instruction.
12180 (darn_raw): New instruction.
12181 (darn): New instruction.
12182 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12183 support and documentation for this macro.
12184 (BU_P9_MISC_1): New macro definition.
12185 (BU_P9_64BIT_MISC_0): New macro definition.
12186 (BU_P9_MISC_0): New macro definition.
12187 (darn_32): New builtin definition.
12188 (darn_raw): New builtin definition.
12189 (darn): New builtin definition.
12190 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12191 RS6000_BUILTIN_0 directives to surround each occurrence of
12192 #include "rs6000-builtin.def".
12193 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12194 RS6000_BTM_64BIT flags to the returned mask, depending on
12195 configuration.
12196 (def_builtin): Correct an error in the assignments made to the
12197 debugging variable attr_string.
12198 (rs6000_expand_builtin): Add support for no-operand built-in
12199 functions.
12200 (builtin_function_type): Remove fatal_error assertion that is no
12201 longer valid.
12202 (rs6000_common_init_builtins): Add support for no-operand built-in
12203 functions.
12204 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12205 definition.
12206 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12207 definition.
12208 (RS6000_BTM_64BIT): New macro definition.
12209 * doc/extend.texi: Document __builtin_darn (void),
12210 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12211 functions.
12212
12213 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
12214
12215 * tree-vect-loop.c (vect_analyze_loop_2): Use also
12216 max_loop_iterations_int.
12217
12218 2016-05-19 Marek Polacek <polacek@redhat.com>
12219
12220 PR tree-optimization/71031
12221 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12222 condition and adjust the code a bit.
12223
12224 2016-05-19 Martin Liska <mliska@suse.cz>
12225
12226 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12227 auto_vec instead of vec.
12228
12229 2016-05-19 Martin Liska <mliska@suse.cz>
12230
12231 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12232
12233 2016-05-19 Martin Liska <mliska@suse.cz>
12234
12235 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12236
12237 2016-05-19 Martin Liska <mliska@suse.cz>
12238
12239 * ipa-pure-const.c (set_function_state): Remove an existing
12240 funct_state.
12241 (remove_node_data): Do not free it as it's released
12242 in set_function_state.
12243
12244 2016-05-19 Martin Liska <mliska@suse.cz>
12245
12246 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12247 bitmap.
12248
12249 2016-05-19 Martin Liska <mliska@suse.cz>
12250
12251 * omp-simd-clone.c (simd_clone_adjust): Release vector.
12252
12253 2016-05-19 Martin Liska <mliska@suse.cz>
12254
12255 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12256 an auto_vec instead of re-creating it.
12257
12258 2016-05-19 Martin Liska <mliska@suse.cz>
12259
12260 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12261 auto_vec instead of vec.
12262
12263 2016-05-19 Martin Liska <mliska@suse.cz>
12264
12265 * lto-section-in.c (lto_get_section_data): Call
12266 lto_check_version with additional argument.
12267 * lto-streamer.c (lto_check_version): Add new argument.
12268 * lto-streamer.h (lto_check_version): Likewise.
12269
12270 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12271
12272 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12273 Don't add cost of inner memory when handling sign-extended loads.
12274
12275 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
12276
12277 PR rtl-optimization/71148
12278 * cse.c (cse_main): Free dominance info.
12279 (rest_of_handle_cse): Don't free dominance info.
12280 (rest_of_handle_cse2): Likewise.
12281 (rest_of_handle_cse_after_global_opts): Likewise.
12282
12283 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12284
12285 PR target/71056
12286 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12287 NULL_TREE early if NEON is not available. Remove now redundant check
12288 in ARM_CHECK_BUILTIN_MODE.
12289
12290 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
12291
12292 PR sanitizer/64354
12293 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12294 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12295 * doc/cpp.texi: Document new macros.
12296
12297 2016-05-19 Bin Cheng <bin.cheng@arm.com>
12298
12299 PR tree-optimization/69848
12300 * tree-vect-loop.c (vectorizable_reduction): Don't factor
12301 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12302
12303 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12304
12305 * function.c (thread_prologue_and_epilogue_insn): Move the
12306 "goto epilogue_done" one block later.
12307
12308 2016-05-19 Richard Biener <rguenther@suse.de>
12309
12310 PR tree-optimization/70729
12311 * passes.def: Move LIM pass before PRE. Remove no longer
12312 required copyprop and move first DCE out of the loop pipeline.
12313
12314 2016-05-18 David Malcolm <dmalcolm@redhat.com>
12315
12316 PR driver/69265
12317 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12318 (OBJS-libcommon-target): ...here.
12319 * opts-common.c: Include spellcheck.h.
12320 (cmdline_handle_error): Build a vec of valid options and use it
12321 to suggest provide hints for misspelled arguments.
12322
12323 2016-05-18 Jakub Jelinek <jakub@redhat.com>
12324
12325 PR c++/71100
12326 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12327 lhs if it has TREE_ADDRESSABLE type.
12328
12329 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
12330
12331 PR target/71145
12332 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12333 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12334
12335 2016-05-18 Martin Jambor <mjambor@suse.cz>
12336
12337 PR ipa/69708
12338 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12339 input for NOP_EXPR pass-through functions.
12340 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12341 aggregate global constant VAR_DECLs in constant jump functions.
12342
12343 2016-05-18 Martin Jambor <mjambor@suse.cz>
12344
12345 PR ipa/69708
12346 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12347 from TREE_READONLY parameters.
12348
12349 2016-05-18 Martin Jambor <mjambor@suse.cz>
12350
12351 PR ipa/69708
12352 * cgraph.h (cgraph_indirect_call_info): New field
12353 guaranteed_unmodified.
12354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12355 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12356 appropriate.
12357 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12358 pass the parameter value to ipa_find_agg_cst_for_param.
12359 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12360 guaranteed_unmodified, store AA results there instead of bailing out
12361 if present.
12362 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12363 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12364 (find_constructor_constant_at_offset): New function.
12365 (ipa_find_agg_cst_from_init): Likewise.
12366 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12367 static initializers of contants, report back through a new paameter
12368 from_global_constant if that was the case.
12369 (try_make_edge_direct_simple_call): Also pass parameter value to
12370 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12371 appropriate.
12372 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12373 (ipa_read_indirect_edge_info): Likewise.
12374 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12375 (ipa_load_from_parm_agg): Likewise.
12376
12377 2016-05-18 Jiong Wang <jiong.wang@arm.com>
12378
12379 PR rtl-optimization/71150
12380 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12381 check.
12382
12383 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12384
12385 PR target/70915
12386 * config/rs6000/constraints.md (wE constraint): New constraint
12387 for a vector constant that can be loaded with XXSPLTIB.
12388 (wM constraint): New constraint for a vector constant of a 1's.
12389 (wS constraint): New constraint for a vector constant that can be
12390 loaded with XXSPLTIB and a vector sign extend instruction.
12391 * config/rs6000/predicates.md (xxspltib_constant_split): New
12392 predicates for wE/wS constraints.
12393 (xxspltib_constant_nosplit): Likewise.
12394 (easy_vector_constant): Add support for constants that can be
12395 loaded via XXSPLTIB.
12396 (all_ones_constant): New predicate for vector constant with all
12397 1's set.
12398 (splat_input_operand): Add support for ISA 3.0 word splat operations.
12399 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12400 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12401 instruction and possibly with a sign extension.
12402 (output_vec_const_move): Add support for XXSPLTIB. If we are
12403 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12404 instead of XXLXOR/XXLORC.
12405 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12406 operations.
12407 (rs6000_legitimize_reload_address): Likewise.
12408 (rs6000_output_move_128bit): Use output_vec_const_move to emit
12409 constants.
12410 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12411 combine VSX_M and VSX_M2 into one iterator.
12412 (VSX_M2): Likewise.
12413 (VSINT_84): New iterators for loading constants with XXSPLTIB.
12414 (VSINT_842): Likewise.
12415 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12416 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12417 XXSPLTIB instruction.
12418 (xxspltib_<mode>_nosplit): Likewise.
12419 (xxspltib_<mode>_split): New insn to load up constants with
12420 XXSPLTIB and a sign extend instruction.
12421 (vsx_mov<mode>): Replace single move that handled all vector types
12422 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
12423 moves (when -mvsx-timode is in effect) into the main vector
12424 moves. Eliminate separate moves for <VSr> <VSa>, where the
12425 preferred register class (<VSr>) is listed first, and the
12426 secondary register class (<VSa>) is listed second with a '?' to
12427 discourage use. Prefer loading 0/-1 in any VSX register for ISA
12428 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12429 that if the register was involved in a slow operation, the
12430 clear/set operation does not wait for the slow operation to
12431 finish. Adjust the length attributes for 32-bit mode. Use
12432 rs6000_output_move_128bit and drop the use of the string
12433 instructions for 32-bit movti when -mvsx-timode is in effect. Use
12434 spacing so that the alternatives and attributes don't generate
12435 long lines, and put things in columns, so that it is easier to
12436 match up the operands and attributes with the insn alternatives.
12437 (vsx_mov<mode>_64bit): Likewise.
12438 (vsx_mov<mode>_32bit): Likewise.
12439 (vsx_movti_64bit): Fold movti into normal vector moves.
12440 (vsx_movti_32bit): Likewise.
12441 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12442 splat instructions.
12443 (vsx_splat_v4si_internal): Likewise.
12444 (vsx_splat_v4sf_internal): Likewise.
12445 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12446 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12447 extend vector elements.
12448 (vsx_sign_extend_hi_<mode>): Likewise.
12449 (vsx_sign_extend_si_v2di): Likewise.
12450 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12451 declaration.
12452 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12453 constraints. Add trailing period to wL documentation.
12454
12455 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
12456
12457 PR middle-end/71020
12458 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12459 * tree-dfa.c (replace_abnormal_ssa_names): New function.
12460 * tree-call-cdce.c: Include tree-dfa.h.
12461 (can_guard_call_p): New function, extracted from...
12462 (can_use_internal_fn): ...here.
12463 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12464 and return void.
12465 (shrink_wrap_one_built_in_call): Likewise.
12466 (use_internal_fn): Likewise.
12467 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12468 and return void. Call replace_abnormal_ssa_names.
12469 (pass_call_cdce::execute): Check can_guard_call_p during the
12470 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
12471 will always change something.
12472
12473 2016-05-18 Martin Jambor <mjambor@suse.cz>
12474
12475 PR ipa/70646
12476 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12477 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12478
12479 2016-05-18 Martin Jambor <mjambor@suse.cz>
12480
12481 PR ipa/70646
12482 * ipa-inline.h (condition): New field size.
12483 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12484 for comaprison and store it into the new condition.
12485 (evaluate_conditions_for_known_args): Use condition size to check
12486 access sizes for all but CHANGED conditions.
12487 (unmodified_parm_1): New parameter size_p, store access size into it.
12488 (unmodified_parm): Likewise.
12489 (unmodified_parm_or_parm_agg_item): Likewise.
12490 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12491 (set_cond_stmt_execution_predicate): Extract access sizes and store
12492 them to conditions.
12493 (set_switch_stmt_execution_predicate): Likewise.
12494 (will_be_nonconstant_expr_predicate): Likewise.
12495 (will_be_nonconstant_predicate): Likewise.
12496 (inline_read_section): Stream condition size.
12497 (inline_write_summary): Likewise.
12498
12499 2016-05-18 Richard Biener <rguenther@suse.de>
12500
12501 * tree-ssa-loop-im.c (determine_max_movement): Properly add
12502 condition cost to PHI cost instead of total_cost.
12503
12504 2016-05-18 Martin Liska <mliska@suse.cz>
12505
12506 PR fortran/70856
12507 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12508 merged variables.
12509
12510 2016-05-18 Richard Biener <rguenther@suse.de>
12511
12512 * lto-streamer.h (LTO_major_version): Bump to 6.
12513
12514 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
12515
12516 * function.c (make_split_prologue_seq, make_prologue_seq,
12517 make_epilogue_seq): New functions, factored out from...
12518 (thread_prologue_and_epilogue_insns): Here.
12519
12520 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
12521
12522 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12523 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12524 of before. Add a comment.
12525
12526 2016-05-18 Bin Cheng <bin.cheng@arm.com>
12527
12528 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12529 expression pointer, not pointer to the pointer.
12530
12531 2016-05-18 Jakub Jelinek <jakub@redhat.com>
12532
12533 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12534 (avx2_pbroadcast<mode>): Add another alternative with v instead
12535 of x constraints in it, using <pbroadcast_evex_isa> isa.
12536 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12537
12538 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12539 constraint x instead of v in second alternative, add avx512bw
12540 alternative.
12541
12542 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12543 constraint x instead of v in second alternative, add avx512bw
12544 alternative.
12545
12546 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12547 constraint x instead of v in second alternative, add avx512bw
12548 alternative.
12549
12550 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12551 avx512bw alternative.
12552
12553 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
12554
12555 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12556 array to 128 chars.
12557 (define_insn "*andnottf3"): Ditto.
12558 (define_insn "*<code><mode>3"/any_logic): Ditto.
12559 (define_insn "*<code>tf3"/any_logic): Ditto.
12560 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12561 operand to block AVX-512VL insn variant emit when it is not enabled.
12562
12563 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
12564
12565 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12566 constraint fot SF mode.
12567
12568 2016-05-18 Petr Murzin <petr.murzin@intel.com>
12569 Kirill Yukhin <kirill.yukhin@intel.com>
12570
12571 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12572 modifiers.
12573 (define_insn "rsqrt14<mode>"): Ditto.
12574 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12575 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12576 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12577 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12578 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12579 Ditto.
12580 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12581 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
12582 * config/i386/i386.c (ix86_print_operand): Expand check for size
12583 override codes for Intel syntax.
12584
12585 2016-05-18 Richard Biener <rguenther@suse.de>
12586
12587 PR tree-optimization/71168
12588 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
12589 initialization earlier.
12590
12591 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
12592
12593 * config/aarch64/aarch64-simd.md
12594 (aarch64_reduc_plus_internal<mode>): Rename to...
12595 (reduc_plus_scal): ...This, and remove previous implementation.
12596
12597 2016-05-18 Richard Biener <rguenther@suse.de>
12598
12599 * passes.def: Put late dse and cd_dce in canonical order.
12600
12601 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
12602
12603 * ipa-inline-transform.c (preserve_function_body_p): Look for
12604 first non-thunk clone.
12605 (save_function_body): Save into first non-thunk.
12606 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
12607 up call stmt id.
12608 (lto_output_node): Inline thunks don't need body in every
12609 partition.
12610 * lto-streamer-in.c: Do not fixup thunk clones.
12611 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
12612 thunks.
12613 * tree-inline.c (copy_bb): Be prepared for target node to be new after
12614 folding suceeds.
12615
12616 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12617
12618 PR middle-end/63586
12619 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
12620 (reassociate_bb): Call transform_add_to_multiply.
12621
12622 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12623
12624 * config/aarch64/aarch64.c (all_extensions): Removed unused
12625 static variable.
12626
12627 2016-05-17 Nathan Sidwell <nathan@acm.org>
12628
12629 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
12630 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
12631
12632 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
12633
12634 PR tree-optimization/54579
12635 PR middle-end/55299
12636 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
12637
12638 2016-05-17 Marek Polacek <polacek@redhat.com>
12639
12640 PR ipa/71146
12641 * tree-inline.c (expand_call_inline): Call
12642 maybe_remove_unused_call_args.
12643
12644 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
12645
12646 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
12647 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
12648 * doc/md.texi (fmin@var{m}3): Likewise.
12649
12650 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
12651
12652 * match.pd (X & C): New transformation.
12653
12654 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
12655
12656 * match.pd (~X & Y): New transformation.
12657
12658 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
12659
12660 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
12661 information for new SSA_NAME.
12662 (simplify_conversion_using_ranges): Get range through get_range_info
12663 instead of get_value_range.
12664
12665 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12666
12667 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
12668 Remove inline assembly.
12669 (vmvn_s16): Likewise.
12670 (vmvn_s32): Likewise.
12671 (vmvn_u8): Likewise.
12672 (vmvn_u16): Likewise.
12673 (vmvn_u32): Likewise.
12674 (vmvnq_s8): Likewise.
12675 (vmvnq_s16): Likewise.
12676 (vmvnq_s32): Likewise.
12677 (vmvnq_u8): Likewise.
12678 (vmvnq_u16): Likewise.
12679 (vmvnq_u32): Likewise.
12680 (vmvn_p8): Likewise.
12681 (vmvnq_p16): Likewise.
12682
12683 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12684
12685 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
12686 Use builtin.
12687 (vmul_n_s16): Likewise.
12688 (vmul_n_s32): Likewise.
12689 (vmul_n_u16): Likewise.
12690 (vmul_n_u32): Likewise.
12691 (vmulq_n_f32): Likewise.
12692 (vmulq_n_f64): Likewise.
12693 (vmulq_n_s16): Likewise.
12694 (vmulq_n_s32): Likewise.
12695 (vmulq_n_u16): Likewise.
12696 (vmulq_n_u32): Likewise.
12697
12698 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12699
12700 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
12701 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
12702
12703 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12704
12705 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
12706 to *aarch64_fma4_elt_from_dup<mode>.
12707 (*aarch64_fnma4_elt_to_128df): Rename to
12708 *aarch64_fnma4_elt_from_dup<mode>.
12709 * config/aarch64/arm_neon.h (vfma_n_f64): New.
12710 (vfms_n_f32): Likewise.
12711 (vfms_n_f64): Likewise.
12712 (vfmsq_n_f32): Likewise.
12713 (vfmsq_n_f64): Likewise.
12714
12715 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
12716
12717 * wide-int.h: Change fixed_wide_int_storage from class to struct.
12718
12719 2016-05-17 Richard Biener <rguenther@suse.de>
12720
12721 PR tree-optimization/71132
12722 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
12723 Only add control dependences for blocks in the loop.
12724 (build_rdg): Adjust.
12725 (generate_code_for_partition): Return whether loop should
12726 be destroyed and delay that.
12727 (distribute_loop): Likewise.
12728 (pass_loop_distribution::execute): Record loops to be destroyed
12729 and perform delayed destroying of loops.
12730
12731 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12732
12733 PR target/70809
12734 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
12735
12736 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
12737
12738 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
12739
12740 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
12741
12742 PR target/71114
12743 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
12744 insertion point for instructions generated by validize_mem.
12745
12746 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
12747
12748 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
12749 in brackets.
12750
12751 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
12752
12753 * config/aarch64/aarch64.c
12754 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
12755 rather than a macro.
12756
12757 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
12758
12759 * doc/invoke.texi (AArch64 Options): Various updates.
12760
12761 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12762
12763 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
12764 into instrumentation thunks.
12765 * cif-code.def (CIF_CHKP): New.
12766
12767 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
12768
12769 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
12770
12771 2016-05-16 Martin Jambor <mjambor@suse.cz>
12772
12773 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
12774 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
12775
12776 2016-05-16 Marek Polacek <polacek@redhat.com>
12777
12778 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
12779 commentary.
12780
12781 2016-05-16 Martin Jambor <mjambor@suse.cz>
12782
12783 PR hsa/70857
12784 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
12785 the outlined kernel function.
12786
12787 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
12788
12789 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
12790 (ISA_HAS_DLSA): Ditto.
12791
12792 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
12793
12794 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
12795
12796 2016-05-16 Nathan Sidwell <nathan@acm.org>
12797
12798 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
12799 (nvptx_name_replacement): Restore. Add comment.
12800 (write_fn_proto, write_fn_proto_from_insn,
12801 nvptx_output_call_insn): Restore
12802 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
12803
12804 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
12805
12806 * config/aarch64/aarch64.md
12807 (add<mode>3_compareC_cconly_imm): Remove use of %w.
12808 (add<mode>3_compareC_imm): Likewise.
12809 (<optab>si3_uxtw): Split into register and immediate variants.
12810 (andsi3_compare0_uxtw): Likewise.
12811 (and<mode>3_compare0): Likewise.
12812 (and<mode>3nr_compare0): Likewise.
12813 (stack_protect_test_<mode>): Don't use %x for memory operands.
12814
12815 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
12816
12817 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
12818
12819 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
12820
12821 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12822 Split integer shifts into shift_reg and bfm.
12823 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
12824 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12825 (ror<mode>3_insn): Likewise.
12826 (<optab>si3_insn_uxtw): Likewise.
12827 (<optab><mode>3_insn): Change to rotate_imm.
12828 (extr<mode>5_insn_alt): Likewise.
12829 (extrsi5_insn_uxtw): Likewise.
12830 (extrsi5_insn_uxtw_alt): Likewise.
12831
12832 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
12833
12834 * doc/tm.texi: Regenerate.
12835 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
12836 (TARGET_INVALID_RETURN_TYPE): Remove.
12837 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
12838 TARGET_INVALID_RETURN_TYPE.
12839 * target.def (invalid_parameter_type): Remove.
12840 (invalid_return_type): Remove.
12841
12842 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12843
12844 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
12845 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
12846 calls from thunk.
12847 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
12848 gimple body.
12849 (preserve_function_body_p): No need to preserve function body
12850 * cif-codes.def (CIF_THUNK): Remove.
12851 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
12852
12853 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12854
12855 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
12856
12857 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12858
12859 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
12860 for thunks.
12861
12862 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12863
12864 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
12865 (inline_small_functions): Do not look for function symbol when
12866 resetting caches.
12867
12868 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12869
12870 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
12871 of inline thunks
12872
12873 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
12874 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12875 Jiong Wang <jiong.wang@arm.com>
12876
12877 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
12878 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
12879 Define __ARM_FP16_ARGS when appropriate.
12880 * config/arm/arm.c (arm_invalid_parameter_type): Remove
12881 declaration.
12882 (arm_invalid_return_type): Likewise.
12883 (TARGET_INVALID_PARAMETER_TYPE): Remove.
12884 (TARGET_INVALID_RETURN_TYPE): Remove.
12885 (aapcs_vfp_sub_candidate): Allow HFmode.
12886 (aapcs_vfp_allocate): Add comment. Support HFmode.
12887 (aapcs_vfp_allocate_return_reg): Likewise.
12888 (struct aapcs_cp_arg_layout): Slightly reword comments for
12889 is_return_candidate and allocate_return_reg.
12890 (output_mov_vfp): Update assert.
12891 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
12892 condition.
12893 (arm_invalid_parameter_type): Remove.
12894 (amr_invalid_return_type): Remove.
12895 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
12896 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
12897 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
12898
12899 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
12900
12901 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
12902 * config/aarch64/arch64-protos.h
12903 (aarch64_legitimize_reload_address): Remove.
12904 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
12905 Remove.
12906
12907 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
12908
12909 * configure.ac: Add ACX_NONCANONICAL_HOST.
12910 * configure: Regenerate.
12911 * Makefile.in: Set host_noncanonical.
12912
12913 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
12914
12915 PR target/71097
12916 * config/i386/i386.md (*movtf_internal): Before register allocation,
12917 do not allow FP constants for CM_MEDIUM memory model, allow only
12918 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
12919 (*movxf_internal): Ditto.
12920 (*movdf_internal): Ditto.
12921 (*movsf_internal): Ditto.
12922
12923 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
12924
12925 PR rtl-optimization/67483
12926 * combine.c (make_compound_operation): Don't call extract_left_shift
12927 with negative shift amounts.
12928
12929 2016-05-13 Jakub Jelinek <jakub@redhat.com>
12930
12931 PR bootstrap/71071
12932 * fold-const.c (fold_checksum_tree): Allow modification
12933 of TYPE_ALIAS_SET during folding.
12934
12935 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
12936 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
12937 (ix86_split_to_parts): Likewise. Fix up formatting.
12938
12939 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
12940
12941 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
12942 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
12943 printf format.
12944
12945 2016-05-13 Nathan Sidwell <nathan@acm.org>
12946
12947 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
12948 (nvptx_name_replacement): Delete.
12949 (write_fn_proto, write_fn_proto_from_insn,
12950 nvptx_output_call_insn): Remove nvptx_name_replacement call.
12951 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
12952 * langhooks.c (add_builtin_funcction_common): Call
12953 targetm.mangle_decl_assembler_name.
12954
12955 * config/nvptx/nvptx.c (write_fn_proto): Handle
12956 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
12957
12958 2016-05-13 Martin Liska <mliska@suse.cz>
12959
12960 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
12961 and PRIu64 in printf format.
12962
12963 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12964
12965 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
12966 comment.
12967
12968 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12969
12970 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12971 Change --param max-completely-peeled-times to
12972 --param max-completely-peel-times in dump file printing.
12973
12974 2016-05-13 Richard Biener <rguenther@suse.de>
12975
12976 PR tree-optimization/42587
12977 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
12978 (find_bswap_or_nop_1): Likewise.
12979 (bswap_replace): Likewise.
12980
12981 2016-05-13 Martin Liska <mliska@suse.cz>
12982
12983 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
12984 Initialize a variable with default value.
12985
12986 2016-05-13 Martin Liska <mliska@suse.cz>
12987
12988 * doc/invoke.texi: Enhance explanation of error recovery
12989 of sanitizers.
12990
12991 2016-05-13 Martin Liska <mliska@suse.cz>
12992
12993 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
12994 (struct cost_pair): Change inv_expr_id (int) to inv_expr
12995 (iv_inv_expr_ent *).
12996 (struct iv_inv_expr_ent): Comment struct fields.
12997 (sort_iv_inv_expr_ent): New function.
12998 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
12999 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
13000 a hash_map between iv_inv_expr_ent and number of usages.
13001 (niter_for_exit): Fix coding style.
13002 (tree_ssa_iv_optimize_init): Use renamed variable.
13003 (determine_base_object): Fix coding style.
13004 (alloc_iv): Likewise.
13005 (find_interesting_uses_outside): Likewise.
13006 (add_candidate_1): Likewise.
13007 (add_standard_iv_candidates): Likewise.
13008 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
13009 (prepare_decl_rtl): Fix coding style.
13010 (get_address_cost): Likewise.
13011 (get_shiftadd_cost): Likewise.
13012 (force_expr_to_var_cost): Likewise.
13013 (compare_aff_trees): Likewise.
13014 (get_expr_id): Restructure the function.
13015 (get_loop_invariant_expr_id): Renamed to
13016 get_loop_invariant_expr.
13017 (get_computation_cost_at): Replace usage of inv_expr_id with
13018 inv_expr.
13019 (get_computation_cost): Likewise.
13020 (determine_group_iv_cost_generic): Likewise.
13021 (determine_group_iv_cost_address): Likewise.
13022 (iv_period): Fix coding style.
13023 (iv_elimination_compare_lt): Likewise.
13024 (may_eliminate_iv): Likewise.
13025 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
13026 inv_expr.
13027 (determine_group_iv_costs): Dump invariant expressions.
13028 (iv_ca_recount_cost): Use the newly added hash_map.
13029 (iv_ca_set_remove_invariants): Fix coding style.
13030 (iv_ca_set_add_invariants): Fix coding style.
13031 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
13032 invariants.
13033 (iv_ca_set_cp): Likewise.
13034 (iv_ca_new): Initialize the newly added hash_map and remove
13035 initialization of fields.
13036 (iv_ca_free): Delete the hash_map.
13037 (iv_ca_dump): Dump invariant expressions.
13038 (iv_ca_extend): Fix coding style.
13039 (try_add_cand_for): Likewise.
13040 (create_new_ivs): Dump information about # of avg iterations and
13041 # of used invariant expressions.
13042 (rewrite_use_compare): Fix coding style.
13043 (free_loop_data): Set default value for max_inv_expr_id.
13044
13045 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13046
13047 * cse.c (rest_of_handle_cse): Use cleanup_cfg
13048 returned value cse_cfg_altered computation.
13049 (rest_of_handle_cse2): Likewise.
13050 (rest_of_handle_cse_after_global_opts): Likewise.
13051
13052 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13053
13054 PR target/53440
13055 * config/arm/arm.c (arm32_output_mi_thunk): New.
13056 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13057 to split Thumb1 vs TARGET_32BIT functionality.
13058 (arm_thumb1_mi_thunk): New.
13059
13060 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13061
13062 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13063 to true.
13064
13065 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13066
13067 PR target/71080
13068 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13069
13070 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
13071
13072 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13073 (expand_builtin_trap): Emit a regular call.
13074 (set_builtin_user_assembler_name): Remove obsolete cases.
13075 * dse.c (scan_insn): Adjust.
13076 * except.c: Include calls.h.
13077 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13078 emit a regular call to setjmp.
13079 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13080 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13081 (emit_block_move_via_libcall): Delete.
13082 (block_move_fn): Delete.
13083 (init_block_move_fn): Likewise.
13084 (emit_block_move_libcall_fn): Likewise.
13085 (emit_block_op_via_libcall): New function.
13086 (set_storage_via_libcall): Tidy up and use memset builtin.
13087 (block_clear_fn): Delete.
13088 (init_block_clear_fn): Likewise.
13089 (clear_storage_libcall_fn): Likewise.
13090 (expand_assignment): Call emit_block_move_via_libcall.
13091 Do not include gt-expr.h.
13092 * expr.h (emit_block_op_via_libcall): Declare.
13093 (emit_block_copy_via_libcall): New inline function.
13094 (emit_block_move_via_libcall): Likewise.
13095 (emit_block_comp_via_libcall): Likewise.
13096 (block_clear_fn): Delete.
13097 (init_block_move_fn): Likewise.
13098 (init_block_clear_fn): Likewise.
13099 (emit_block_move_via_libcall): Likewise.
13100 (set_storage_via_libcall): Add default parameter value.
13101 * libfuncs.h (enum libfunc_index): Remove obsolete values.
13102 (abort_libfunc): Delete.
13103 (memcpy_libfunc): Likewise.
13104 (memmove_libfunc): Likewise.
13105 (memcmp_libfunc): Likewise.
13106 (memset_libfunc): Likewise.
13107 (setbits_libfunc): Likewise.
13108 (setjmp_libfunc): Likewise.
13109 (longjmp_libfunc): Likewise.
13110 (profile_function_entry_libfunc): Likewise.
13111 (profile_function_exit_libfunc): Likewise.
13112 (gcov_flush_libfunc): Likewise.
13113 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13114 and DECL_VISIBILITY on the declaration.
13115 (init_optabs): Do not initialize obsolete libfuncs.
13116 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13117 * tree-core.h (ECF_RET1): Define.
13118 (ECF_TM_PURE): Adjust.
13119 (ECF_TM_BUILTIN): Likewise.
13120 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13121 (build_common_builtin_nodes): Initialize abort builtin.
13122 Add ECF_RET1 on memcpy, memmove and memset builtins.
13123 Pass final flags for alloca and alloca_with_align builtins.
13124 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13125 obsolete builtins.
13126 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13127 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13128 set_storage_via_libcall and call emit_block_copy_via_libcall.
13129
13130 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
13131
13132 * config/i386/i386.md (*call_got_x32): Change operand 0 to
13133 DImode before it is passed to ix86_output_call_operand.
13134 (*call_value_got_x32): Ditto for operand 1.
13135
13136 2016-05-12 Jiong Wang <jiong.wang@arm.com>
13137
13138 PR rtl-optimization/70904
13139 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13140 reload for wide mode.
13141
13142 2016-05-12 Marek Polacek <polacek@redhat.com>
13143
13144 PR c/70756
13145 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13146 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13147 * langhooks.h (incomplete_type_error): Likewise.
13148 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
13149 parameter, pass it down to incomplete_type_error.
13150 * tree.h (size_in_bytes): New inline overload.
13151 (size_in_bytes_loc): Renamed from size_in_bytes.
13152
13153 2016-05-12 Richard Biener <rguenther@suse.de>
13154
13155 PR tree-optimization/71059
13156 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13157 nary before looking up or entering the expression into the VN
13158 hashes.
13159 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13160 Make sure to re-use NARYs without result as inserted by
13161 phi-translation.
13162
13163 2016-05-12 Richard Biener <rguenther@suse.de>
13164
13165 PR tree-optimization/71062
13166 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13167 field.
13168 * tree-ssa-structalias.c (set_uids_in_ptset): Set
13169 vars_contains_restrict if the var is a restrict tag.
13170 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13171 do not disambiguate pointers against it.
13172 (dump_points_to_solution): Re-structure and adjust for new
13173 vars_contains_restrict flag.
13174 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13175
13176 2016-05-12 Martin Liska <mliska@suse.cz>
13177
13178 * doc/invoke.texi: Explain connection between
13179 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13180
13181 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
13182
13183 PR tree-optimization/71006
13184 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13185 consider COND_EXPR as a mask producer.
13186
13187 2016-05-12 Marek Polacek <polacek@redhat.com>
13188
13189 PR driver/71063
13190 * opts.c (common_handle_option): Detect missing argument for --help^.
13191
13192 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13193
13194 PR target/70830
13195 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13196 when popping the PC and within an interrupt handler routine.
13197 Add missing tab to output of "ldmfd".
13198 (output_return_instruction): Output LDMFD with SP update rather
13199 than POP when returning from interrupt handler.
13200
13201 2016-05-12 Jakub Jelinek <jakub@redhat.com>
13202
13203 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13204 TARGET_64BIT && TARGET_AVX512DQ.
13205 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13206 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13207 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13208 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13209 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13210 (*vec_extractv4si_zext): Add avx512dq alternative.
13211 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13212 use v instead of x constraint in other alternatives where possible.
13213
13214 * config/i386/sse.md (sse2_loadld): Use v instead of x
13215 constraint in alternatives 0,1,4.
13216
13217 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13218 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13219 v constraints instead of x and <pinsr_evex_isa> isa attribute.
13220
13221 PR target/71019
13222 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13223 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13224 is not emitted unless TARGET_AVX512BW.
13225 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13226 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13227 for the result operand.
13228
13229 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13230 constraint instead of x in avx alternatives. Use maybe_evex instead
13231 of vex prefix.
13232
13233 * config/i386/constraints.md (Yv): New constraint.
13234 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13235 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13236 * config/i386/i386.md (avx512fvecmode): New mode attr.
13237 (*pushtf): Use v constraint instead of x.
13238 (*movtf_internal): Likewise. For TARGET_AVX512VL and
13239 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13240 (*absneg<mode>2): Use Yv constraint instead of x constraint.
13241 (*absnegtf2_sse): Likewise.
13242 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13243 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13244 avx512f alternatives.
13245 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13246
13247 2016-05-12 Richard Biener <rguenther@suse.de>
13248
13249 PR tree-optimization/71060
13250 * tree-data-ref.c (initialize_data_dependence_relation): Do not
13251 require exact match of DR_BASE_OBJECT but only matching address and
13252 type.
13253
13254 2016-05-12 Richard Biener <rguenther@suse.de>
13255
13256 PR tree-optimization/70986
13257 * cfganal.c: Include cfgloop.h.
13258 (dfs_find_deadend): Prefer to take edges exiting loops.
13259
13260 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13261
13262 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13263 compile and run time.
13264
13265 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
13266
13267 PR c/43651
13268 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13269
13270 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
13271
13272 * config/i386/i386.c (legitimize_pic_address): Use
13273 copy_to_suggested_reg instead of gen_movsi.
13274
13275 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13276
13277 * config/rs6000/predicates.md (quad_memory_operand): Move most of
13278 the code into quad_address_p and call it to share code with
13279 vsx_quad_dform_memory_operand.
13280 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13281 d-form support.
13282 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13283 bit instead of being a separate word. Split -mpower9-dform into
13284 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13285 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13286 for the register class supporting 128-bit quad word memory offsets.
13287 (mode_supports_vsx_dform_quad): Helper function to return if the
13288 register class uses quad word memory offsets.
13289 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13290 (rs6000_debug_reg_global): Always print if we are using LRA or not.
13291 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13292 instructions are enabled, set up the appropriate addr_masks for
13293 128-bit types.
13294 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13295 -mpower9-dform-scalar, instead of -mpower9-dform.
13296 (rs6000_option_override_internal): Split -mpower9-dform into two
13297 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
13298 -mpower9-dform switch sets or clears both. If we are not using
13299 the LRA register allocator, do not enable -mpower9-dform-vector by
13300 default. If we are using LRA, enable -mpower9-dform-vector and
13301 -mvsx-timode if it is appropriate. Issue a warning if either
13302 -mpower9-dform-vector or -mvsx-timode are explicitly used without
13303 enabling LRA.
13304 (quad_address_offset_p): New helper function to return if the
13305 offset is legal for quad word memory instructions.
13306 (quad_address_p): New function to determin if GPR or vector
13307 register quad word memory addresses are legal.
13308 (mem_operand_gpr): Validate quad word address offsets.
13309 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13310 d-form (register + offset) instructions.
13311 (offsettable_ok_by_alignment): Likewise.
13312 (rs6000_legitimate_offset_address_p): Likewise.
13313 (legitimate_lo_sum_address_p): Likewise.
13314 (rs6000_legitimize_address): Likewise.
13315 (rs6000_legitimize_reload_address): Add more debug statements for
13316 -mdebug=addr.
13317 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13318 d-form instructions.
13319 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13320 d-form instructions. Distinguish different cases in debug
13321 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13322 d-form instructions.
13323 (rs6000_preferred_reload_class): Likewise.
13324 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13325 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
13326 of the ISA 2.06 indexed memory instructions.
13327 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13328 use them to save/restore the saved vector registers instead of
13329 using Altivec instructions.
13330 (rs6000_emit_epilogue): Likewise.
13331 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13332 (rs6000_opt_masks): Split -mpower9-dform into
13333 -mpower9-dform-scalar and -mpower9-dform-vector.
13334 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13335 was not selected.
13336 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13337 ISA 3.0 vector indexed memory instructions, and fold the code into
13338 the normal mov<mode> patterns.
13339 (p9_vecstore_<mode>): Likewise.
13340 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13341 instructions.
13342 (vsx_movti_64bit): Likewise.
13343 (vsx_movti_32bit): Likewise.
13344 * config/rs6000/constraints.md (wO constraint): New constraint for
13345 ISA 3.0 vector d-form support.
13346 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13347 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
13348 include -mpower9-dform-vector until we switch over to LRA.
13349 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13350 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13351 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13352 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13353 for -mpower9-dform and -mlra.
13354 * doc/md.texi (wO constraint): Document wO constraint.
13355
13356 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
13357
13358 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13359 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13360 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13361 Move handling of non-insn arguments inline into the sole user:
13362 (output_trans_func): ...here.
13363 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13364 in emitted function prototype.
13365 (output_internal_insn_latency_func): Ditto. Simplify.
13366 (output_internal_maximal_insn_latency_func): Ditto. Delete
13367 always-unused argument.
13368 (output_insn_latency_func): Ditto.
13369 (output_maximal_insn_latency_func): Ditto.
13370
13371 2016-05-11 Richard Biener <rguenther@suse.de>
13372
13373 PR tree-optimization/71055
13374 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13375 sth with precision not equal to access size verify we don't chop
13376 off bits.
13377
13378 2016-05-11 Richard Biener <rguenther@suse.de>
13379
13380 PR debug/71057
13381 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13382 (dwarf2out_finish): Move retry_incomplete_types call ...
13383 (dwarf2out_early_finish): ... here.
13384
13385 2016-05-11 Richard Biener <rguenther@suse.de>
13386
13387 PR middle-end/71002
13388 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13389 if the langhook insists on it.
13390 * fold-const.c (make_bit_field_ref): Add arg for the original
13391 reference and preserve its alias-set.
13392 (decode_field_reference): Take exp by reference and adjust it
13393 to the original memory reference.
13394 (optimize_bit_field_compare): Adjust callers.
13395 (fold_truth_andor_1): Likewise.
13396 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13397
13398 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
13399
13400 PR middle-end/70807
13401 * cfgrtl.h (delete_insn_and_edges): Now return bool.
13402 * cfgrtl.c (delete_insn_and_edges): Likewise.
13403 * config/i386/i386.c (convert_scalars_to_vector): Remove
13404 redundant code.
13405 * cse.c (cse_insn): Compute cse_cfg_altered.
13406 (delete_trivially_dead_insns): Likewise.
13407 (cse_cc_succs): Likewise.
13408 (rest_of_handle_cse): Free dominance info if required.
13409 (rest_of_handle_cse2): Likewise.
13410 (rest_of_handle_cse_after_global_opts): Likewise.
13411
13412 2016-05-11 Alan Modra <amodra@gmail.com>
13413
13414 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13415 abi_v4_pass_in_fpr): New functions.
13416 (rs6000_function_arg_boundary): Exclude complex IBM long double
13417 from 64-bit alignment when ABI_V4.
13418 (rs6000_function_arg, rs6000_function_arg_advance_1,
13419 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13420
13421 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
13422
13423 PR rtl-optimization/71028
13424 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13425 jump with just a return in the fallthrough block if the branch
13426 block contains just a return as well.
13427
13428 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
13429
13430 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13431 * match.pd ((X & Y) ^ Y): ... this.
13432 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13433 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13434
13435 2016-05-10 David Malcolm <dmalcolm@redhat.com>
13436
13437 * read-md.c (require_char_ws): New function.
13438 (read_string): Simplify using require_char_ws.
13439 (handle_constants): Likewise.
13440 (handle_enum): Likewise.
13441 (handle_file): Likewise.
13442 * read-md.h (require_char_ws): New declaration.
13443 * read-rtl.c (read_conditions): Simplify using require_char_ws.
13444 (read_mapping): Likewise.
13445 (read_rtx_code): Likewise.
13446 (read_nested_rtx): Likewise.
13447
13448 2016-05-10 James Norris <jnorris@codesourcery.com>
13449
13450 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13451 if offloading is enabled and -fopenacc or -fopenmp is specified.
13452 (CRTOFFLOADEND): Likewise.
13453 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13454 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13455
13456 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
13457
13458 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13459 gotoff_operand code paths. Use copy_to_suggested_regs and
13460 expand_simple_binop where appropriate. Cleanup.
13461
13462 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
13463
13464 PR target/70799
13465 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13466 integer constants.
13467 (dimode_scalar_chain::vector_const_cost): New.
13468 (dimode_scalar_chain::compute_convert_gain): Handle constants.
13469 (dimode_scalar_chain::convert_op): Likewise.
13470 (dimode_scalar_chain::convert_insn): Likewise.
13471
13472 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
13473
13474 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13475 unary operation, not a binary one.
13476
13477 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
13478
13479 PR middle-end/70877
13480 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13481 calls with type casted fndecl.
13482
13483 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
13484
13485 PR tree-optimization/70786
13486 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13487 * calls.c (initialize_argument_information): Bind bounds
13488 with corresponding args passed by reference.
13489
13490 2016-05-10 Jakub Jelinek <jakub@redhat.com>
13491
13492 PR target/70927
13493 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13494 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13495 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13496 accordingly.
13497
13498 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13499
13500 PR target/70963
13501 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13502 code for a zero scale factor.
13503 (vsx_xvcvdpuxds_scale): Likewise.
13504
13505 2016-05-10 David Malcolm <dmalcolm@redhat.com>
13506
13507 * diagnostic-show-locus.c (layout::layout): Call show_ruler
13508 if show_ruler_p was set on the context.
13509 (layout::show_ruler): New method.
13510 * diagnostic.h (struct diagnostic_context): Add field
13511 "show_ruler_p".
13512
13513 2016-05-10 Richard Biener <rguenther@suse.de>
13514
13515 PR tree-optimization/71039
13516 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13517 (chk_uses): New function.
13518 (propagate_with_phi): Verify we can safely replicate the lhs of an
13519 aggregate assignment on all incoming edges.
13520
13521 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
13522
13523 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13524 Forward declare.
13525 (rx_atomic_sequence): New class.
13526 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13527 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13528 non-inline.
13529 (rx_atomic_sequence::rx_atomic_sequence,
13530 rx_atomic_sequence::~rx_atomic_sequence): New functions.
13531 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13532 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13533 CTRLREG_INTB): New constants.
13534 (FETCHOP): New code iterator.
13535 (fethcop_name, fetchop_name2): New iterator code attributes.
13536 (QIHI): New mode iterator.
13537 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13538 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13539 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13540
13541 2016-05-10 Martin Liska <mliska@suse.cz>
13542
13543 * tree-inline.c (remap_dependence_clique): Do not remap
13544 debugging statements.
13545
13546 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13547
13548 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13549 ("*fixuns_truncdfdi2_z13")
13550 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13551 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13552 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13553
13554 2016-05-10 Richard Biener <rguenther@suse.de>
13555
13556 PR tree-optimization/70497
13557 PR tree-optimization/28367
13558 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13559 split out from ...
13560 (visit_reference_op_load): ... here.
13561 (vn_reference_lookup_3): Use it to handle subreg-like accesses
13562 with simplified BIT_FIELD_REFs.
13563 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13564 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13565 correctly.
13566
13567 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
13568
13569 * dwarf2out.c (add_abstract_origin_attribute): Adjust
13570 documentation comment. For BLOCK nodes, add a
13571 DW_AT_abstract_origin attribute that points to the DIE generated
13572 for the origin BLOCK.
13573 (gen_lexical_block_die): Call add_abstract_origin_attribute for
13574 blocks from inlined functions.
13575
13576 2016-05-10 Alan Modra <amodra@gmail.com>
13577
13578 PR target/70947
13579 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13580 regrename modifying insns saving lr before __morestack call.
13581 * config/rs6000/rs6000.md (split_stack_return): Similarly for
13582 insns restoring lr after __morestack call.
13583
13584 2016-05-09 Jakub Jelinek <jakub@redhat.com>
13585
13586 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
13587 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
13588 expanders.
13589 * config/i386/sse.md (vec_interleave_high<mode>,
13590 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
13591 <avx512>_vpermt2var<mode>3_maskz): Likewise.
13592
13593 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13594
13595 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
13596 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
13597 parallel reassociation for power8 and forward.
13598
13599 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
13600
13601 * config/i386/i386.md (absneg splitters with general regs): Use
13602 general_reg_operand predicate.
13603 (btsq peephole2): Use x86_64_immediate_operand to check if new
13604 value is suitable for immediate operand. Generate emitted insn
13605 using RTL expressions.
13606 (btcq peephole2): Ditto.
13607 (btrq peephole2): Ditto. Generate correct immediate operand
13608 for AND masking.
13609
13610 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
13611
13612 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
13613 bitpos.
13614
13615 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
13616
13617 * tree-affine.c (wide_int_constant_multiple_p): Add missing
13618 pointer dereference.
13619
13620 2016-05-09 Richard Biener <rguenther@suse.de>
13621
13622 PR tree-optimization/70985
13623 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
13624 op0 isn't a gimple register.
13625
13626 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
13627
13628 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
13629 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
13630 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
13631 (i6400_fpu_mult): New cpu units.
13632 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
13633 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
13634 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
13635 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
13636 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
13637 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
13638 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
13639 (i6400_msa_long_float4, i6400_msa_long_float5)
13640 (i6400_msa_long_float8, i6400_msa_fdiv_df)
13641 (i6400_msa_fdiv_sf): New reservations.
13642 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
13643 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
13644 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
13645 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
13646 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
13647 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
13648 (msa_short_cmp, msa_short_float2, msa_short_logic3)
13649 (msa_short_store4, msa_long_load, msa_short_store)
13650 (msa_long_logic, msa_long_float2, msa_long_float4)
13651 (msa_long_float5, msa_long_float8, msa_long_mult)
13652 (msa_long_fdiv, msa_long_div): New reservations.
13653
13654 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
13655 Sameera Deshpande <sameera.deshpande@imgtec.com>
13656 Matthew Fortune <matthew.fortune@imgtec.com>
13657 Graham Stott <graham.stott@imgtec.com>
13658 Chao-ying Fu <chao-ying.fu@imgtec.com>
13659
13660 * config.gcc: Add MSA header file for mips*-*-* target.
13661 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
13662 (Ubv8i, Urv8): New constraints.
13663 * config/mips/mips-ftypes.def: Add function types for MSA
13664 builtins.
13665 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
13666 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
13667 * config/mips/mips-msa.md: New file.
13668 * config/mips/mips-protos.h
13669 (mips_split_128bit_const_insns): New prototype.
13670 (mips_msa_idiv_insns): Likewise.
13671 (mips_split_128bit_move): Likewise.
13672 (mips_split_128bit_move_p): Likewise.
13673 (mips_split_msa_copy_d): Likewise.
13674 (mips_split_msa_insert_d): Likewise.
13675 (mips_split_msa_fill_d): Likewise.
13676 (mips_expand_msa_branch): Likewise.
13677 (mips_const_vector_same_val_p): Likewise.
13678 (mips_const_vector_same_bytes_p): Likewise.
13679 (mips_const_vector_same_int_p): Likewise.
13680 (mips_const_vector_shuffle_set_p): Likewise.
13681 (mips_const_vector_bitimm_set_p): Likewise.
13682 (mips_const_vector_bitimm_clr_p): Likewise.
13683 (mips_msa_vec_parallel_const_half): Likewise.
13684 (mips_msa_output_division): Likewise.
13685 (mips_ldst_scaled_shift): Likewise.
13686 (mips_expand_vec_cond_expr): Likewise.
13687 * config/mips/mips.c (enum mips_builtin_type): Add
13688 MIPS_BUILTIN_MSA_TEST_BRANCH.
13689 (mips_gen_const_int_vector_shuffle): New prototype.
13690 (mips_const_vector_bitimm_set_p): New function.
13691 (mips_const_vector_bitimm_clr_p): Likewise.
13692 (mips_const_vector_same_val_p): Likewise.
13693 (mips_const_vector_same_bytes_p): Likewise.
13694 (mips_const_vector_same_int_p): Likewise.
13695 (mips_const_vector_shuffle_set_p): Likewise.
13696 (mips_symbol_insns): Forbid loading symbols via immediate for
13697 MSA.
13698 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
13699 stores.
13700 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
13701 MSA.
13702 (mips_lx_address_p): Add support load indexed address for MSA.
13703 (mips_address_insns): Add calculation of instructions needed for
13704 stores and loads for MSA.
13705 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
13706 CONST_VECTOR for MSA and let it fall through.
13707 (mips_ldst_scaled_shift): New function.
13708 (mips_subword_at_byte): Likewise.
13709 (mips_msa_idiv_insns): Likewise.
13710 (mips_legitimize_move): Validate MSA moves.
13711 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
13712 calculation of costs for MSA division.
13713 (mips_split_move_p): Check if MSA moves need splitting.
13714 (mips_split_move): Split MSA moves if necessary.
13715 (mips_split_128bit_move_p): New function.
13716 (mips_split_128bit_move): Likewise.
13717 (mips_split_msa_copy_d): Likewise.
13718 (mips_split_msa_insert_d): Likewise.
13719 (mips_split_msa_fill_d): Likewise.
13720 (mips_output_move): Handle MSA moves.
13721 (mips_expand_msa_branch): New function.
13722 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
13723 Reinstate 'y' modifier.
13724 (mips_file_start): Add MSA .gnu_attribute.
13725 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
13726 FPRs.
13727 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
13728 (mips_class_max_nregs): Add register size for MSA supported mode.
13729 (mips_cannot_change_mode_class): Allow conversion between MSA
13730 vector modes and TImode.
13731 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
13732 instruction.
13733 (mips_secondary_reload_class): Force MSA loads/stores via memory.
13734 (mips_preferred_simd_mode): Add preffered modes for MSA.
13735 (mips_vector_mode_supported_p): Add MSA supported modes.
13736 (mips_autovectorize_vector_sizes): New function.
13737 (mips_msa_output_division): Likewise.
13738 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
13739 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
13740 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
13741 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
13742 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
13743 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
13744 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
13745 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
13746 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
13747 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
13748 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
13749 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
13750 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
13751 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
13752 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
13753 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
13754 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
13755 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
13756 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
13757 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
13758 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
13759 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
13760 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
13761 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
13762 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
13763 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
13764 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
13765 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
13766 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
13767 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
13768 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
13769 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
13770 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
13771 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
13772 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
13773 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
13774 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
13775 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
13776 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
13777 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
13778 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
13779 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
13780 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
13781 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
13782 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13783 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13784 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13785 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13786 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13787 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13788 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13789 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13790 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
13791 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
13792 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
13793 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
13794 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
13795 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
13796 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
13797 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
13798 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
13799 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
13800 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
13801 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
13802 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
13803 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
13804 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
13805 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
13806 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
13807 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
13808 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
13809 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
13810 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
13811 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
13812 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
13813 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
13814 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
13815 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
13816 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
13817 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
13818 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
13819 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
13820 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
13821 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
13822 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
13823 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
13824 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
13825 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
13826 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
13827 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
13828 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
13829 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
13830 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
13831 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
13832 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
13833 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
13834 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
13835 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
13836 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
13837 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
13838 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
13839 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
13840 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
13841 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
13842 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
13843 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
13844 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
13845 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
13846 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
13847 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
13848 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
13849 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
13850 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
13851 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
13852 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
13853 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
13854 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
13855 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
13856 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
13857 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
13858 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
13859 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
13860 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
13861 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
13862 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
13863 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
13864 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
13865 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
13866 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
13867 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
13868 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
13869 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
13870 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
13871 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
13872 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
13873 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
13874 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
13875 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
13876 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
13877 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
13878 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
13879 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
13880 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
13881 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
13882 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
13883 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
13884 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
13885 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
13886 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
13887 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
13888 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
13889 move_v builtins.
13890 (mips_get_builtin_decl_index): New array.
13891 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
13892 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
13893 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
13894 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
13895 (mips_init_builtins): Initialize mips_get_builtin_decl_index
13896 array.
13897 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13898 hook.
13899 (mips_expand_builtin_insn): Prepare operands for
13900 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
13901 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
13902 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
13903 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
13904 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
13905 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
13906 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
13907 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
13908 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
13909 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
13910 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
13911 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
13912 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
13913 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
13914 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
13915 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
13916 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
13917 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
13918 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
13919 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
13920 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
13921 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
13922 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
13923 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
13924 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
13925 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
13926 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
13927 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
13928 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
13929 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
13930 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
13931 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
13932 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
13933 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
13934 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
13935 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
13936 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
13937 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
13938 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
13939 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
13940 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
13941 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
13942 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
13943 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
13944 These are set implicitly and an error is reported if overridden.
13945 (mips_expand_builtin_msa_test_branch): New function.
13946 (mips_expand_msa_shuffle): Likewise.
13947 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
13948 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
13949 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
13950 (mips_expand_vec_unpack): Add support for MSA.
13951 (mips_expand_vector_init): Likewise.
13952 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
13953 instead of const0_rtx.
13954 (mips_msa_vec_parallel_const_half): New function.
13955 (mips_gen_const_int_vector): Likewise.
13956 (mips_gen_const_int_vector_shuffle): Likewise.
13957 (mips_expand_msa_cmp): Likewise.
13958 (mips_expand_vec_cond_expr): Likewise.
13959 * config/mips/mips.h
13960 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
13961 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
13962 specified.
13963 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
13964 (ISA_HAS_MSA): New macro.
13965 (UNITS_PER_MSA_REG): Likewise.
13966 (BITS_PER_MSA_REG): Likewise.
13967 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
13968 (MSA_REG_FIRST): New macro.
13969 (MSA_REG_LAST): Likewise.
13970 (MSA_REG_NUM): Likewise.
13971 (MSA_REG_P): Likewise.
13972 (MSA_REG_RTX_P): Likewise.
13973 (MSA_SUPPORTED_MODE_P): Likewise.
13974 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
13975 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
13976 * config/mips/mips.md: Include mips-msa.md.
13977 (alu_type): Add simd_add.
13978 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
13979 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
13980 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
13981 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
13982 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
13983 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
13984 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
13985 simd_move, simd_load, simd_store. Choose "multi" for moves
13986 for "qword_mode".
13987 (qword_mode): New attribute.
13988 (insn_count): Add instruction count for quad moves.
13989 Increase the count for MIPS SIMD division.
13990 (UNITMODE): Add UNITMODEs for vector types.
13991 (addsub): New code iterator.
13992 * config/mips/mips.opt (mmsa): New option.
13993 * config/mips/msa.h: New file.
13994 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
13995 specified.
13996 * config/mips/mti-linux.h: Likewise.
13997 * config/mips/predicates.md
13998 (const_msa_branch_operand): New constraint.
13999 (const_uimm3_operand): Likewise.
14000 (const_uimm4_operand): Likewise.
14001 (const_uimm5_operand): Likewise.
14002 (const_uimm8_operand): Likewise.
14003 (const_imm5_operand): Likewise.
14004 (aq10b_operand): Likewise.
14005 (aq10h_operand): Likewise.
14006 (aq10w_operand): Likewise.
14007 (aq10d_operand): Likewise.
14008 (const_m1_operand): Likewise.
14009 (reg_or_m1_operand): Likewise.
14010 (const_exp_2_operand): Likewise.
14011 (const_exp_4_operand): Likewise.
14012 (const_exp_8_operand): Likewise.
14013 (const_exp_16_operand): Likewise.
14014 (const_vector_same_val_operand): Likewise.
14015 (const_vector_same_simm5_operand): Likewise.
14016 (const_vector_same_uimm5_operand): Likewise.
14017 (const_vector_same_uimm6_operand): Likewise.
14018 (const_vector_same_uimm8_operand): Likewise.
14019 (par_const_vector_shf_set_operand): Likewise.
14020 (reg_or_vector_same_val_operand): Likewise.
14021 (reg_or_vector_same_simm5_operand): Likewise.
14022 (reg_or_vector_same_uimm6_operand): Likewise.
14023 * doc/extend.texi (MIPS SIMD Architecture Functions): New
14024 section.
14025 * doc/invoke.texi (-mmsa): Document new option.
14026
14027 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14028
14029 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
14030 * configure: Regenerate.
14031 * config.in: Regenerate.
14032 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
14033 on -fvtable-verify.
14034 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
14035 (ENDFILE_VTV_SPEC): Define.
14036
14037 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
14038
14039 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
14040 registers in all interrupt handlers if necessary.
14041 (rl78_option_override): Add warning.
14042 (MUST_SAVE_MDUC_REGISTERS): New macro.
14043 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
14044 * config/rl78/rl78.c (check_mduc_usage): New function.
14045 (mduc_regs): New structure to hold MDUC register data.
14046 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
14047 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
14048 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
14049 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14050 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14051 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14052
14053 2016-05-09 Bin Cheng <bin.cheng@arm.com>
14054
14055 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14056 (tree-ssa-loop-niter.h): Ditto.
14057 (idx_within_array_bound, ref_within_array_bound): New functions.
14058 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14059 Factor out check on writable base object to ...
14060 (base_object_writable): ... here.
14061
14062 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14063
14064 * config/arm/arm.md (probe_stack): Add modes to set source
14065 and destination.
14066
14067 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
14068
14069 * regrename.c (base_reg_class_for_rename): New static function.
14070 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14071
14072 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
14073
14074 * cgraph.c (thunk_adjust): Export.
14075 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14076 * cgraphunit.c (thunk_adjust): Export.
14077 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14078 thunks.
14079 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14080 inlinable.
14081 * tree-inline.c (expand_call_inline): Expand thunks inline.
14082
14083 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
14084
14085 PR target/70998
14086 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14087 (*sse2_vd_cvtss2sd): Ditto.
14088 * config/i386/i386.md
14089 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14090 Generate *sse2_vd_cvtsd2ss pattern.
14091 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14092 Generate *sse2_vd_cvtss2sd pattern.
14093
14094 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
14095
14096 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14097 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
14098 users.
14099
14100 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
14101
14102 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14103 * config/sh/sh.c: Define and declare variables on first use throughout
14104 the file.
14105 (current_function_interrupt): Change to bool type.
14106 (frame_insn): Rename to emit_frame_insn and update users.
14107 (push_regs): Use bool for 'interrupt_handler' argument.
14108 (save_schedule_s): Remove.
14109 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14110 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14111 targetm.asm_out.unaligned_op.di.
14112 (gen_far_branch): Remove redundant forward declaration.
14113 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14114 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14115 (sh_set_return_address, sh_function_ok_for_sibcall,
14116 scavenge_reg): Update comments.
14117 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14118 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14119 (sh_attr_renesas_p): Remove unnecessary parentheses.
14120 (branch_dest): Simplify.
14121 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14122 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14123 (CUMULATIVE_ARGS): Change macro to typedef.
14124 (current_function_interrupt): Change to bool type.
14125 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14126 Surround with __cplusplus ifdef.
14127 (sh_compare_op0, sh_compare_op1): Remove.
14128 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14129
14130 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
14131
14132 * config/arm/arm.md: (arch): Add neon.
14133 (arch_enabled): Return yes for arch neon when TARGET_NEON.
14134 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
14135 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
14136 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
14137 attributes for alt renumbering. Mark alt 3 as non-predicable.
14138 (thumb2_movdf_vfp): Likewise.
14139
14140 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
14141
14142 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14143 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14144 (*andqi_1): Add preferred_for_speed attribute to disparage
14145 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14146 (*<code>qi_1): Ditto.
14147 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14148 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14149 (*ashlqi3_1): Ditto.
14150 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14151 Add preferred_for_size attribute to disparage alternative 0 and
14152 preferred_for_speed attribute to disparage alternative 1 for
14153 TARGET_PARTIAL_REG_STALL targets.
14154
14155 2016-05-07 Tom de Vries <tom@codesourcery.com>
14156
14157 PR tree-optimization/70956
14158 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14159 def.
14160
14161 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
14162
14163 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14164 * config/sh/sh.c (sh_cbranch_distance): Implement it.
14165 * config/sh/sh.md (branch_zero): Remove define_attr.
14166 (define_delay): Disable delay slot if branch distance is one insn.
14167
14168 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
14169
14170 * config/i386/i386.md (LEAMODE): New mode attribute.
14171 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14172 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14173 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
14174 operand 2 predicate.
14175 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14176 (*lea<mode>_general_3): Ditto.
14177 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14178
14179 2016-05-06 Jakub Jelinek <jakub@redhat.com>
14180
14181 * genmddump.c (main): Convert argv from char ** to const char **.
14182
14183 2016-05-06 David Malcolm <dmalcolm@redhat.com>
14184
14185 * coretypes.h (OVERRIDE): New macro.
14186 (FINAL): New macro.
14187
14188 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
14189
14190 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14191 allow coalescing if the types are compatible.
14192
14193 2016-05-06 David Malcolm <dmalcolm@redhat.com>
14194
14195 * pass_manager.h (pass_manager::register_pass_name): New method.
14196 (pass_manager::get_pass_by_name): New method.
14197 (pass_manager::create_pass_tab): New method.
14198 (pass_manager::m_name_to_pass_map): New field.
14199 * passes.c (name_to_pass_map): Delete global in favor of field
14200 "m_name_to_pass_map" of pass_manager.
14201 (register_pass_name): Rename from a function to...
14202 (pass_manager::register_pass_name): ...this method, updating
14203 for renaming of global "name_to_pass_map" to field
14204 "m_name_to_pass_map".
14205 (create_pass_tab): Rename from a function to...
14206 (pass_manager::create_pass_tab): ...this method, updating
14207 for renaming of global "name_to_pass_map" to field.
14208 (get_pass_by_name): Rename from a function to...
14209 (pass_manager::get_pass_by_name): ...this method.
14210 (enable_disable_pass): Convert use of get_pass_by_name to
14211 a method call, locating the pass_manager singleton.
14212
14213 2016-05-06 David Malcolm <dmalcolm@redhat.com>
14214
14215 * genattr-common.c (main): Convert argv from char ** to const char **.
14216 * genattr.c (main): Likewise.
14217 * genattrtab.c (main): Likewise.
14218 * genautomata.c (initiate_automaton_gen): Likewise.
14219 (main): Likewise.
14220 * gencodes.c (main): Likewise.
14221 * genconditions.c (main): Likewise.
14222 * genconfig.c (main): Likewise.
14223 * genconstants.c (main): Likewise.
14224 * genemit.c (main): Likewise.
14225 * genenums.c (main): Likewise.
14226 * genextract.c (main): Likewise.
14227 * genflags.c (main): Likewise.
14228 * genmddeps.c (main): Likewise.
14229 * genopinit.c (main): Likewise.
14230 * genoutput.c (main): Likewise.
14231 * genpeep.c (main): Likewise.
14232 * genpreds.c (main): Likewise.
14233 * genrecog.c (main): Likewise.
14234 * gensupport.c (init_rtx_reader_args_cb): Likewise.
14235 (init_rtx_reader_args): Likewise.
14236 * gensupport.h (init_rtx_reader_args_cb): Likewise.
14237 (init_rtx_reader_args): Likewise.
14238 * gentarget-def.c (main): Likewise.
14239 * read-md.c (read_md_files): Likewise.
14240 * read-md.h (read_md_files): Likewise.
14241
14242 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
14243
14244 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14245 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14246 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14247 Remove unused predicate.
14248 (register_and_not_fp_reg_operand): Ditto.
14249
14250 2016-05-06 Martin Liska <mliska@suse.cz>
14251
14252 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14253 instead of vec as the vector is local to the function.
14254
14255 2016-05-06 Jakub Jelinek <jakub@redhat.com>
14256
14257 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14258 avx512bw alternative.
14259
14260 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14261 before the ashr<mode>3 pattern.
14262
14263 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14264 v instead of x in vex or maybe_vex alternatives, use
14265 maybe_evex instead of vex in prefix.
14266
14267 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14268 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14269 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14270 in vex or maybe_vex alternatives, use maybe_evex instead of vex
14271 in prefix.
14272
14273 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14274 v instead of x in vex or maybe_vex alternatives, use
14275 maybe_evex instead of vex in prefix.
14276
14277 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14278 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14279 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14280 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14281 alternatives, use maybe_evex instead of vex in prefix.
14282
14283 * config/i386/sse.md (vec_interleave_lowv4sf,
14284 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14285 v instead of x in vex or maybe_vex alternatives, use
14286 maybe_evex instead of vex in prefix.
14287
14288 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14289 v instead of x in vex or maybe_vex alternatives, use
14290 maybe_evex instead of vex in prefix.
14291
14292 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14293 v constraint instead of x.
14294
14295 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
14296
14297 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14298 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14299 equality first.
14300
14301 2016-05-06 Richard Biener <rguenther@suse.de>
14302
14303 PR tree-optimization/70948
14304 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14305 Properly clobber all fields of va_list for __builtin_va_start.
14306
14307 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
14308
14309 PR debug/70935
14310 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14311 loop latch destination.
14312
14313 2016-05-06 Martin Liska <mliska@suse.cz>
14314
14315 * tree-ssa-uninit.c: Apply manual changes
14316 to the GNU coding style.
14317 (prune_uninit_phi_opnds): Rename from
14318 prune_uninit_phi_opnds_in_unrealizable_paths.
14319
14320 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14321
14322 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14323 mspace): Remove deprecated options.
14324 * doc/invoke.texi (SH options): Remove -mspace.
14325
14326 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14327
14328 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14329
14330 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14331
14332 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14333 corresponding combine split pattern.
14334
14335 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14336
14337 PR target/58219
14338 * config/sh/predicates.md (long_displacement_mem_operand): New.
14339 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14340 Add movi20, movi20s alternatives. Adjust length attribute for
14341 alternatives.
14342 (movsi_ie): Allow for any FPU. Adjust length attribute for
14343 alternatives.
14344 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
14345 attribute for alternatives.
14346 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14347 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14348 length attribute for alternatives.
14349
14350 2016-05-06 Richard Biener <rguenther@suse.de>
14351
14352 PR tree-optimization/70960
14353 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14354
14355 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14356
14357 PR target/52933
14358 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14359 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14360
14361 2016-05-06 Marek Polacek <polacek@redhat.com>
14362
14363 PR sanitizer/70875
14364 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14365
14366 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
14367
14368 PR target/54089
14369 * config/sh/sh.md (*rotcr): Add another variant.
14370
14371 2016-05-06 Richard Biener <rguenther@suse.de>
14372
14373 PR middle-end/70931
14374 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14375
14376 2016-05-06 Richard Biener <rguenther@suse.de>
14377
14378 PR middle-end/70941
14379 * fold-const.c (split_tree): Always convert to the original type
14380 before negating.
14381
14382 2016-05-06 Richard Biener <rguenther@suse.de>
14383
14384 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14385 (fwprop_addr): Likewise.
14386
14387 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
14388
14389 PR target/70873
14390 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14391 New prototype.
14392 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14393 * config/i386/i386.md (push mem splitter): Use find_constant_src in
14394 the splitter condition.
14395 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14396 the splitter condition.
14397 (FP float_extend load splitter): Ditto.
14398
14399 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
14400
14401 * config/i386/i386.md (peehole2 patterns): Change true_regnum
14402 to REGNO in all peephole2 patterns.
14403 (post-reload splitters): Change true_regnum to REGNO in
14404 post-reload splitters.
14405 (zero_extend splitters): Use general_reg_operand and
14406 nonimmediate_gr_operand predicates.
14407
14408 2016-05-05 Jakub Jelinek <jakub@redhat.com>
14409
14410 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14411 v constraint instead of x.
14412
14413 2016-05-05 Alan Modra <amodra@gmail.com>
14414
14415 PR target/68662
14416 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14417 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
14418 TARGET_NO_FP_IN_TOC for -mrelocatable.
14419 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14420 TARGET_RELOCATABLE test.
14421 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14422 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14423 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14424 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14425 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14426 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14427 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14428 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14429 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14430 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14431 Likewise.
14432 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14433 (rs6000_stack_info): Likewise.
14434 (rs6000_elf_asm_out_constructor): Likewise.
14435 (rs6000_elf_asm_out_destructor): Likewise.
14436 (rs6000_elf_declare_function_name): Likewise.
14437 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14438 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14439 Don't define.
14440
14441 2016-05-05 Alan Modra <amodra@gmail.com>
14442
14443 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14444
14445 2016-05-05 Alan Modra <amodra@gmail.com>
14446
14447 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14448 out-of-line gpr restore for one or two regs if that would add
14449 a save of lr.
14450
14451 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
14452
14453 PR target/70873
14454 * config/i386/i386.md
14455 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14456 Change to post-epilogue_completed late splitter. Use sse_reg_operand
14457 as operand 0 predicate.
14458 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14459 Ditto.
14460 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14461 Ditto. Emit the pattern using RTX.
14462
14463 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14464 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
14465 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
14466 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14467 Ditto.
14468 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14469 sse_reg_operand as operand 0 predicate.
14470
14471 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14472 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
14473 instead of gen_rtx_REG.
14474 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14475 Ditto.
14476
14477 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14478
14479 * function.c (emit_use_return_register_into_block): Delete.
14480 (gen_return_pattern): Delete.
14481 (emit_return_into_block): Delete.
14482 (active_insn_between): Delete.
14483 (convert_jumps_to_returns): Delete.
14484 (emit_return_for_exit): Delete.
14485 (thread_prologue_and_epilogue_insns): Delete all code dealing with
14486 simple_return for shrink-wrapped blocks.
14487 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14488 end of blocks that need one.
14489 (get_unconverted_simple_return): Delete.
14490 (convert_to_simple_return): Delete.
14491 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14492 (convert_to_simple_return): Ditto.
14493
14494 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14495
14496 * cfgcleanup.c (bb_is_just_return): New function.
14497 (try_optimize_cfg): Simplify jumps to return, branches to return,
14498 and branches around return.
14499
14500 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14501
14502 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14503 branch to a return.
14504
14505 2016-05-04 Jakub Jelinek <jakub@redhat.com>
14506
14507 PR c++/70906
14508 PR c++/70933
14509 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14510 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14511 assert flags & OEP_HASH_CHECK, instead of asserting it
14512 never happens. Handle TARGET_EXPR.
14513 * fold-const.c (operand_equal_p): For hash verification,
14514 or in OEP_HASH_CHECK into flags.
14515
14516 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
14517
14518 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14519 comment.
14520 (compute_samebase_partition_bases): Fix typo.
14521
14522 2016-05-04 Jakub Jelinek <jakub@redhat.com>
14523
14524 * config/i386/sse.md (vec_interleave_highv8sf,
14525 vec_interleave_lowv8sf, vec_interleave_highv4df,
14526 vec_interleave_lowv4df): Remove constraints from expanders.
14527
14528 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14529
14530 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
14531
14532 * tree-inline.c (expand_call_inline): Fix path dealing with
14533 making lhs of call statement undefined.
14534
14535 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
14536
14537 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14538 Check availability on NODE, too.
14539 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14540 (cgraph_node::call_for_symbol_and_aliases): Likewise.
14541 (varpool_node::call_for_symbol_and_aliase): Likewise.
14542 * ipa-pure-const.c (add_new_function): Analyze all bodies.
14543 (propagate_pure_const): Propagate across interposable functions, too.
14544 (skip_function_for_local_pure_const): Do not skip interposable bodies
14545 with aliases.
14546 (pass_local_pure_const::execute): Update.
14547
14548 2016-05-04 Marek Polacek <polacek@redhat.com>
14549
14550 * doc/invoke.texi: Document -Wdangling-else.
14551
14552 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14553
14554 * config.gcc: Error out when conflicting multilib is detected. Do not
14555 loop over multilibs since no combination is legal.
14556
14557 2016-05-04 Alan Modra <amodra@gmail.com>
14558
14559 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14560 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14561 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14562 Align .toc.
14563
14564 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
14565
14566 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14567 Clean up p5600 comments.
14568
14569 2016-05-04 Richard Biener <rguenther@suse.de>
14570
14571 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14572 constructor simplifications.
14573 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14574
14575 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
14576
14577 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14578 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14579 result.set_rtx is null instead of aborting.
14580 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14581 Always enable.
14582 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
14583 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
14584 *mov<mode>_store_postinc): New patterns.
14585
14586 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
14587
14588 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
14589 as commutative. Check both conversions are NOP.
14590 ((A & B) OP (C & B)): Remove.
14591
14592 2016-05-04 Alan Modra <amodra@gmail.com>
14593
14594 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
14595
14596 2016-05-04 Alan Modra <amodra@gmail.com>
14597
14598 PR target/70866
14599 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
14600 when cr2,3,4 are all fixed regs.
14601
14602 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
14603
14604 PR rtl-optimization/57193
14605 * opts.c (default_options_table): Revert OPT_frename_registers change.
14606 * doc/invoke.texi (-frename-registers, -O2): Likewise.
14607
14608 2016-05-03 Martin Sebor <msebor@redhat.com>
14609
14610 PR c++/66561
14611 * builtins.c (fold_builtin_FILE): New function.
14612 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
14613 (fold_builtin_0): Call them.
14614 * gimplify.c (gimplify_call_expr): Remove the handling of
14615 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
14616
14617 PR c++/66561
14618 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
14619 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
14620 constants.
14621
14622 PR c++/66639
14623 * doc/extend.texi (Function Names as Strings): Update __func__,
14624 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
14625 constants.
14626
14627 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14628 Richard Biener <rguenther@suse.de>
14629
14630 PR tree-optimization/70916
14631 * tree-if-conv.c: Include cfganal.h.
14632 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
14633 and remove_fake_exit_edges around the optimization pass.
14634
14635 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
14636
14637 * cgraph.c (symbol_table::create_edge): Set inline_failed.
14638 (cgraph_edge::make_direct): Likewise.
14639 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
14640 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
14641 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
14642 (CIF_THUNK): New code.
14643 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
14644 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
14645 (compute_inline_parameters): Set inline_failed for thunks.
14646 (inline_analyze_function): Cleanup.
14647 * ipa-inline.c (can_inline_edge_p): Do not deal with
14648 call_stmt_cannot_inline_p.
14649 (can_early_inline_edge_p): Likewise.
14650 (early_inliner): Initialize inline_failed.
14651 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
14652
14653 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
14654
14655 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
14656 from nonimm_ssenomem_operand.
14657 (nonimm_ssenomem_operand): New predicate.
14658 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
14659 as operand 0 predicate.
14660 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
14661 Disable unsupported alternatives using "enabled" attribute.
14662 Use register_ssemem_operand as operand 0 predicate.
14663 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
14664
14665 2016-05-03 Marek Polacek <polacek@redhat.com>
14666
14667 PR c/70859
14668 * input.c (expansion_point_location): New function.
14669 * input.h (expansion_point_location): Declare.
14670
14671 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
14672
14673 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
14674 occurence with frame_offset_ ones.
14675
14676 2016-05-03 Alan Modra <amodra@gmail.com>
14677
14678 PR rtl-optimization/70890
14679 * ira.c (combine_and_move_insns): When moving def_insn, remove
14680 equivs on use_insn.
14681
14682 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
14683
14684 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
14685 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
14686 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
14687 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
14688
14689 2016-05-03 Alan Modra <amodra@gmail.com>
14690
14691 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
14692 for SAVE_MULTIPLE/STORE_MULTIPLE.
14693
14694 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14695
14696 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
14697 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
14698
14699 2016-05-03 Richard Biener <rguenther@suse.de>
14700
14701 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
14702 default true.
14703 (gimplify_arg): Likewise.
14704 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
14705 re-writing the result to a decl if required.
14706 (internal_get_tmp_var): Add allow_ssa parameter
14707 and override into_ssa with it.
14708 (get_formal_tmp_var): Adjust.
14709 (get_initialized_tmp_var): Add allow_ssa parameter.
14710 (gimplify_arg): Add allow_ssa parameter and avoid generating
14711 SSA names for the result false.
14712 (gimplify_call_expr): If the call may return twice do not
14713 gimplify parameters into SSA.
14714 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
14715 (gimplify_modify_expr): Adjust assert. For noreturn calls
14716 with a SSA name LHS adjust its def.
14717 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
14718 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
14719 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
14720 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
14721 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
14722 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
14723 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
14724 (optimize_target_teams): Do not allow SSA names for clause operands.
14725 (gimplify_expr): Likewise for where we mark the result addressable.
14726 * passes.def (pass_init_datastructures): Remove.
14727 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
14728 (rewrite_stmt): Likewise.
14729 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
14730 (replace_locals_op): Replace SSA names.
14731 (copy_gimple_seq_and_replace_locals): Init src_cfun.
14732 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
14733 * cgraph.c (release_function_body): Free CFG annotations only
14734 when we have a CFG. Simplify.
14735 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
14736 force_gimple_operand instead of get_initialized_tmp_var.
14737 * tree-pass.h (make_pass_init_datastructures): Remove.
14738 * tree-ssa.c (execute_init_datastructures): Remove.
14739 (pass_data_init_datastructures): Likewise.
14740 (class pass_init_datastructures): Likewise.
14741 (make_pass_init_datastructures): Likewise.
14742 * omp-low.c (create_omp_child_function): Init SSA data structures.
14743 (grid_expand_target_grid_body): Likewise.
14744 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
14745 name before adding it to names_to_release.
14746 (remove_bb): Always release SSA defs.
14747 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
14748 before dereferencing it.
14749 * cgraphunit.c (init_lowered_empty_function): Always
14750 int SSA data structures.
14751 * tree-ssanames.c (release_defs): Remove assert that we are in
14752 SSA form.
14753 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
14754
14755 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14756 Uros Bizjak <ubizjak@gmail.com>
14757
14758 PR rtl-optimization/70467
14759 * config/i386/predicates.md (x86_64_hilo_int_operand,
14760 x86_64_hilo_general_operand): New predicates.
14761 * config/i386/constraints.md (Wd): New constraint.
14762 * config/i386/i386.md (mode attr di): Use Wd instead of e.
14763 (general_hilo_operand): New mode attr.
14764 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
14765 instead of <general_operand>.
14766 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
14767 x86_64_hilo_general_operand instead of <general_operand>.
14768
14769 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14770
14771 PR tree-optimization/70916
14772 * tree-if-conv.c (constant_or_ssa_name): Removed.
14773 (fold_build_cond_expr): Use is_gimple_val instead of
14774 constant_or_ssa_name.
14775
14776 PR tree-optimization/70916
14777 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
14778 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
14779
14780 PR target/49244
14781 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
14782 (optimize_atomic_bit_test_and): New function.
14783 (pass_fold_builtins::execute): Use it.
14784 * optabs.def (atomic_bit_test_and_set_optab,
14785 atomic_bit_test_and_complement_optab,
14786 atomic_bit_test_and_reset_optab): New optabs.
14787 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
14788 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
14789 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
14790 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
14791 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
14792 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
14793 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
14794 * doc/md.texi (atomic_bit_test_and_set@var{mode},
14795 atomic_bit_test_and_complement@var{mode},
14796 atomic_bit_test_and_reset@var{mode}): Document.
14797 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
14798 atomic_bit_test_and_complement<mode>,
14799 atomic_bit_test_and_reset<mode>): New expanders.
14800 (atomic_bit_test_and_set<mode>_1,
14801 atomic_bit_test_and_complement<mode>_1,
14802 atomic_bit_test_and_reset<mode>_1): New insns.
14803
14804 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
14805
14806 PR rtl-optimization/70687
14807 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
14808 instead of unsigned HOST_WIDE_INT.
14809
14810 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
14811
14812 PR rtl-optimization/44281
14813 * hard-reg-set.h (struct target_hard_regs): New field
14814 x_fixed_nonglobal_reg_set.
14815 (fixed_nonglobal_reg_set): New macro.
14816 * reginfo.c (init_reg_sets_1): Initialize it.
14817 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
14818 of fixed_reg_set.
14819 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
14820
14821 2016-05-03 Bin Cheng <bin.cheng@arm.com>
14822
14823 PR tree-optimization/56541
14824 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
14825 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
14826 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
14827 (any_complicated_phi): new static variable.
14828 (aggressive_if_conv): delete.
14829 (if_convertible_phi_p): support phis with more than two arguments.
14830 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
14831 critical pred edges.
14832 (ifcvt_split_critical_edges): support phis with more than two
14833 arguments by checking new parameter. only split critical edges
14834 if needed.
14835 (tree_if_conversion): handle simd pragma marked loop using new
14836 local variable aggressive_if_conv. check any_complicated_phi.
14837
14838 2016-05-03 Bin Cheng <bin.cheng@arm.com>
14839
14840 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
14841 before using it.
14842
14843 2016-05-03 Bin Cheng <bin.cheng@arm.com>
14844
14845 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
14846 cbase.
14847
14848 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14849
14850 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
14851 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
14852 define_insn_and_split.
14853 (mulsi3_i): New define_insn_and_split.
14854 (mulsi3_call): Convert to define_insn.
14855 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
14856 Remove constraints.
14857
14858 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14859
14860 * machmode.h (mode_complex): Add support to give the complex mode
14861 for a given mode.
14862 (GET_MODE_COMPLEX_MODE): Likewise.
14863 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
14864 stored by build_complex_type and gfc_build_complex_type instead of
14865 trying to figure out the appropriate mode based on the size. Raise
14866 an assertion error, if the type was not set.
14867 * genmodes.c (struct mode_data): Add field for the complex type of
14868 the given type.
14869 (blank_mode): Likewise.
14870 (make_complex_modes): Remember the complex mode created in the
14871 base type.
14872 (emit_mode_complex): Write out the mode_complex array to map a
14873 type mode to the complex version.
14874 (emit_insn_modes_c): Likewise.
14875 * tree.c (build_complex_type): Set the complex type to use before
14876 calling layout_type.
14877 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
14878 support for __float128 complex datatypes.
14879 (rs6000_hard_regno_mode_ok): Likewise.
14880 (rs6000_setup_reg_addr_masks): Likewise.
14881 (rs6000_complex_function_value): Likewise.
14882 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
14883 __float128 and __ibm128 complex.
14884 (FLOAT128_IBM_P): Likewise.
14885 (ALTIVEC_ARG_MAX_RETURN): Likewise.
14886 * doc/extend.texi (Additional Floating Types): Document that
14887 -mfloat128 must be used to enable __float128. Document complex
14888 __float128 and __ibm128 support.
14889
14890 2016-05-02 Jakub Jelinek <jakub@redhat.com>
14891
14892 PR target/49244
14893 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
14894 char/short arguments promoted to int because of promote_prototypes.
14895
14896 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
14897
14898 * config/i386/predicates.md (register_ssemem_operand): New predicate.
14899 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
14900 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
14901 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
14902 alternatives using "enabled" attribute. Use register_ssemem_operand
14903 as operand 1 predicate.
14904 (*cmpi<unord>xf_i387): Split XFmode pattern from
14905 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
14906 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
14907 *absneg<mode>2_i387. Disable unsupported alternatives using
14908 "enabled" attribute.
14909 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
14910
14911 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
14912
14913 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
14914 marker.
14915 (oacc_loop_process): Check mask for loop termination.
14916
14917 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
14918
14919 * cif-code.def (CIF_THUNK): Add.
14920 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
14921 accidental change.
14922
14923 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
14924
14925 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
14926 (dump_inline_summary): Dump it.
14927 (fp_expression_p): New predicate.
14928 (estimate_function_body_sizes): Use it.
14929 (inline_merge_summary): Merge fp_expressions.
14930 (inline_read_section): Read fp_expressions.
14931 (inline_write_summary): Write fp_expressions.
14932 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
14933 codegen boundary if either caller or callee is !fp_expressions.
14934 * ipa-inline.h (inline_summary): Add fp_expressions.
14935 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
14936 to fp_expressions be sure the fp generation flags are updated.
14937
14938 2016-05-02 Jakub Jelinek <jakub@redhat.com>
14939
14940 PR rtl-optimization/70467
14941 * cse.c (cse_insn): Handle no-op MEM moves after folding.
14942
14943 PR rtl-optimization/70467
14944 * ipa-pure-const.c (check_call): Handle internal calls even in
14945 ipa mode like in local mode.
14946
14947 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14948
14949 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
14950
14951 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
14952
14953 * match.pd (X u< X, X u> X): New transformations.
14954
14955 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
14956
14957 * flag-types.h (enum warn_strict_overflow_code): Move ...
14958 * coretypes.h: ... here.
14959 * fold-const.h (fold_overflow_warning): Declare.
14960 * fold-const.c (fold_overflow_warning): Make non-static.
14961 (fold_comparison): Move the transformation of X +- C1 CMP C2
14962 into X CMP C2 -+ C1 ...
14963 * match.pd: ... here.
14964 * gimple-fold.c (fold_stmt_1): Protect with
14965 fold_defer_overflow_warnings.
14966
14967 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
14968
14969 * omp-low.c (struct oacc_loop): Add 'inner' field.
14970 (new_oacc_loop_raw): Initialize it to zero.
14971 (oacc_loop_fixed_partitions): Initialize it.
14972 (oacc_loop_auto_partitions): Partition outermost loop to outermost
14973 available partitioning.
14974
14975 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
14976
14977 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
14978 register_operand.
14979 (umulsidi3): Likewise.
14980 (indirect_jump): Fix jump instruction assembly patterns.
14981
14982 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
14983
14984 PR target/70860
14985 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
14986 (nvptx_function_value): Assert non-NULL cfun.
14987
14988 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
14989
14990 PR rtl-optimization/70886
14991 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
14992
14993 * cselib.h (rtx_equal_for_cselib_1): Declare.
14994 (rtx_equal_for_cselib_p: New inline function.
14995 * cselib.c (rtx_equal_for_cselib_p): Delete.
14996 (rtx_equal_for_cselib_1): Make public.
14997
14998 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
14999
15000 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
15001 (register_mixssei387nonimm_operand): Remove predicate.
15002 * config/i386/i386.md (*fop_<mode>_comm): Merge from
15003 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
15004 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
15005 for TARGET_MIX_SSE_I387 alternatives.
15006 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
15007 Disable unsupported alternatives using "enabled" attribute. Use
15008 nonimm_ssenomem_operand as operand 1 predicate. Also check
15009 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
15010
15011 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
15012
15013 * tree.c (cst_and_fits_in_hwi): Simplify.
15014
15015 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
15016
15017 * tree.h (wi::to_wide): New function.
15018 * expr.c (expand_expr_real_1): Use wi::to_wide.
15019 * fold-const.c (int_const_binop_1): Likewise.
15020 (extract_muldiv_1): Likewise.
15021
15022 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
15023
15024 * wide-int.h: Update offset_int and widest_int documentation.
15025 (WI_SIGNED_SHIFT_RESULT): New macro.
15026 (wi::binary_shift): Define signed_shift_result_type for
15027 shifts on offset_int- and widest_int-like types.
15028 (generic_wide_int): Support <<= and >>= if << and >> are supported.
15029 * tree.h (int_bit_position): Use shift operators instead of wi::
15030 shifts.
15031 * alias.c (adjust_offset_for_component_ref): Likewise.
15032 * expr.c (get_inner_reference): Likewise.
15033 * fold-const.c (fold_comparison): Likewise.
15034 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
15035 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
15036 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15037 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15038 (stmt_kills_ref_p): Likewise.
15039 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
15040 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
15041 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15042 (ao_ref_init_from_vn_reference): Likewise.
15043
15044 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
15045
15046 * wide-int.h: Update offset_int and widest_int documentation.
15047 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
15048 (wi::binary_traits): Allow ordered comparisons between offset_int and
15049 offset_int, between widest_int and widest_int, and between either
15050 of these types and basic C types.
15051 (operator <, <=, >, >=): Define for the same combinations.
15052 * tree.h (tree_int_cst_lt): Use comparison operators instead
15053 of wi:: comparisons.
15054 (tree_int_cst_le): Likewise.
15055 * gimple-fold.c (fold_array_ctor_reference): Likewise.
15056 (fold_nonarray_ctor_reference): Likewise.
15057 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15058 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15059 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15060 * tree-sra.c (completely_scalarize): Likewise.
15061 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15062 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15063 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15064 (check_for_binary_op_overflow): Likewise.
15065 (search_for_addr_array): Likewise.
15066 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15067
15068 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
15069
15070 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15071 (arc_save_restore): Likewise.
15072 (arc_dwarf_register_span): Likewise.
15073 (arc_output_pic_addr_const): Initialize suffix variable.
15074
15075 2016-05-02 Martin Liska <mliska@suse.cz>
15076
15077 * symbol-summary.h (function_summary::function_summary):
15078 Remove checking assert for all cgraph nodes.
15079 (function_summary::get): Check summary_uid.
15080 (symtab_insertion): Check summary_uid.
15081
15082 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
15083
15084 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15085 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15086 bmaskn instruction.
15087 (arc_dwarf_register_span): Remove enum keyword.
15088 (compact_memory_operand_p): New function.
15089 * config/arc/arc.h (reg_class): Add code density register classes.
15090 (REG_CLASS_NAMES): Likewise.
15091 (REG_CLASS_CONTENTS): Likewise.
15092 * config/arc/arc.md (*movqi_insn): Add code density instructions.
15093 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15094 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15095 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15096 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15097 constraints.
15098 (h, Rcd, Rsd, Rzd): New register constraints.
15099 (T): Use compact_memory_operand_p function.
15100 * config/arc/predicates.md (compact_load_memory_operand): Remove.
15101
15102 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
15103
15104 * config/sh/sh.md (*negnegt, *movtt): Remove.
15105
15106 2016-05-02 Marek Polacek <polacek@redhat.com>
15107 Tom de Vries <tom@codesourcery.com>
15108
15109 PR tree-optimization/70700
15110 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15111 bigger than FIRST_REF_NODE.
15112
15113 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
15114
15115 PR target/52898
15116 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15117 TARGET_CMPEQDI_T.
15118 (prepare_cbranch_operands): Don't use scratch register. Assume that
15119 function is used when pseudos can be created.
15120 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
15121 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15122 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15123 define_expand. Allow it only when pseudos can be created.
15124 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15125
15126 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
15127
15128 * config/i386/constraints.md (BC): Only allow -1 operands.
15129 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15130 Add "enabled" attribute. Update XI mode attribute calculation.
15131 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15132 (*movoi_internal_avx): Update XI mode attribute calculation.
15133 (*movti_internal): Ditto.
15134
15135 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
15136
15137 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15138 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15139
15140 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
15141
15142 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15143 statement on instruction code. Remove trailing spaces.
15144 (altivec_expand_stv_builtin): Likewise.
15145
15146 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
15147
15148 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15149 (TARGET_FPU_DOUBLE): Simplify.
15150 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15151 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15152 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15153 with 'TARGET_FPU_DOUBLE'.
15154 * config/sh/sh.md: Likewise.
15155
15156 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
15157
15158 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15159 SH_DIV_STR_FOR_SIZE): Remove.
15160 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15161 SH_DIV_STR_FOR_SIZE): Remove.
15162
15163 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
15164
15165 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15166 logical_reg_operand): Delete.
15167 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15168 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15169 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15170 match_operand and match_test.
15171 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
15172 variables on their first use. Return bool values.
15173 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15174 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15175 arith_reg_operand for input operand. Remove empty constraints.
15176 (xorsi3): Delete.
15177 (*xorsi3_compact): Rename to xorsi3.
15178 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15179 (*zero_extend<mode>si2_disp_mem): Update comment.
15180 (mov_nop): Delete.
15181
15182 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
15183
15184 * config/sh/t-sh: Remove SH5 support.
15185 * config.gcc: Likewise.
15186 * configure: Likewise.
15187
15188 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15189
15190 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15191
15192 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
15193
15194 * config/sh/sh.c (register_sh_passes, sh_option_override,
15195 sh_print_operand, prepare_move_operands,
15196 sh_can_follow_jump): Remove TARGET_SH1 checks.
15197 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15198 PROMOTE_MODE): Likewise.
15199 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15200 movdi): Likewise.
15201
15202 2016-04-30 Alan Modra <amodra@gmail.com>
15203
15204 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15205 restoring when fixed_reg_p, but allow out-of-line or stmw save.
15206 Check for user regs later to avoid unnecessary looping over regs.
15207 Merge user reg check with non-saved reg check. Don't force
15208 inline VR restore when static chain used.
15209 (rs6000_frame_related): Omit eh_frame info for user regs when
15210 saving.
15211 (fixed_regs_p): Delete.
15212
15213 2016-04-30 Alan Modra <amodra@gmail.com>
15214
15215 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15216 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
15217 Update all uses.
15218
15219 2016-04-30 Alan Modra <amodra@gmail.com>
15220
15221 PR target/69645
15222 * config/rs6000/rs6000.c (fixed_reg_p): New function.
15223 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
15224 Update all uses.
15225
15226 2016-04-30 Alan Modra <amodra@gmail.com>
15227
15228 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15229 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
15230 flag_pic test for Darwin.
15231
15232 2016-04-30 Alan Modra <amodra@gmail.com>
15233
15234 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15235 throw_calls_crossed.
15236 (REG_FREQ_CALLS_CROSSED): Delete.
15237 (REG_N_THROWING_CALLS_CROSSED): Delete.
15238 * regstat.c (regstat_bb_compute_ri): Don't calculate
15239 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15240 (dump_reg_info): Don't print call cross frequency.
15241 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15242 and REG_N_THROWING_CALLS_CROSSED.
15243
15244 2016-04-30 Alan Modra <amodra@gmail.com>
15245
15246 * regs.h (struct reg_info_t): Delete live_length.
15247 (REG_LIVE_LENGTH): Delete macro.
15248 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15249 local_live, local_processed and local_live_last_luid params.
15250 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
15251 Formatting fixes.
15252 (regstat_compute_ri): Adjust for above. Don't set
15253 REG_LIVE_LENGTH.
15254 (dump_reg_info): Don't print live length.
15255 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15256 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
15257 Localize loop_depth var.
15258
15259 2016-04-30 Alan Modra <amodra@gmail.com>
15260
15261 * ira.c (enum valid_equiv): New.
15262 (validate_equiv_mem): Return enum.
15263 (update_equiv_mem): Create replacement in more cases.
15264 (add_store_equivs): Update validate_equiv_mem call.
15265
15266 2016-04-30 Alan Modra <amodra@gmail.com>
15267
15268 * ira.c (combine_and_move_insns): Rather than scanning insns,
15269 use DF infrastucture to find use and def insns.
15270
15271 2016-04-30 Alan Modra <amodra@gmail.com>
15272
15273 ira.c (combine_and_move_insns): Move invariant conditions..
15274 (ira.c): ..to here. Call combine_and_move_insns before
15275 add_store_equivs. Call grow_reg_equivs later. Allocate
15276 req_equiv later using max_reg_num() rather than global max_regno.
15277 (contains_replace_regs): Delete.
15278 (add_store_equivs): Remove contains_replace_regs test.
15279
15280 2016-04-30 Alan Modra <amodra@gmail.com>
15281
15282 * ira.c (struct equiv_mem_data): New.
15283 (equiv_mem, equiv_mem_modified): Delete static vars.
15284 (validate_equiv_mem_from_store): Use "data" param to communicate..
15285 (validate_equiv_mem): ..from here.
15286
15287 2016-04-30 Alan Modra <amodra@gmail.com>
15288
15289 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15290 split out from..
15291 (update_reg_equivs): ..here. Move allocation and freeing of
15292 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15293 end_alias_analysis to..
15294 (ira): ..here.
15295
15296 2016-04-30 Alan Modra <amodra@gmail.com>
15297
15298 * ira.c (pdx_subregs): Delete.
15299 (struct equivalence): Add pdx_subregs field.
15300 (set_paradoxical_subreg): Remove pdx_subregs param. Update
15301 pdx_subregs access.
15302 (update_equiv_regs): Don't create or free pdx_subregs. Update
15303 pdx_subregs access.
15304
15305 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15306
15307 * config/rs6000/altivec.h: Change definitions of vec_xl and
15308 vec_xst.
15309 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15310 (LD_ELEMREV_V2DI): New.
15311 (LD_ELEMREV_V4SF): New.
15312 (LD_ELEMREV_V4SI): New.
15313 (LD_ELEMREV_V8HI): New.
15314 (LD_ELEMREV_V16QI): New.
15315 (ST_ELEMREV_V2DF): New.
15316 (ST_ELEMREV_V2DI): New.
15317 (ST_ELEMREV_V4SF): New.
15318 (ST_ELEMREV_V4SI): New.
15319 (ST_ELEMREV_V8HI): New.
15320 (ST_ELEMREV_V16QI): New.
15321 (XL): New.
15322 (XST): New.
15323 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15324 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15325 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15326 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15327 (altivec_expand_builtin): Add handling for
15328 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15329 (rs6000_invalid_builtin): Add error-checking for
15330 RS6000_BTM_P9_VECTOR.
15331 (altivec_init_builtins): Define builtins used to implement vec_xl
15332 and vec_xst.
15333 (rs6000_builtin_mask_names): Define power9-vector.
15334 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15335 (RS6000_BTM_P9_VECTOR): Define.
15336 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15337 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15338 (vsx_ld_elemrev_v2df): Likewise.
15339 (vsx_ld_elemrev_v4sf): Likewise.
15340 (vsx_ld_elemrev_v4si): Likewise.
15341 (vsx_ld_elemrev_v8hi): Likewise.
15342 (vsx_ld_elemrev_v16qi): Likewise.
15343 (vsx_st_elemrev_v2df): Likewise.
15344 (vsx_st_elemrev_v2di): Likewise.
15345 (vsx_st_elemrev_v4sf): Likewise.
15346 (vsx_st_elemrev_v4si): Likewise.
15347 (vsx_st_elemrev_v8hi): Likewise.
15348 (vsx_st_elemrev_v16qi): Likewise.
15349 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
15350 grammar.
15351
15352 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
15353
15354 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15355 out into ...
15356 (simplify_control_stmt_condition_1): ... here. Recurse into
15357 BIT_AND_EXPRs and BIT_IOR_EXPRs.
15358
15359 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
15360
15361 PR target/69810
15362 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15363 (zero_extendqi<mode>2_dot): Revert earlier conversion from
15364 define_insn_and_split to define_insn.
15365 (zero_extendqi<mode>2_dot2): Same.
15366 (extendqi<mode>2_dot): Same.
15367 (extendqi<mode>2_dot2): Same.
15368
15369 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
15370
15371 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15372 (probe_stack): New expander.
15373 (probe_stack_<mode>): New insn pattern.
15374
15375 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
15376
15377 * config/i386/i386.md
15378 (operations with memory inputs setting flags peephole2):
15379 Remove uneeded REG_P checks. Cleanup pattern generation.
15380
15381 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
15382
15383 * tree-vect-loop.c (vect_transform_loop): Fix
15384 nb_iterations_upper_bound computation for vectorized loop.
15385
15386 2016-04-29 Marek Polacek <polacek@redhat.com>
15387 Jakub Jelinek <jakub@redhat.com>
15388
15389 PR sanitizer/70342
15390 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15391 TARGET_EXPR_SLOT as a base.
15392
15393 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
15394
15395 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15396 with 'rCm2' constraints to limit possible immediate size.
15397 (*load_zeroextendqisi_update): Likewise.
15398 (*load_signextendqisi_update): Likewise.
15399 (*loadhi_update): Likewise.
15400 (*load_zeroextendhisi_update): Likewise.
15401 (*load_signextendhisi_update): Likewise.
15402 (*loadsi_update): Likewise.
15403 (*loadsf_update): Likewise.
15404
15405 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
15406
15407 * config/i386/predicates.md (constm1_operand): Fix comparison.
15408
15409 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
15410
15411 * testsuite/gcc.target/arc/ieee_eq.c: New test.
15412
15413 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
15414
15415 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15416 remaining SH5 related settings.
15417 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15418 shmedia_prepare_call_address): Delete.
15419 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15420 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15421 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15422 UNSUPPORTED_SH2A): Remove m5 checks.
15423 (sh_divide_strategy_e): Remove SH5 division strategies.
15424 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15425 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15426
15427 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15428
15429 * config/s390/s390.c (s390_rtx_costs): Update documentation.
15430
15431 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15432
15433 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15434 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15435 Change lder to ldr.
15436 * config/s390/vector.md ("mov<mode>"): Likewise.
15437
15438 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
15439
15440 * config/s390/constraints.md ("U", "W"): Invoke
15441 s390_mem_constraint with "ZR" and "ZT".
15442 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15443 addresses when using LRA. Accept also short displacements for S
15444 and T constraints. Do not check for long displacement target for
15445 S and T constraints.
15446 (s390_mem_constraint): Remove handling of U and W constraints.
15447 * config/s390/s390.md (various patterns): Remove the short
15448 displacement constraints (Q and R) if a long displacement
15449 constraint is present. Add longdisp as required CPU capability.
15450 * config/s390/vector.md: Likewise.
15451 * config/s390/vx-builtins.md: Likewise.
15452
15453 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15454
15455 PR target/60040
15456 * reload1.c (reload): Call finish_spills before
15457 restarting reload loop. Skip select_reload_regs
15458 if update_eliminables_and_spill returns true.
15459
15460 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
15461
15462 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15463 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15464 (umulhisi3_imm): Update predicates and constraint letters.
15465 (umulhisi3_reg): Declare instruction as commutative.
15466 * config/arc/constraints.md (J12, J16): New constraints.
15467 * config/arc/predicates.md (short_unsigned_const_operand): New
15468 predicate.
15469 (arc_short_operand): Likewise.
15470 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15471
15472 2016-04-29 Richard Biener <rguenther@suse.de>
15473
15474 PR tree-optimization/13962
15475 PR tree-optimization/65686
15476 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15477 * tree-ssa-alias.c (ptrs_compare_unequal): New function
15478 using PTA to compare pointers.
15479 * match.pd: Add pattern for pointer equality compare simplification
15480 using ptrs_compare_unequal.
15481
15482 2016-04-29 Richard Biener <rguenther@suse.de>
15483
15484 * stor-layout.c (layout_type): Do not build a pointer-to-element
15485 type for arrays.
15486
15487 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
15488
15489 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15490 Use SWI mode iterator. Use general_reg_operand predicate.
15491 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15492 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
15493 predicates.
15494
15495 2016-04-29 Jakub Jelinek <jakub@redhat.com>
15496
15497 PR middle-end/70843
15498 * fold-const.c (operand_equal_p): Don't verify hash value equality
15499 if arg0 == arg1.
15500 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
15501 and OMP_CLAUSE.
15502
15503 2016-04-28 Jakub Jelinek <jakub@redhat.com>
15504
15505 PR target/70858
15506 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15507 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15508 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15509 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15510 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15511
15512 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15513
15514 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15515 to info. Don't initialize separate fields to 0. Clean up
15516 formatting a bit.
15517
15518 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15519
15520 * config/i386/i386.md (peephole2s for operations with memory inputs):
15521 Use SWI mode iterator.
15522 (peephole2s for operations with memory outputs): Ditto.
15523 Do not check for stack checking probe.
15524
15525 (probe_stack): Remove expander.
15526
15527 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15528 Andrew Burgess <andrew.burgess@embecosm.com>
15529
15530 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15531 operands as 32-bits.
15532
15533 2016-04-28 Jason Merrill <jason@redhat.com>
15534
15535 * gdbinit.in: Skip line-map.h.
15536
15537 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15538 Andrew Burgess <andrew.burgess@embecosm.com>
15539
15540 * config/arc/arc.c (arc_conditional_register_usage): Take
15541 TARGET_RRQ_CLASS into account.
15542 (arc_print_operand): Support printing 'p' and 's' operands.
15543 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15544 as 0.
15545 (TARGET_RRQ_CLASS): Define.
15546 (IS_POWEROF2_OR_0_P): Define.
15547 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15548 alternatives.
15549 (*tst_movb): New define_insn.
15550 (*tst): Avoid recognition if it could prevent '*tst_movb'
15551 combination; replace c/CnL with c/Chs alternative.
15552 (*tst_bitfield_tst): New define_insn.
15553 (*tst_bitfield_asr): New define_insn.
15554 (*tst_bitfield): New define_insn.
15555 (andsi3_i): Add Rrq variant.
15556 (extzv): New define_expand.
15557 (insv): New define_expand.
15558 (*insv_i): New define_insn.
15559 (*movb): New define_insn.
15560 (*movb_signed): New define_insn.
15561 (*movb_high): New define_insn.
15562 (*movb_high_signed): New define_insn.
15563 (*movb_high_signed + 1): New define_split pattern.
15564 (*mrgb): New define_insn.
15565 (*mrgb + 1): New define_peephole2 pattern.
15566 (*mrgb + 2): New define_peephole2 pattern.
15567 * config/arc/arc.opt (mbitops): New option for nps400, uses
15568 TARGET_NPS_BITOPS_DEFAULT.
15569 * config/arc/constraints.md (q): Make register class conditional.
15570 (Rrq): New register constraint.
15571 (Chs): New constraint.
15572 (Clo): New constraint.
15573 (Chi): New constraint.
15574 (Cbf): New constraint.
15575 (Cbn): New constraint.
15576 (C18): New constraint.
15577 (Cbi): New constraint.
15578
15579 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15580
15581 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
15582 dst->popcount.
15583 (bitmap_intersection_of_preds): Ditto.
15584 (bitmap_union_of_succs): Ditto.
15585 (bitmap_union_of_preds): Ditto.
15586 * sbitmap.c (do_popcount): Delete.
15587 (BITMAP_DEBUGGING): Delete.
15588 (sbitmap_verify_popcount): Delete.
15589 (sbitmap_alloc): Don't initialize the popcount field.
15590 (sbitmap_alloc_with_popcount): Delete.
15591 (sbitmap_resize): Don't resize the popcount array.
15592 (sbitmap_vector_alloc): Don't initialize the popcount field.
15593 (bitmap_copy): Don't copy the popcount array.
15594 (bitmap_clear): Don't clear the popcount array.
15595 (bitmap_clear): Delete the popcount array handling.
15596 (bitmap_ior_and_compl): Delete the popcount assert.
15597 (bitmap_not): Ditto.
15598 (bitmap_and_compl): Ditto.
15599 (bitmap_and): Delete the popcount array handling.
15600 (bitmap_xor): Ditto.
15601 (bitmap_ior): Ditto.
15602 (bitmap_or_and): Delete the popcount assert.
15603 (bitmap_and_or): Ditto.
15604 (popcount_table): Delete.
15605 (sbitmap_elt_popcount): Delete.
15606 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
15607 (bitmap_set_bit): Delete the popcount assert.
15608 (bitmap_clear_bit): Ditto.
15609 (sbitmap_free): Don't free the popcount array.
15610 (sbitmap_alloc_with_popcount): Delete declaration.
15611 (sbitmap_popcount): Ditto.
15612
15613 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15614 Andrew Burgess <andrew.burgess@embecosm.com>
15615
15616 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
15617 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
15618 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
15619 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
15620 * config/arc/arc.opt (mcmem): New option.
15621 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
15622 supply length for r/m alternative.
15623 (*extendqisi2_ac): Likewise.
15624 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
15625 r/Uex alternative.
15626 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
15627 (movhi_insn): Likewise.
15628 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
15629 (*zero_extendqihi2_i): Add r/Ucm alternative.
15630 (*zero_extendqisi2_ac): Likewise.
15631 (*zero_extendhisi2_i): Likewise.
15632 * config/arc/constraints.md (Uex): New memory constraint.
15633 (Ucm): New define_constraint.
15634 * config/arc/predicates.md (long_immediate_loadstore_operand):
15635 Return 0 for MEM with cmem_address address.
15636 (cmem_address_0): New predicates.
15637 (cmem_address_1): Likewise.
15638 (cmem_address_2): Likewise.
15639 (cmem_address): Likewise.
15640
15641 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15642
15643 * config/rs6000/rs6000.c (machine_function): Rename
15644 insn_chain_scanned_p to spe_insn_chain_scanned_p.
15645 (rs6000_stack_info): Adjust.
15646
15647 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15648 Andrew Burgess <andrew.burgess@embecosm.com>
15649
15650 * config/arc/constraints.md (Usd): Convert to define_constraint.
15651 (Us<): Likewise.
15652 (Us>): Likewise.
15653
15654 2016-04-28 Jakub Jelinek <jakub@redhat.com>
15655
15656 PR target/70821
15657 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
15658 Add new peephole2 where the first insn is *mov<mode>_or instead of
15659 *mov<mode>_internal.
15660
15661 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
15662
15663 * tracer.c (bb_seen): Make static.
15664
15665 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
15666
15667 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
15668 support, setup defaults.
15669 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
15670 * config/arc/arc.c (arc_init): Add NPS400 support.
15671 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
15672 (TARGET_ARC700): NPS400 is also an ARC700.
15673 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
15674
15675 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15676
15677 PR target/70668
15678 * config/nds32/nds32.md (casesi): Don't access the operands array
15679 out of bounds.
15680
15681 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15682
15683 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
15684 (or $-1,reg peephole2): Ditto.
15685 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
15686
15687 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15688
15689 * doc/extend.texi (Common Function Attributes) [optimize]:
15690 Discourage use of the optimize attribute.
15691
15692 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
15693
15694 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
15695 special case builtin.
15696 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15697 ALTIVEC_BUILTIN_VEC_ADDE.
15698 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15699 support for ALTIVEC_BUILTIN_VEC_ADDE.
15700 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15701 for __builtin_vec_adde.
15702
15703 2016-04-28 Jakub Jelinek <jakub@redhat.com>
15704
15705 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
15706 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
15707
15708 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15709
15710 PR testsuite/70595
15711 * doc/sourcebuild.texi (Effective-Target Keywords, Other
15712 attributes): Document cilkplus_runtime.
15713
15714 2016-04-28 Martin Jambor <mjambor@suse.cz>
15715
15716 * tree-cfg.c (verify_expr): Verify that local declarations belong to
15717 this function. Call verify_expr on MEM_REFs and bases of other
15718 handled_components.
15719
15720 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15721
15722 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
15723 for WORD_REGISTER_OPERATIONS to runtime check.
15724
15725 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15726
15727 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
15728
15729 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15730
15731 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
15732 big-endian compilation.
15733 * config/arc/arc.md (addf3): Likewise.
15734 (subdf3): Likewise.
15735 (muldf3): Likewise.
15736
15737 2016-04-28 Richard Biener <rguenther@suse.de>
15738
15739 PR tree-optimization/70840
15740 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
15741 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
15742 Mark x * pow(x,c) -> pow(x,c+1) commutative.
15743 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
15744
15745 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15746
15747 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
15748 and explain why in a comment.
15749
15750 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15751
15752 * config/arc/arc.md (cpu_facility): Add fpx variant.
15753 (subdf3): Prohibit use reverse sub when assist operations option
15754 is enabled.
15755 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
15756 instructions only when FPX is enabled.
15757 * testsuite/gcc.target/arc/trsub.c: New test.
15758
15759 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15760
15761 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
15762 mult_operator when calculating "type" attribute.
15763 (*fop_<mode>_1_i387): Ditto.
15764 (*fop_xf_1_i387): Ditto.
15765 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
15766 Use std::swap to swap operands. Use RTL expressions to generate
15767 converted pattern.
15768
15769 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15770 Joern Rennecke <joern.rennecke@embecosm.com>
15771
15772 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
15773 declaration.
15774 (emit_pic_move): Remove.
15775 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
15776 * config/arc/arc.c (emit_pic_move): Removed.
15777 (TARGET_HAVE_TLS): Define.
15778 (arc_conditional_register_usage): Test for arc_tp_regno.
15779 (arc_print_operand, arc_print_operand_address): Handle TLS
15780 unspecs.
15781 (arc_needs_pcl_p): New function.
15782 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
15783 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
15784 (arc_raw_symbolic_reference_mentioned_p): Likewise.
15785 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
15786 (arc_legitimize_tls_address): Likewise.
15787 (DTPOFF_ZERO_SYM): Define.
15788 (arc_legitimize_pic_address): Make it static, handle TLS cases.
15789 (arc_output_pic_addr_const): Print TLS unspecs.
15790 (prepare_pic_move): New function, replaces emit_pic_move.
15791 (arc_legitimate_constant_p): Handle TLS unspecs.
15792 (arc_legitimate_address_p): Likewise.
15793 (arc_rewrite_small_data_p): Use assert for TLS constants.
15794 (prepare_move_operands): Use prepare_pic_move.
15795 (arc_legitimize_address): Legitimize tls addresses.
15796 (arc_epilogue_uses): Check for arc_tp_regno.
15797 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
15798 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
15799 Define.
15800 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
15801 Likewise.
15802 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
15803 %(arc_tls_extra_start_spec).
15804 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
15805 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
15806 (EH_USES): Define.
15807 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
15808 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
15809 (UNSPEC_TLS_OFF): Add.
15810 (R10_REG): Define.
15811 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
15812 (get_thread_pointersi): New patterns.
15813 * config/arc/arc.opt (mtp-regno): New option.
15814 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
15815 (move_dest_operand): Likewise.
15816 * configure: Regenerate.
15817 * configure.ac: Add arc*-*-* case to test for tls.
15818 * doc/invoke.texi (ARC options): Document mtp-regno.
15819
15820 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15821
15822 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
15823 the new ARC HS SIMD instructions.
15824 (arc_preferred_simd_mode): New function.
15825 (arc_autovectorize_vector_sizes): Likewise.
15826 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
15827 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15828 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
15829 (arc_init_builtins): Add new SIMD builtin types.
15830 (arc_split_move): Handle 64 bit vector moves.
15831 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
15832 (TARGET_PLUS_QMACW): Define.
15833 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
15834 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
15835 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
15836 (VSUBADD4H): New builtins.
15837 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
15838 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
15839
15840 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
15841 Matthias Klose <doko@debian.org>
15842
15843 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
15844
15845 2016-04-28 Richard Biener <rguenther@suse.de>
15846
15847 PR middle-end/70777
15848 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
15849 canonicalization.
15850
15851 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
15852
15853 * common/config/sh/sh-common.c: Remove SH5 support.
15854 * config/sh/constraints.md: Likewise.
15855 * config/sh/config/sh/elf.h: Likewise.
15856 * config/sh/linux.h: Likewise.
15857 * config/sh/netbsd-elf.h: Likewise.
15858 * config/sh/predicates.md: Likewise.
15859 * config/sh/sh-c.c: Likewise.
15860 * config/sh/sh-protos.h: Likewise.
15861 * config/sh/sh.c: Likewise.
15862 * config/sh/sh.h: Likewise.
15863 * config/sh/sh.md: Likewise.
15864 * config/sh/sh.opt: Likewise.
15865 * config/sh/sync.md: Likewise.
15866 * config/sh/sh64.h: Delete.
15867 * config/sh/shmedia.h: Likewise.
15868 * config/sh/shmedia.md: Likewise.
15869 * config/sh/sshmedia.h: Likewise.
15870 * config/sh/t-netbsd-sh5-64: Likewise.
15871 * config/sh/t-sh64: Likewise.
15872 * config/sh/ushmedia.h: Likewise.
15873
15874 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15875
15876 * config/i386/i386.md (sign_extend to memory peephole2s): Use
15877 general_reg_operand instead of register_operand predicate.
15878
15879 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15880
15881 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
15882
15883 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
15884
15885 * match.pd (A - B > A, A + B < A): New transformations.
15886
15887 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
15888
15889 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
15890 which defaults to true. Emit an outer pair of parentheses only if
15891 EMIT_PARENS. When continuing a chain of && or || (or & or |),
15892 don't emit parentheses for the right-hand operand.
15893
15894 2016-04-27 Jeff Law <law@redhat.com>
15895
15896 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
15897
15898 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15899
15900 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
15901 (altivec_lvx_<mode>_internal): Document.
15902 (altivec_lvx_<mode>_2op): New define_insn.
15903 (altivec_lvx_<mode>_1op): Likewise.
15904 (altivec_lvx_<mode>_2op_si): Likewise.
15905 (altivec_lvx_<mode>_1op_si): Likewise.
15906 (altivec_stvx_<mode>): Remove.
15907 (altivec_stvx_<mode>_internal): Document.
15908 (altivec_stvx_<mode>_2op): New define_insn.
15909 (altivec_stvx_<mode>_1op): Likewise.
15910 (altivec_stvx_<mode>_2op_si): Likewise.
15911 (altivec_stvx_<mode>_1op_si): Likewise.
15912 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15913 Expand vec_ld and vec_st during parsing.
15914 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
15915 changes.
15916 (altivec_expand_stvx_be): Likewise.
15917 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
15918 address-masking behavior in RTL.
15919 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
15920 address-masking behavior in RTL.
15921 (altivec_expand_builtin): Change builtin code arguments for calls
15922 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
15923 (insn_is_swappable_p): Avoid incorrect swap optimization in the
15924 presence of lvx/stvx patterns.
15925 (alignment_with_canonical_addr): New function.
15926 (alignment_mask): Likewise.
15927 (find_alignment_op): Likewise.
15928 (recombine_lvx_pattern): Likewise.
15929 (recombine_stvx_pattern): Likewise.
15930 (recombine_lvx_stvx_patterns): Likewise.
15931 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
15932 stvx patterns from expand.
15933 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
15934 expansions.
15935 (vector_altivec_store_<mode>): Likewise.
15936
15937 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
15938
15939 * config/aarch64/aarch64.md
15940 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
15941 remove the "fp" attributes.
15942 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
15943 add the "simd" attributes.
15944 (*movdf_aarch64): Likewise.
15945 (*movtf_aarch64): Remove the "fp" attributes.
15946 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
15947 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
15948
15949 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15950
15951 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
15952 rtx to rtx_code_label *.
15953 * rtl.h (maybe_set_first_label_num): Likewise.
15954
15955 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15956
15957 * df-core.c (df_add_problem): Make the problem param be const.
15958 (df_remove_problem): Make local "problem" be const.
15959 * df-problems.c (problem_RD): Make const.
15960 (problem_LR): Likewise.
15961 (problem_LIVE): Likewise.
15962 (problem_MIR): Likewise.
15963 (problem_CHAIN): Likewise.
15964 (problem_WORD_LR): Likewise.
15965 (problem_NOTE): Likewise.
15966 (problem_MD): Likewise.
15967 * df-scan.c (problem_SCAN): Likewise.
15968 * df.h (struct df_problem): Make field "dependent_problem" be
15969 const.
15970 (struct dataflow): Likewise for field "problem".
15971 (df_add_problem): Make param const.
15972
15973 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
15974
15975 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
15976 inter-unit moves to/from vector registers are enabled. Do not disable
15977 for TARGET_MMX.
15978
15979 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15980
15981 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
15982 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
15983 #define to...
15984 (enum df_problem_id): ...this new enum.
15985 (struct df_problem): Convert field "id" from "int" to
15986 enum df_problem_id.
15987
15988 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15989
15990 * rtl.def: Update comment for "things in the instruction chain" to
15991 reflect the removal of the leading "i" field for INSN_UID in
15992 r210360. Fix bogus apostrophe.
15993
15994 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
15995
15996 * config/i386/i386.md
15997 (lea arith with mem operand + setcc peephole2): Set operator mode.
15998
15999 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
16000
16001 PR target/70155
16002 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
16003 (dimode_scalar_to_vector_candidate_p): This.
16004 (timode_scalar_to_vector_candidate_p): New function.
16005 (scalar_to_vector_candidate_p): Likewise.
16006 (timode_check_non_convertible_regs): Likewise.
16007 (timode_remove_non_convertible_regs): Likewise.
16008 (remove_non_convertible_regs): Likewise.
16009 (remove_non_convertible_regs): Renamed to ...
16010 (dimode_remove_non_convertible_regs): This.
16011 (scalar_chain::~scalar_chain): Make it virtual.
16012 (scalar_chain::compute_convert_gain): Make it pure virtual.
16013 (scalar_chain::mark_dual_mode_def): Likewise.
16014 (scalar_chain::convert_insn): Likewise.
16015 (scalar_chain::convert_registers): Likewise.
16016 (scalar_chain::add_to_queue): Make it protected.
16017 (scalar_chain::emit_conversion_insns): Likewise.
16018 (scalar_chain::replace_with_subreg): Likewise.
16019 (scalar_chain::replace_with_subreg_in_insn): Likewise.
16020 (scalar_chain::convert_op): Likewise.
16021 (scalar_chain::convert_reg): Likewise.
16022 (scalar_chain::make_vector_copies): Likewise.
16023 (scalar_chain::convert_registers): New pure virtual function.
16024 (class dimode_scalar_chain): New class.
16025 (class timode_scalar_chain): Likewise.
16026 (scalar_chain::mark_dual_mode_def): Renamed to ...
16027 (dimode_scalar_chain::mark_dual_mode_def): This.
16028 (timode_scalar_chain::mark_dual_mode_def): New function.
16029 (timode_scalar_chain::convert_insn): Likewise.
16030 (dimode_scalar_chain::convert_registers): Likewise.
16031 (scalar_chain::compute_convert_gain): Renamed to ...
16032 (dimode_scalar_chain::compute_convert_gain): This.
16033 (scalar_chain::replace_with_subreg): Renamed to ...
16034 (dimode_scalar_chain::replace_with_subreg): This.
16035 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
16036 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
16037 (scalar_chain::make_vector_copies): Renamed to ...
16038 (dimode_scalar_chain::make_vector_copies): This.
16039 (scalar_chain::convert_reg): Renamed to ...
16040 (dimode_scalar_chain::convert_reg ): This.
16041 (scalar_chain::convert_op): Renamed to ...
16042 (dimode_scalar_chain::convert_op): This.
16043 (scalar_chain::convert_insn): Renamed to ...
16044 (dimode_scalar_chain::convert_insn): This.
16045 (scalar_chain::convert): Call convert_registers.
16046 (convert_scalars_to_vector): Change to scalar_chain pointer to
16047 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
16048 in 32-bit mode. Delete scalar_chain pointer. Call
16049 free_dominance_info in 64-bit mode.
16050 (pass_stv::gate): Remove TARGET_64BIT check.
16051 (ix86_option_override): Put the 64-bit STV pass before the CSE
16052 pass.
16053
16054 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
16055
16056 * dwarf2out.h (struct dw_loc_descr_node): Remove the
16057 dw_loc_frame_offset field.
16058 * dwarf2out.c (new_loc_descr): Likewise.
16059 (resolve_args_picking_1): Turn the VISITED hash set into a
16060 FRAME_OFFSET hash map. Use it to associate a frame offset to
16061 visited nodes. Remove uses of the CHECKING_P macro.
16062 (resolve_args_picking): Update call to resolve_args_picking_1.
16063
16064 2016-04-27 Martin Liska <mliska@suse.cz>
16065
16066 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16067 (free_loop_data): Release vuses of groups.
16068
16069 2016-04-27 Bin Cheng <bin.cheng@arm.com>
16070
16071 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16072 instead of redundant use_id and boolean have_use_for.
16073 (struct iv_use): Change sub_id into group_id. Remove field next.
16074 Move fields: related_cands, n_map_members, cost_map and selected
16075 to ...
16076 (struct iv_group): ... here. New structure.
16077 (struct iv_common_cand): Use structure declaration directly.
16078 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16079 (MAX_CONSIDERED_USES): Rename macro to ...
16080 (MAX_CONSIDERED_GROUPS): ... here.
16081 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16082 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16083 (dump_uses): Rename to ...
16084 (dump_groups): ... here. Update all uses.
16085 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16086 (find_induction_variables): Refactor format of dump information.
16087 (record_sub_use): Delete.
16088 (record_use): Update all uses.
16089 (record_group): New function.
16090 (record_group_use, find_interesting_uses_op): Call above functions.
16091 Update all uses.
16092 (find_interesting_uses_cond): Ditto.
16093 (group_compare_offset): New function.
16094 (split_all_small_groups): Rename to ...
16095 (split_small_address_groups_p): ... here. Update all uses.
16096 (split_address_groups): Update all uses.
16097 (find_interesting_uses): Refactor format of dump information.
16098 (add_candidate_1): Update all uses. Remove redundant check on iv,
16099 base and step.
16100 (add_candidate, record_common_cand): Remove redundant assert.
16101 (add_iv_candidate_for_biv): Update use.
16102 (add_iv_candidate_derived_from_uses): Update all uses.
16103 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16104 (alloc_use_cost_map): Ditto.
16105 (set_use_iv_cost, get_use_iv_cost): Rename to ...
16106 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
16107 (determine_use_iv_cost_generic): Ditto.
16108 (determine_group_iv_cost_generic): Ditto.
16109 (determine_use_iv_cost_address): Ditto.
16110 (determine_group_iv_cost_address): Ditto.
16111 (determine_use_iv_cost_condition): Ditto.
16112 (determine_group_iv_cost_cond): Ditto.
16113 (determine_use_iv_cost): Ditto.
16114 (determine_group_iv_cost): Ditto.
16115 (set_autoinc_for_original_candidates): Update all uses.
16116 (find_iv_candidates): Update all uses. Refactor dump information.
16117 (determine_use_iv_costs): Ditto.
16118 (determine_iv_costs): Ditto.
16119 (iv_ca_cand_for_use): Rename to ...
16120 (iv_ca_cand_for_group): ... here. Update all uses.
16121 (iv_ca_add_use, iv_ca_add_group): Ditto.
16122 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16123 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16124 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16125 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16126 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16127 (create_new_iv, adjust_iv_update_pos): Ditto.
16128 (rewrite_use_address): Delete.
16129 (rewrite_use_address_1): Rename to ...
16130 (rewrite_use_address): ... here.
16131 (rewrite_use_compare): Update all uses.
16132 (rewrite_use): Delete.
16133 (rewrite_uses): Rename to ...
16134 (rewrite_groups): ... here. Update all uses.
16135 (remove_unused_ivs, free_loop_data): Update all uses.
16136 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16137
16138 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16139
16140 * rtlanal.c (nonzero_bits1): Convert preprocessor check
16141 for WORD_REGISTER_OPERATIONS to runtime check.
16142
16143 2016-04-27 Richard Biener <rguenther@suse.de>
16144
16145 PR ipa/70760
16146 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16147 aggregate_value_p to determine if a function result is
16148 returned by reference.
16149 (ipa_pta_execute): Functions having their address taken are
16150 not automatically nonlocal.
16151
16152 2016-04-27 Jakub Jelinek <jakub@redhat.com>
16153
16154 PR sanitizer/70683
16155 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16156 * fold-const.c (operand_equal_p): If flag_checking and
16157 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16158 and if it returns non-zero, assert iterative_hash_expr on both
16159 args is the same.
16160
16161 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
16162
16163 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16164
16165 2016-04-27 Nick Clifton <nickc@redhat.com>
16166
16167 PR middle-end/49889
16168 * varasm.c (merge_weak): Generate an error if an attempt is made
16169 to convert a non-weak static function into a weak, public function.
16170
16171 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16172
16173 * params.def (MAX_PARTITION_SIZE): New param.
16174 * doc/invoke.texi: Document lto-max-partition.
16175
16176 2016-04-27 Richard Biener <rguenther@suse.de>
16177
16178 PR ipa/70785
16179 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16180 function cummulating used_from_other_partition, externally_visible
16181 and force_output from aliases.
16182 (refered_from_nonlocal_var): Likewise.
16183 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16184 node flags properly.
16185
16186 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
16187
16188 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16189 (-Wmemset-elt-size): New item.
16190
16191 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
16192
16193 PR ada/70759
16194 * stor-layout.h (internal_reference_types): Delete.
16195 * stor-layout.c (reference_types_internal): Likewise.
16196 (internal_reference_types): Likewise.
16197 (layout_type) <REFERENCE_TYPE>: Adjust.
16198
16199 2016-04-27 Jakub Jelinek <jakub@redhat.com>
16200
16201 PR sanitizer/70683
16202 * tree.h (inchash::add_expr): Add FLAGS argument.
16203 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
16204 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
16205 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16206 Formatting fix. Adjust recursive calls. For tcc_comparison,
16207 if swap_tree_comparison (code) is smaller than code, hash that
16208 and arguments in the other order. Hash CONVERT_EXPR the same
16209 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16210 of ADDR_EXPR of decl as the decl itself. Add or remove
16211 OEP_ADDRESS_OF from recursive flags as needed. For
16212 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16213 operands commutatively and only the third one normally.
16214 For internal CALL_EXPR hash in CALL_EXPR_IFN.
16215
16216 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
16217
16218 * config/rtems.h (LIB_SPEC): Add -latomic.
16219
16220 2016-04-27 Joel Sherrill <joel@rtems.org>
16221
16222 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16223 xilink.ld and flags not relevant to RTEMS.
16224
16225 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16226
16227 * toplev.c (backend_init_target): Avoid calling init_reload when using
16228 LRA.
16229
16230 2016-04-26 Jakub Jelinek <jakub@redhat.com>
16231
16232 * reorg.c (try_merge_delay_insns): Declare i and j inside the
16233 for loops rather than one for the whole function.
16234
16235 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
16236
16237 * match.pd (X + CST CMP X): New transformation.
16238
16239 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
16240
16241 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16242 * fold-const.c (fold_binary_loc): Remove 2 transformations
16243 superseded by match.pd.
16244 * match.pd (x+x -> x*2): Generalize to integers.
16245
16246 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
16247
16248 * config/i386/i386.md (operation on memory peephole): Duplicate an
16249 existing peephole and adapt it to match lea rather than an operation
16250 that clobbers CC.
16251
16252 PR rtl-optimization/57193
16253 * opts.c (default_options_table): Add OPT_frename_registers at -O2
16254 and above.
16255 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16256
16257 2016-04-26 Bin Cheng <bin.cheng@arm.com>
16258
16259 * tree-if-conv.c (any_pred_load_store): New static variable.
16260 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
16261 any_pred_load_store instead of and_mask_load_store.
16262 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16263 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16264 (combine_blocks, tree_if_conversion): Ditto.
16265
16266 2016-04-26 Bin Cheng <bin.cheng@arm.com>
16267
16268 PR tree-optimization/70771
16269 PR tree-optimization/70775
16270 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16271 virtual PHI nodes. Delete parameter.
16272 (if_convertible_loop_p_1): Delete argument to above function.
16273 (predicate_all_scalar_phis): Delete code handling single-argument
16274 PHIs.
16275 (tree_if_conversion): Mark and update virtual SSA.
16276
16277 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16278
16279 PR target/61821
16280 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16281 (x86_elf_aligned_common): Rename to ...
16282 (x86_elf_aligned_decl_common): ... this.
16283 Add decl arg. Switch to .lbss for largecomm object. Use
16284 LARGECOMM_SECTION_ASM_OP.
16285 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16286 renaming.
16287 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16288 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16289 Pass new decl arg.
16290 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16291 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16292
16293 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16294
16295 PR target/59407
16296 * config/i386/i386.c (SECTION_LARGE): Define.
16297 (x86_64_elf_select_section): Set it for large data/bss sections.
16298 Only clear SECTION_WRITE for .lrodata.
16299 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16300 data/bss sections.
16301 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16302 * varasm.c (default_elf_asm_named_section): Grow flagchars.
16303 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16304 SECTION_MACH_DEP.
16305 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16306 * doc/tm.texi: Regenerate.
16307
16308 2016-04-26 Jakub Jelinek <jakub@redhat.com>
16309
16310 PR bootstrap/70704
16311 * configure.ac (--enable-checking): Document extra flag, for
16312 non-release builds default to --enable-checking=yes,extra.
16313 If misc checking and extra checking, define CHECKING_P to 2 instead
16314 of 1.
16315 * common.opt (fchecking=): Add.
16316 * doc/invoke.texi (-fchecking=): Document.
16317 * doc/install.texi: Document --enable-checking changes.
16318 * configure: Regenerated.
16319 * config.in: Regenerated.
16320
16321 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
16322
16323 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16324 attribute instead of which_alternative.
16325 * config/i386/sse.md (*mov<mode>_internal): Ditto.
16326 Use EXT_REX_SSE_REG_P where appropriate.
16327
16328 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
16329
16330 * config/i386/predicates.md (const0_operand): Do not match
16331 const_wide_int code.
16332 (const1_operand): Ditto.
16333
16334 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
16335
16336 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16337 for SSE constm1 operands and TARGET_AVX512VL.
16338 (*movti_internal): Ditto.
16339 (*mov<mode>_or): Use constm1_operand predicate.
16340 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16341 for SSE vector_all_ones operands and TARGET_AVX512VL.
16342 * config/i386/predicates.md (constm1_operand): New predicate.
16343 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16344 emission of constant -1 load.
16345
16346 2016-04-25 Jason Merrill <jason@redhat.com>
16347
16348 * gdbinit.in: Skip is-a.h.
16349
16350 * attribs.c (register_scoped_attributes): Fix logic.
16351 * attribs.h: Declare register_scoped_attributes.
16352
16353 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16354
16355 * config/rs6000/rs6000-builtin.def: Correct pasto error for
16356 stxvd2x and stxvw4x built-in functions.
16357
16358 2016-04-25 DJ Delorie <dj@redhat.com>
16359
16360 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16361 (ashrhi3): Likewise.
16362 (lshrhi3): Likewise.
16363
16364 2016-04-25 Richard Biener <rguenther@suse.de>
16365
16366 PR tree-optimization/70780
16367 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16368 wasn't visited yet.
16369 (compute_antic): Mark blocks with abnormal preds as visited as
16370 they have a final empty antic-in solution already.
16371
16372 2016-04-25 Michael Collison <michael.collison@linaro.org>
16373
16374 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16375
16376 2016-04-25 Michael Collison <michael.collison@linaro.org>
16377
16378 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16379 mode is VQI to improve mixed mode vectorization.
16380 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16381 define_insn to match low half of signed vaddw.
16382 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16383 define_insn to match high half of signed vaddw.
16384 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16385 define_insn to match low half of unsigned vaddw.
16386 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16387 define_insn to match high half of unsigned vaddw.
16388 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16389 (arm_simd_check_vect_par_cnst_half_p): Likewise.
16390 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16391 for new function.
16392 (arm_simd_check_vect_par_cnst_half_p): Likewise.
16393 * config/arm/predicates.md (vect_par_constant_high): Support
16394 big endian and simplify by calling
16395 arm_simd_check_vect_par_cnst_half
16396 (vect_par_constant_low): Likewise.
16397
16398 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
16399
16400 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16401 predicate for operand 2.
16402
16403 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
16404 H.J. Lu <hongjiu.lu@intel.com>
16405
16406 * config/i386/i386-protos.h (standard_sse_constant_p): Add
16407 machine_mode argument.
16408 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16409 constm1_rtx operands. For VOIDmode constants, get mode from
16410 pred_mode. Check mode size if the mode is supported by ABI.
16411 (standard_sse_constant_opcode): Do not use standard_constant_p.
16412 Strictly check ABI support for all-ones operands.
16413 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16414 immediates. Update calls to standard_sse_constant_p.
16415 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16416 (ix86_rtx_costs): Ditto.
16417 * config/i386/i386.md (*movxi_internal_avx512f): Use
16418 nonimmediate_or_sse_const_operand instead of vector_move_operand.
16419 Use (v,BC) alternative instead of (v,C). Use register_operand
16420 checks instead of MEM_P.
16421 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16422 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
16423 isa attribute. Use register_operand checks instead of MEM_P.
16424 (*movti_internal): Use nonimmediate_or_sse_const_operand for
16425 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
16426 alternative and corresponding sse2 isa attribute.
16427 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16428 to standard_sse_constant_p.
16429 (FP constant splitters): Ditto.
16430 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16431 (C): Ditto.
16432 * config/i386/predicates.md (constm1_operand): Remove.
16433 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16434 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16435 vector_all_ones_operand instead of constm1_operand.
16436
16437 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16438
16439 * print-rtl.c (print_rtx_insn_vec): New function.
16440 * print-rtl.h: New prototype.
16441 * store-motion.c (struct st_expr): Make avail_stores a vector.
16442 (st_expr_entry): Adjust.
16443 (free_st_expr_entry): Likewise.
16444 (print_store_motion_mems): Likewise.
16445 (find_moveable_store): Likewise.
16446 (compute_store_table): Likewise.
16447 (delete_store): Likewise.
16448 (build_store_vectors): Likewise.
16449
16450 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16451
16452 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16453
16454 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16455
16456 * vec.h (vec_safe_contains): New function.
16457 (vec::contains): Likewise.
16458 (vec::begin): Likewise.
16459 (vec::end): Likewise.
16460
16461 2016-04-23 Jakub Jelinek <jakub@redhat.com>
16462
16463 PR sanitizer/70712
16464 * cfgexpand.c (expand_stack_vars): Fix typo.
16465
16466 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
16467
16468 * system.h (list, map, set, vector): Include conditionally.
16469 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16470 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16471 * ipa-icf.c (INCLUDE_LIST): Define.
16472 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16473 * config/sh/sh.c (INCLUDE_VECTOR): Define.
16474 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16475 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16476 * cp/logic.cc (INCLUDE_LIST): Define.
16477 * fortran/trans-common.c (INCLUDE_MAP): Define.
16478
16479 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
16480
16481 * auto-profile.c: Remove <string.h> include.
16482 * ipa-icf-gimple.c: Remove <list> include.
16483 * diagnostic.c: Remove <new> include.
16484 * genmatch.c: Likewise.
16485 * pretty-print.c: Likewise.
16486 * toplev.c: Likewise
16487 * c/c-objc-common.c: Likewise.
16488 * cp/error.c: Likewise.
16489 * fortran/error.c: Likewise.
16490
16491 2016-04-22 Richard Biener <rguenther@suse.de>
16492
16493 * lto-streamer-in.c (input_ssa_names): Do not allocate
16494 GIMPLE_NOP for all SSA names.
16495 * lto-streamer-out.c (output_ssa_names): Do not output
16496 SSA names that should have been released.
16497
16498 2016-04-22 Richard Biener <rguenther@suse.de>
16499
16500 PR tree-optimization/70740
16501 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16502 VDEF.
16503
16504 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
16505
16506 PR target/70750
16507 * config/i386/predicates.md (call_insn_operand): Replace
16508 sibcall_memory_operand with memory_operand.
16509
16510 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
16511
16512 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16513 has_single_use() tests.
16514 (register_edge_assert_for_1): Likewise.
16515 (find_assert_locations_1): Check the liveness bitmap instead of
16516 checking has_single_use().
16517
16518 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
16519
16520 PR target/70728
16521 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16522 Extract AVX-512BW constraint from AVX.
16523
16524 2016-04-21 Richard Biener <rguenther@suse.de>
16525
16526 PR tree-optimization/70725
16527 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16528 for phi_convertible_by_degenerating_args.
16529 (predicate_all_scalar_phis): Handle single-argument PHIs.
16530
16531 2016-04-21 Richard Biener <rguenther@suse.de>
16532
16533 PR middle-end/70747
16534 * fold-const.c (fold_comparison): Return properly typed
16535 constant boolean.
16536
16537 2016-04-21 Bin Cheng <bin.cheng@arm.com>
16538
16539 PR tree-optimization/70715
16540 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16541 after expanding BASE using expand_simple_operations.
16542
16543 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
16544
16545 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16546 New transformations.
16547
16548 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
16549
16550 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16551
16552 2016-04-20 Jan Hubicka <jh@suse.cz>
16553
16554 * ipa-inline.c (can_inline_edge_p): Pass caller info to
16555 ultiimate_alias_target.
16556 (update_callee_keys): Likewise.
16557 (lookup_recursive_calls): Likewise.
16558 (speculation_useful_p): Likewise.
16559
16560 2016-04-20 Jan Hubicka <jh@suse.cz>
16561
16562 PR ipa/70018
16563 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16564 (set_nothrow_flag_1): ... this; handle interposition correctly;
16565 recurse on aliases and thunks.
16566 (cgraph_node::set_nothrow_flag): New.
16567 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16568 functions compiled with non-call exceptions that binds to current
16569 def.
16570 (propagate_nothrow): Be safe WRT interposition.
16571 * cgraph.h (set_nothrow_flag): Update prototype.
16572
16573 2016-04-18 Jan Hubicka <jh@suse.cz>
16574
16575 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16576 max_loop_iterations_int.
16577 (tree_unswitch_outer_loop): Likewise.
16578
16579 2016-04-20 Bin Cheng <bin.cheng@arm.com>
16580
16581 PR tree-optimization/69489
16582 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
16583 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
16584 Revise dump message.
16585 (if_convertible_bb_p): Remove check on edge count of basic block's
16586 predecessors.
16587
16588 2016-04-20 Bin Cheng <bin.cheng@arm.com>
16589
16590 PR tree-optimization/56625
16591 PR tree-optimization/69489
16592 * tree-data-ref.h (DR_INNERMOST): New macro.
16593 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
16594 hashing struct innermost_loop_behavior.
16595 (ref_DR_map): Remove.
16596 (innermost_DR_map): New map.
16597 (baseref_DR_map): Revise comment.
16598 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
16599 to innermost_DR_map accroding to its innermost loop behavior.
16600 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
16601 to its innermost loop behavior.
16602 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
16603 Add initialization for innermost_DR_map. Record memory reference
16604 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
16605 have innermost loop behavior.
16606 (if_convertible_loop_p): Remove release for ref_DR_map. Release
16607 innermost_DR_map.
16608
16609 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
16610
16611 * config/i386/i386.md (*lea<mode>_general_1): Rename from
16612 *lea_general_1. Use explicit SWI12 mode interator.
16613 (*lea<mode>_general_2): Rename from *lea_general_2.
16614 Use explicit SWI12 mode interator.
16615 (*lea<mode>_general_3): Rename from *lea_general_3.
16616 Use explicit SWI12 mode interator.
16617 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
16618 Use explicit SWI12 mode interator.
16619 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
16620 Use explicit SWI48 mode interator.
16621
16622 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
16623
16624 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16625 Short-cut unaligned load and store cases. Handle all integer
16626 vector modes.
16627 (ix86_expand_vector_move_misalign): Short-cut unaligned load
16628 and store cases. Call ix86_avx256_split_vector_move_misalign
16629 directly without checking mode class.
16630
16631 2016-04-20 Andrew Pinski <apinski@cavium.com>
16632 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16633
16634 PR target/64971
16635 * config/aarch64/aarch64.md (sibcall): Force call
16636 address to be DImode for ILP32.
16637 (sibcall_value): Likewise.
16638
16639 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
16640
16641 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
16642
16643 2016-04-20 Richard Biener <rguenther@suse.de>
16644
16645 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
16646 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
16647 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
16648 (maybe_push_res_to_seq): Adjust.
16649 * gimple-fold.c (maybe_build_generic_op): Likewise.
16650
16651 2016-04-20 Marek Polacek <polacek@redhat.com>
16652
16653 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
16654 rather than true.
16655
16656 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
16657
16658 * config/i386/sse.md (vec_unpacks_lo_hi): Always
16659 use kmovw to support AVX512F target.
16660
16661 2016-04-20 Bin Cheng <bin.cheng@arm.com>
16662
16663 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
16664
16665 2016-04-20 Marek Polacek <polacek@redhat.com>
16666
16667 PR tree-optimization/70725
16668 * tree-if-conv.c (is_false_predicate): New function.
16669 (predicate_mem_writes): Use it.
16670
16671 2016-04-20 Richard Biener <rguenther@suse.de>
16672
16673 PR tree-optimization/70726
16674 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
16675 shift amounts from a pattern stmt operand.
16676
16677 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16678
16679 PR target/70674
16680 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
16681 stack_restore_from_fpr pattern when restoring r15.
16682 (s390_optimize_prologue): Strip away the memory barrier in the
16683 parallel when trying to get rid of restore insns.
16684 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
16685 definition for loading the stack pointer from an FPR. Compared to
16686 the normal move insn this pattern includes a full memory barrier.
16687
16688 2016-04-19 Jakub Jelinek <jakub@redhat.com>
16689
16690 PR middle-end/70680
16691 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
16692 implicitly linear or lastprivate iterator on the outer context.
16693
16694 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
16695
16696 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
16697 alignment check.
16698 * config/i386/i386.md (ssememalign): Removed.
16699 * config/i386/sse.md: Remove ssememalign attribute from patterns.
16700
16701 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
16702
16703 PR target/69201
16704 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
16705 const short * to __builtin_ia32_loaddquhi512_mask.
16706 (_mm512_maskz_loadu_epi16): Likewise.
16707 (_mm512_mask_storeu_epi16): Pass short * to
16708 __builtin_ia32_storedquhi512_mask.
16709 (_mm512_mask_loadu_epi8): Pass const char * to
16710 __builtin_ia32_loaddquqi512_mask.
16711 (_mm512_maskz_loadu_epi8): Likewise.
16712 (_mm512_mask_storeu_epi8): Pass char * to
16713 __builtin_ia32_storedquqi512_mask.
16714 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
16715 const double * to __builtin_ia32_loadupd512_mask.
16716 (_mm512_mask_loadu_pd): Likewise.
16717 (_mm512_maskz_loadu_pd): Likewise.
16718 (_mm512_storeu_pd): Pass double * to
16719 __builtin_ia32_storeupd512_mask.
16720 (_mm512_mask_storeu_pd): Likewise.
16721 (_mm512_loadu_ps): Pass const float * to
16722 __builtin_ia32_loadups512_mask.
16723 (_mm512_mask_loadu_ps): Likewise.
16724 (_mm512_maskz_loadu_ps): Likewise.
16725 (_mm512_storeu_ps): Pass float * to
16726 __builtin_ia32_storeups512_mask.
16727 (_mm512_mask_storeu_ps): Likewise.
16728 (_mm512_mask_loadu_epi64): Pass const long long * to
16729 __builtin_ia32_loaddqudi512_mask.
16730 (_mm512_maskz_loadu_epi64): Likewise.
16731 (_mm512_mask_storeu_epi64): Pass long long *
16732 to __builtin_ia32_storedqudi512_mask.
16733 (_mm512_loadu_si512): Pass const int * to
16734 __builtin_ia32_loaddqusi512_mask.
16735 (_mm512_mask_loadu_epi32): Likewise.
16736 (_mm512_maskz_loadu_epi32): Likewise.
16737 (_mm512_storeu_si512): Pass int * to
16738 __builtin_ia32_storedqusi512_mask.
16739 (_mm512_mask_storeu_epi32): Likewise.
16740 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
16741 char * to __builtin_ia32_storedquqi256_mask.
16742 (_mm_mask_storeu_epi8): Likewise.
16743 (_mm256_mask_loadu_epi16): Pass const short * to
16744 __builtin_ia32_loaddquhi256_mask.
16745 (_mm256_maskz_loadu_epi16): Likewise.
16746 (_mm_mask_loadu_epi16): Pass const short * to
16747 __builtin_ia32_loaddquhi128_mask.
16748 (_mm_maskz_loadu_epi16): Likewise.
16749 (_mm256_mask_loadu_epi8): Pass const char * to
16750 __builtin_ia32_loaddquqi256_mask.
16751 (_mm256_maskz_loadu_epi8): Likewise.
16752 (_mm_mask_loadu_epi8): Pass const char * to
16753 __builtin_ia32_loaddquqi128_mask.
16754 (_mm_maskz_loadu_epi8): Likewise.
16755 (_mm256_mask_storeu_epi16): Pass short * to.
16756 __builtin_ia32_storedquhi256_mask.
16757 (_mm_mask_storeu_epi16): Pass short * to.
16758 __builtin_ia32_storedquhi128_mask.
16759 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
16760 const double * to __builtin_ia32_loadupd256_mask.
16761 (_mm256_maskz_loadu_pd): Likewise.
16762 (_mm_mask_loadu_pd): Pass onst double * to
16763 __builtin_ia32_loadupd128_mask.
16764 (_mm_maskz_loadu_pd): Likewise.
16765 (_mm256_mask_storeu_pd): Pass double * to
16766 __builtin_ia32_storeupd256_mask.
16767 (_mm_mask_storeu_pd): Pass double * to
16768 __builtin_ia32_storeupd128_mask.
16769 (_mm256_mask_loadu_ps): Pass const float * to
16770 __builtin_ia32_loadups256_mask.
16771 (_mm256_maskz_loadu_ps): Likewise.
16772 (_mm_mask_loadu_ps): Pass const float * to
16773 __builtin_ia32_loadups128_mask.
16774 (_mm_maskz_loadu_ps): Likewise.
16775 (_mm256_mask_storeu_ps): Pass float * to
16776 __builtin_ia32_storeups256_mask.
16777 (_mm_mask_storeu_ps): ass float * to
16778 __builtin_ia32_storeups128_mask.
16779 (_mm256_mask_loadu_epi64): Pass const long long * to
16780 __builtin_ia32_loaddqudi256_mask.
16781 (_mm256_maskz_loadu_epi64): Likewise.
16782 (_mm_mask_loadu_epi64): Pass const long long * to
16783 __builtin_ia32_loaddqudi128_mask.
16784 (_mm_maskz_loadu_epi64): Likewise.
16785 (_mm256_mask_storeu_epi64): Pass long long * to
16786 __builtin_ia32_storedqudi256_mask.
16787 (_mm_mask_storeu_epi64): Pass long long * to
16788 __builtin_ia32_storedqudi128_mask.
16789 (_mm256_mask_loadu_epi32): Pass const int * to
16790 __builtin_ia32_loaddqusi256_mask.
16791 (_mm256_maskz_loadu_epi32): Likewise.
16792 (_mm_mask_loadu_epi32): Pass const int * to
16793 __builtin_ia32_loaddqusi128_mask.
16794 (_mm_maskz_loadu_epi32): Likewise.
16795 (_mm256_mask_storeu_epi32): Pass int * to
16796 __builtin_ia32_storedqusi256_mask.
16797 (_mm_mask_storeu_epi32): Pass int * to
16798 __builtin_ia32_storedqusi128_mask.
16799 * config/i386/i386-builtin-types.def (PCSHORT): New.
16800 (PINT64): Likewise.
16801 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
16802 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
16803 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
16804 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
16805 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
16806 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
16807 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
16808 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
16809 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
16810 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
16811 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
16812 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
16813 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
16814 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
16815 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
16816 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
16817 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
16818 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
16819 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
16820 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
16821 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
16822 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
16823 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
16824 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
16825 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
16826 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
16827 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
16828 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
16829 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
16830 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
16831 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
16832 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
16833 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
16834 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
16835 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
16836 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
16837 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
16838 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
16839 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
16840 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
16841 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
16842 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
16843 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
16844 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
16845 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
16846 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
16847 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
16848 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
16849 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
16850 use UNSPEC_STOREU.
16851 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
16852 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
16853 load nor store.
16854 (ix86_expand_vector_move_misalign): Likewise.
16855 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
16856 to scalar function prototype for unaligned load/store builtins.
16857 (ix86_expand_special_args_builtin): Updated.
16858 * config/i386/sse.md (UNSPEC_LOADU): Removed.
16859 (UNSPEC_STOREU): Likewise.
16860 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
16861 (VI_ULOADSTORE_F_AVX512VL): Likewise.
16862 (ssescalarsize): Handle V4TI, V2TI and V1TI.
16863 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16864 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16865 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
16866 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
16867 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
16868 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
16869 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
16870 (<avx512>_storedqu<mode>_mask): Likewise.
16871 (*sse4_2_pcmpestr_unaligned): Likewise.
16872 (*sse4_2_pcmpistr_unaligned): Likewise.
16873 (*mov<mode>_internal): Renamed to ...
16874 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
16875 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
16876 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
16877 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
16878
16879 2016-04-19 Richard Biener <rguenther@suse.de>
16880
16881 PR tree-optimization/70171
16882 * tree-ssa-phiprop.c: Include stor-layout.h.
16883 (phiprop_insert_phi): Handle the aggregate copy case.
16884 (propagate_with_phi): Likewise.
16885
16886 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
16887
16888 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
16889 instead of simplify_gen_subreg (... , 0).
16890 (ix86_delegitimize_address): Ditto.
16891 (ix86_split_divmod): Ditto.
16892 (ix86_split_copysign_const): Ditto.
16893 (ix86_split_copysign_var): Ditto.
16894 (ix86_expand_args_builtin): Ditto.
16895 (ix86_expand_round_builtin): Ditto.
16896 (ix86_expand_special_args_builtin): Ditto.
16897 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
16898 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
16899 (udivmodqi4): Ditto.
16900 (absneg splitters): Ditto.
16901 (*jcc_bt<mode>_1): Ditto.
16902
16903 2016-04-19 Richard Biener <rguenther@suse.de>
16904
16905 PR tree-optimization/70724
16906 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
16907 restoring out from ...
16908 (free_scc_vn): ... here.
16909 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
16910 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
16911 tail merging.
16912 (pass_fre::execute): Restore SSA info.
16913
16914 2016-04-19 Richard Biener <rguenther@suse.de>
16915
16916 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
16917 * gimple-walk.c (walk_gimple_op): Initialize it.
16918 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
16919 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
16920 remapping SSA names of defs.
16921 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
16922 adjustment.
16923
16924 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
16925
16926 PR middle-end/70689
16927 * lra-constraints.c (equiv_substition_p): New.
16928 (process_alt_operands): Use it.
16929 (swap_operands): Swap it.
16930 (curr_insn_transform): Update it.
16931
16932 2016-04-18 Michael Matz <matz@suse.de>
16933
16934 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
16935 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
16936 * tree-core.h (tree_type_common.align): Use bit-field.
16937 (tree_type_common.spare): New.
16938 (tree_decl_common.off_align): Make smaller.
16939 (tree_decl_common.align): Use bit-field.
16940
16941 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
16942 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
16943 (scan_sharing_clauses): Ditto.
16944 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16945 (omp_finish_file): Ditto.
16946 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
16947 (layout_decl): Ditto.
16948 (relayout_decl): Ditto.
16949 (finalize_record_size): Use SET_TYPE_ALIGN.
16950 (finalize_type_size): Ditto.
16951 (finish_builtin_struct): Ditto.
16952 (layout_type): Ditto.
16953 (initialize_sizetypes): Ditto.
16954 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
16955 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
16956 (lookup_field_for_decl): Use SET_DECL_ALIGN.
16957 (get_chain_field): Ditto.
16958 (get_trampoline_type): Ditto.
16959 (get_nl_goto_field): Ditto.
16960 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16961 SET_DECL_ALIGN.
16962 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
16963 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
16964 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16965 (build_qualified_type): Use SET_TYPE_ALIGN.
16966 (build_aligned_type, build_range_type_1): Ditto.
16967 (build_atomic_base): Ditto.
16968 (build_common_tree_nodes): Ditto.
16969 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
16970 (expand_one_stack_var_at): Ditto.
16971 * coverage.c (build_var): Use SET_DECL_ALIGN.
16972 * except.c (init_eh): Ditto.
16973 * function.c (assign_parm_setup_block): Ditto.
16974 * symtab.c (increase_alignment_1): Ditto.
16975 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
16976 * tree-vect-stmts.c (ensure_base_align): Ditto.
16977 * varasm.c (align_variable): Ditto.
16978 (assemble_variable): Ditto.
16979 (build_constant_desc): Ditto.
16980 (output_constant_def_contents): Ditto.
16981
16982 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
16983 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
16984 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
16985 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
16986 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
16987
16988 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
16989
16990 PR target/70708
16991 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
16992 replace %vmovsd with "%vmovq".
16993 (vec_concatv2df): Likewise.
16994
16995 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
16996
16997 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
16998 (*vec_extractv2si_0): Ditto.
16999 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
17000 (zero_extended_scalar_load_operand splitters): Ditto.
17001 (vec_extract splitters): Ditto.
17002 (*vec_extractv4si_0_zext): Ditto.
17003 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
17004 and lowpart_subreg.
17005 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
17006 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
17007 (*sse4_1_extractps): Use lowpart_subreg.
17008 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
17009
17010 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17011
17012 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
17013 gld requirements.
17014 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
17015 Mention Solaris 11 packaging changes.
17016 Update gas and gld requirements.
17017 Remove reference to pre-Solaris 10 bug.
17018 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
17019 systems and bugs.
17020 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
17021 with cc.
17022
17023 2016-04-17 Jan Hubicka <jh@suse.cz>
17024
17025 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
17026 max_loop_iterations_int.
17027
17028 2016-04-18 Richard Biener <rguenther@suse.de>
17029
17030 PR tree-optimization/43434
17031 * tree-ssa-structalias.c (struct vls_data): New.
17032 (visit_loadstore): Handle all pointer-based accesses.
17033 (compute_dependence_clique): Compute a bitmap of restrict tags
17034 assigned bases and pass it to visit_loadstore.
17035
17036 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
17037
17038 PR target/70711
17039 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
17040 armv8.1-a and armv8.1-a+crc.
17041
17042 2016-04-18 Richard Biener <rguenther@suse.de>
17043
17044 PR tree-optimization/70701
17045 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
17046 references after translating through a memcpy.
17047
17048 2016-04-18 Richard Biener <rguenther@suse.de>
17049
17050 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17051 (compute_antic): ... here. For partial antic use regular
17052 postorder and scrap iteration.
17053 (compute_partial_antic_aux): Remove unused return value.
17054 (init_pre): Do not allocate postorder.
17055 (fini_pre): Do not free postorder.
17056
17057 2016-04-18 Richard Biener <rguenther@suse.de>
17058
17059 PR middle-end/37870
17060 * expmed.c (extract_bit_field_1): Remove broken case
17061 using a wider MODE_INT mode.
17062
17063 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
17064
17065 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17066 unless compiling with at least GCC-4.8.
17067
17068 2016-04-17 Jan Hubicka <jh@suse.cz>
17069
17070 PR bootstrap/70706
17071 * graphite.c (graphite_finalize): Update call to
17072 tree_estimate_probability.
17073 * predict.h (tree_estimate_probability): Update prototype.
17074
17075 2016-04-17 Jan Hubicka <jh@suse.cz>
17076
17077 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17078 (tree_estimate_probability): Likewise.
17079 (pass_profile::execute): Update.
17080 (report_predictor_hitrates): New function.
17081 * profile.c (compute_branch_probabilities): Use it.
17082 * predict.h (report_predictor_hitrates): Declare.
17083
17084 2016-04-17 Jan Hubicka <jh@suse.cz>
17085
17086 PR ipa/70018
17087 * cgraph.h (cgraph_node::set_const_flag,
17088 cgraph_node::set_pure_flag): Update prototype to return bool;
17089 update comment.
17090 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17091 of interposable symbol are interposable, too.
17092 (cgraph_set_const_flag_1): Rename to ...
17093 (set_const_flag_1): ... this one; change to self recursive function
17094 instead of call_for_symbol_thunks_and_aliases. Handle correctly
17095 clearnig the flag in all variants and also virtual thunks of const
17096 functions are pure; track if any change was done.
17097 (cgraph_node::set_const_flag): Update.
17098 (struct set_pure_flag_info): New struct.
17099 (cgraph_set_pure_flag_1): Rename to ...
17100 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17101 rather than pointer encoded flags; track if any changes was done;
17102 handle correctly clearning flag and setting flag of aliases already
17103 declared const.
17104 (cgraph_node::set_pure_flag): Update.
17105 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17106
17107 2016-04-17 Tom de Vries <tom@codesourcery.com>
17108
17109 PR other/70433
17110 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17111 backslash in label.
17112
17113 2016-04-17 Tom de Vries <tom@codesourcery.com>
17114
17115 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17116 '{}<> ' as escape-for-record.
17117
17118 2016-04-17 Tom de Vries <tom@codesourcery.com>
17119
17120 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17121 structure.
17122
17123 2016-04-17 Tom de Vries <tom@codesourcery.com>
17124
17125 PR other/70185
17126 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17127 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17128 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17129 * passes.c (finish_optimization_passes): Only call
17130 finish_graph_dump_file if dfi->graph_dump_initialized.
17131 (execute_function_dump, pass_init_dump_file): Use
17132 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17133
17134 2016-04-17 Tom de Vries <tom@codesourcery.com>
17135
17136 PR tree-optimization/70256
17137 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17138 (debug_varmap): New function.
17139
17140 2016-04-17 Tom de Vries <tom@codesourcery.com>
17141
17142 PR other/70183
17143 * passes.c (pass_manager::register_pass): Propagate pflags.
17144
17145 2016-04-17 Tom de Vries <tom@codesourcery.com>
17146
17147 PR other/68875
17148 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17149 * passes.c (pass_manager::pass_manager): Declare and init p_start in
17150 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
17151 check if it's equal to p_start.
17152 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17153
17154 2016-04-15 Jan Hubicka <jh@suse.cz>
17155
17156 PR ipa/70018
17157 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17158 function does not bind to current def.
17159 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17160 handle conservatively calls to functions that does not need to bind
17161 to current def.
17162 (check_call): Update call of worse_state.
17163 (ignore_edge_for_nothrow): Update.
17164 (ignore_edge_for_pure_const): Likewise.
17165 (propagate_pure_const): Update calls to worse_state.
17166 (skip_function_for_local_pure_const): Reformat comments.
17167
17168 2016-04-15 Jan Hubicka <jh@suse.cz>
17169
17170 PR ipa/70018
17171 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17172 (cgraph_node::function_symbol): Likewise.
17173 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17174 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17175 (symtab_node::ultimate_alias_target): Add REF parameter.
17176 (symtab_node::binds_to_current_def_p): Declare.
17177 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17178 (cgraph_node::function_symbol): Likewise.
17179 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17180 (cgraph_node::get_availability): Likewise.
17181 (cgraph_edge::binds_to_current_def_p): New inline function.
17182 (varpool_node::get_availability): Add REF parameter.
17183 (varpool_node::ultimate_alias_target): Likewise.
17184 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17185 (symtab_node::binds_to_current_def_p): Likewise.
17186 * varpool.c (varpool_node::get_availability): Likewise.
17187
17188 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
17189
17190 PR target/70662
17191 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17192 Fix mode size check.
17193
17194 2016-04-15 Jakub Jelinek <jakub@redhat.com>
17195
17196 * BASE-VER: Set to 7.0.0.
17197
17198 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
17199
17200 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17201
17202 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17203
17204 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17205 architecture revisions.
17206
17207 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
17208
17209 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17210 * config/i386/i386.c (ix86_using_red_zone): No longer static.
17211 * config/i386/i386.md (stack decrement to push peepholes): Guard
17212 with !x86_using_red_zone ().
17213
17214 2016-04-15 Jakub Jelinek <jakub@redhat.com>
17215
17216 PR c++/70675
17217 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17218 to dump_generic_node.
17219 (NIY): Pass also flags to do_niy.
17220
17221 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
17222
17223 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17224 (simd_clone_vector_of_formal_parm_types)
17225 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17226 (simd_clone_mangle, simd_clone_create)
17227 (simd_clone_adjust_return_type, create_tmp_simd_array)
17228 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17229 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17230 (ipa_simd_modify_function_body, simd_clone_linear_addend)
17231 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17232 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17233 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17234 * omp-simd-clone.c: ... this new file.
17235 (simd_clone_vector_of_formal_parm_types): Make it static.
17236 * Makefile.in (OBJS): Add omp-simd-clone.o.
17237
17238 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
17239
17240 PR target/70662
17241 * config/i386/sse.md: Use proper memory operand modifiers.
17242
17243
17244 2016-04-15 Richard Biener <rguenther@suse.de>
17245 Alan Modra <amodra@gmail.com>
17246
17247 PR tree-optimization/70130
17248 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17249 when alignment stays not the same and no not use the realign
17250 scheme then.
17251
17252 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17253
17254 PR target/70669
17255 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17256 direct move handlers for KFmode. Change TFmode handlers test from
17257 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17258
17259 2016-04-14 Jakub Jelinek <jakub@redhat.com>
17260
17261 PR c++/70594
17262 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17263 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17264 (inlined_polymorphic_ctor_dtor_block_p): Use it.
17265 * tree-ssa-live.c (remove_unused_scope_block_p): When
17266 in_ctor_dtor_block, avoid discarding not just BLOCKs with
17267 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17268 block_ultimate_origin is FUNCTION_DECL.
17269 (remove_unused_locals): If current_function_decl is
17270 polymorphic_ctor_dtor_p, pass initial true to
17271 remove_unused_scope_block_p' is_ctor_dtor_block.
17272
17273 2016-04-14 Martin Sebor <msebor@redhat.com>
17274
17275 PR c++/69517
17276 PR c++/70019
17277 PR c++/70588
17278 * doc/extend.texi (Variable Length): Revert.
17279
17280 2016-04-14 Marek Polacek <polacek@redhat.com>
17281 Jan Hubicka <hubicka@ucw.cz>
17282
17283 PR c++/70029
17284 * tree.c (verify_type): Disable the canonical type of main variant
17285 check.
17286
17287 2016-04-14 Jason Merrill <jason@redhat.com>
17288
17289 * cfgexpand.c, expr.c: Revert previous change.
17290
17291 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
17292
17293 PR middle-end/70643
17294 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17295 when building a mem ref for the incoming reduction variable.
17296
17297 2016-04-14 Richard Biener <rguenther@suse.de>
17298
17299 PR tree-optimization/70614
17300 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17301 loop if the evolution dropped to chrec_dont_know.
17302 (interpret_condition_phi): Likewise.
17303
17304 2016-04-14 Richard Biener <rguenther@suse.de>
17305
17306 PR tree-optimization/70623
17307 * tree-ssa-pre.c (changed_blocks): Make global ...
17308 (compute_antic): ... local here. Move and fix worklist
17309 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17310 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
17311 worklist handling, dump when ANTIC_IN changed.
17312 (compute_partial_antic_aux): Remove worklist handling.
17313 (init_pre): Do not compute post dominators. Add a comment about
17314 the CFG order chosen.
17315 (fini_pre): Do not free post dominators.
17316
17317 2016-04-13 Martin Sebor <msebor@redhat.com>
17318
17319 PR c++/69517
17320 PR c++/70019
17321 PR c++/70588
17322 * doc/extend.texi (Variable Length): Document C++ specifics.
17323
17324 2016-04-13 Jakub Jelinek <jakub@redhat.com>
17325
17326 PR c++/70641
17327 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17328 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
17329 eh edges have been purged.
17330
17331 PR c++/70594
17332 * tree-sra.c (create_access_replacement,
17333 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17334 gets fancy name.
17335 * tree-pretty-print.c (dump_fancy_name): New function.
17336 (dump_decl_name, dump_generic_node): Use it.
17337
17338 2016-04-13 Jason Merrill <jason@redhat.com>
17339
17340 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17341 * expr.c (expand_expr_real_1): Likewise.
17342
17343 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
17344
17345 * config/i386/i386.md (kunpckhi): Swap operands.
17346 (kunpcksi): Likewise.
17347 (kunpckdi): Likewise.
17348 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17349 (vec_pack_trunc_<mode>): Likewise.
17350
17351 2016-04-13 Jakub Jelinek <jakub@redhat.com>
17352
17353 PR debug/70628
17354 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17355
17356 PR middle-end/70633
17357 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17358 gimplification turns some element into non-constant.
17359
17360 PR debug/70628
17361 * rtl.h (convert_memory_address_addr_space_1): New prototype.
17362 * explow.c (convert_memory_address_addr_space_1): No longer static,
17363 add NO_EMIT argument and don't call convert_modes if true, pass
17364 it down recursively, remove break after return.
17365 (convert_memory_address_addr_space): Adjust caller.
17366 * simplify-rtx.c (simplify_unary_operation_1): Call
17367 convert_memory_address_addr_space_1 instead of convert_memory_address,
17368 if it returns NULL, don't simplify.
17369
17370 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
17371
17372 PR target/70630
17373 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17374
17375 2016-04-12 Jakub Jelinek <jakub@redhat.com>
17376
17377 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17378 Bump the upper SIMDLEN limits, so that if the return type or
17379 characteristic type if the return type is void can be passed in
17380 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17381 allowed.
17382
17383 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17384
17385 PR target/70640
17386 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17387 Do not use "=" constraint on an input constraint.
17388 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17389 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17390 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17391 generates (neg (abs ...)) instead of (abs ...).
17392
17393 2016-04-12 Jakub Jelinek <jakub@redhat.com>
17394
17395 PR rtl-optimization/70596
17396 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17397 just invalidate LRA data and reset them. Adjust dump wording.
17398
17399 2016-04-12 Martin Liska <mliska@suse.cz>
17400
17401 Revert
17402 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
17403
17404 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17405 estimates here.
17406 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17407 max_loop_iterations_int.
17408 (tree_unswitch_outer_loop): Likewise.
17409 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17410 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17411
17412 2016-04-12 Tom de Vries <tom@codesourcery.com>
17413
17414 PR tree-optimization/68756
17415 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17416 instead of new_name.
17417
17418 2016-04-12 Jakub Jelinek <jakub@redhat.com>
17419
17420 PR tree-optimization/70602
17421 * tree-sra.c (generate_subtree_copies): Don't write anything into
17422 constant pool decls.
17423
17424 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17425 regardless whether there are depend clauses or not.
17426
17427 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17428
17429 PR target/70381
17430 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17431 target attribute and pragma from changing the -mfloat128
17432 and -mfloat128-hardware options.
17433
17434 * doc/extend.texi (Additional Floating Types): Document PowerPC
17435 __float128 restrictions.
17436
17437 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17438
17439 PR target/70133
17440 * config/aarch64/driver-aarch64.c
17441 (aarch64_get_extension_string_for_isa_flags): New.
17442 (arch_extension): Rename to...
17443 (aarch64_arch_extension): ...This.
17444 (ext_to_feat_string): Rename to...
17445 (aarch64_extensions): ...This.
17446 (aarch64_core_data): Keep track of architecture extension flags.
17447 (cpu_data): Rename to...
17448 (aarch64_cpu_data): ...This.
17449 (aarch64_arch_driver_info): Keep track of architecture extension
17450 flags.
17451 (get_arch_name_from_id): Rename to...
17452 (get_arch_from_id): ...This, change return type.
17453 (host_detect_local_cpu): Update and reformat for renames, handle
17454 extensions through common infrastructure.
17455
17456 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17457
17458 PR target/70133
17459 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17460 track of a canonical flag name.
17461 (all_extensions): Likewise.
17462 (arch_to_arch_name): Also track extension flags enabled by the arch.
17463 (all_architectures): Likewise.
17464 (aarch64_parse_extension): Move to here.
17465 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17466 rework.
17467 (aarch64_rewrite_selected_cpu): Update for above change.
17468 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17469 are handled, such that the single explicit value enabled by an
17470 extension is kept seperate from the implicit values it also enables.
17471 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17472 to here.
17473 (aarch64_parse_extension): New.
17474 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17475 here to config/aarch64/aarch64-protos.h.
17476 (aarch64_parse_extension): Move from here to
17477 common/config/aarch64/aarch64-common.c.
17478 (aarch64_option_print): Update.
17479 (aarch64_declare_function_name): Likewise.
17480 (aarch64_start_file): Likewise.
17481 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17482 the canonical flag for extensions.
17483 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17484 flags.
17485
17486 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17487
17488 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17489 AARCH64_FL_CRC.
17490
17491 2016-04-09 Tom de Vries <tom@codesourcery.com>
17492
17493 PR tree-optimization/68953
17494 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17495 first to last subscript.
17496
17497 2016-04-09 Jakub Jelinek <jakub@redhat.com>
17498
17499 PR tree-optimization/70586
17500 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17501 for any calls.
17502
17503 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
17504
17505 PR lto/70289
17506 PR ipa/70348
17507 PR tree-optimization/70373
17508 PR middle-end/70533
17509 PR middle-end/70534
17510 PR middle-end/70535
17511 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17512 clauses for acc parallel reductions as necessary. Error on those
17513 that are private.
17514 * omp-low.c (scan_sharing_clauses): Don't install variables which
17515 are used in acc parallel reductions.
17516 (lower_rec_input_clauses): Remove dead code.
17517 (lower_oacc_reductions): Add support for reference reductions.
17518 (lower_reduction_clauses): Remove dead code.
17519 (lower_omp_target): Don't remap variables appearing in acc parallel
17520 reductions.
17521 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17522
17523 2016-04-08 Jakub Jelinek <jakub@redhat.com>
17524
17525 PR middle-end/70593
17526 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17527 with multiple SSA_NAME defs, force the outputs other than first
17528 to be live before calling live_track_process_def on each output.
17529
17530 PR rtl-optimization/70574
17531 * fwprop.c (forward_propagate_and_simplify): Don't add
17532 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17533 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17534 paradoxical subregs within *loc.
17535
17536 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
17537
17538 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17539 -ftree-parallelize-loops={0,1}.
17540 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17541 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17542 * config/ia64/hpux.h (LIB_SPEC): Likewise.
17543 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17544 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17545
17546 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
17547
17548 PR sanitizer/70541
17549 * asan.c (instrument_derefs): If we get unknown location, extract it
17550 with EXPR_LOCATION.
17551 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17552
17553 2016-04-08 Tom de Vries <tom@codesourcery.com>
17554
17555 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17556 implicit firstprivate clause.
17557
17558 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17559
17560 PR target/70566
17561 * config/arm/thumb2.md (tst + branch-> lsls + branch
17562 peephole below *orsi_not_shiftsi_si): Require that condition
17563 register is dead after the peephole.
17564 (second peephole after the above): Likewise.
17565
17566 2016-04-08 Alan Modra <amodra@gmail.com>
17567
17568 PR target/70117
17569 * builtins.c (fold_builtin_classify): For IBM extended precision,
17570 look at just the high-order double to test for NaN.
17571 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
17572 test just the high double for Inf but both doubles for subnormal
17573 limit.
17574
17575 2016-04-07 Jakub Jelinek <jakub@redhat.com>
17576
17577 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17578 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17579 node->simdclone->mask_mode != VOIDmode masks.
17580 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
17581 earlier, use it instead of node->simdclone.
17582 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17583 Set clonei->mask_mode.
17584
17585 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
17586
17587 PR c/70436
17588 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
17589 Pass it through to cp_parser_already_scoped_statement.
17590 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
17591 it through to cp_parser_statement.
17592 (cp_parser_statement): Pass IF_P through to
17593 cp_parser_iteration_statement.
17594 (cp_parser_pragma): Adjust call to
17595 cp_parser_iteration_statement.
17596
17597 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
17598
17599 PR c/70436
17600 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
17601 resolve a future -Wparentheses warning.
17602 * omp-low.c (scan_sharing_clauses): Likewise.
17603 * tree-parloops.c (eliminate_local_variables): Likewise.
17604
17605 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
17606
17607 PR rtl-optimization/70398
17608 * lra-constraints.c (process_address_1): Check zero scale and code
17609 for reloading with zero scale.
17610
17611 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
17612
17613 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
17614 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
17615
17616 2016-04-06 Jakub Jelinek <jakub@redhat.com>
17617
17618 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17619 Add support for AVX512F clones, include them by default for
17620 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
17621 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
17622 up to 128.
17623
17624 PR middle-end/70550
17625 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
17626 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
17627 firstprivate clauses.
17628 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
17629 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
17630 (lower_omp_target): Set TREE_NO_WARNING for
17631 non-addressable possibly uninitialized vars which are copied into
17632 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
17633
17634 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
17635
17636 * config/pa/predicates.md (integer_store_memory_operand): Accept
17637 REG+D operands with a large offset when reload_in_progress is true.
17638 (floating_point_store_memory_operand): Likewise.
17639
17640 2016-04-05 Jakub Jelinek <jakub@redhat.com>
17641
17642 PR c++/70336
17643 * match.pd (nested int casts): Limit to GIMPLE.
17644
17645 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
17646
17647 PR ipa/66223
17648 * ipa-devirt.c (maybe_record_node): Fix comment; use
17649 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
17650
17651 2016-04-05 Jakub Jelinek <jakub@redhat.com>
17652
17653 PR rtl-optimization/70542
17654 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
17655 if there are any uses other than insn or debug insns.
17656
17657 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
17658 Jakub Jelinek <jakub@redhat.com>
17659
17660 PR tree-optimization/70509
17661 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
17662 Shift HOST_WIDE_INT_1U instead of 1.
17663
17664 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
17665
17666 PR tree-optimization/70509
17667 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
17668 of the vector base type for index.
17669
17670 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
17671
17672 PR target/70510
17673 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
17674
17675 2016-04-05 Richard Biener <rguenther@suse.de>
17676
17677 PR tree-optimization/70526
17678 * tree-sra.c (build_ref_for_offset): Use prev_base to
17679 extract the alias pointer type.
17680
17681 2016-04-05 Richard Biener <rguenther@suse.de>
17682
17683 * dse.c (struct store_info): Remove alias_set member.
17684 (struct read_info_type): Likewise.
17685 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
17686 spill_deleted, clear_alias_set_lookup): Remove.
17687 (get_group_info): Remove dead base == NULL_RTX case.
17688 (dse_step0): Remove initialization of removed variables.
17689 (delete_dead_store_insn): Reomve alias set dumping.
17690 (free_read_records): Remove alias_set handling.
17691 (canon_address): Remove alias_set_out parameter.
17692 (record_store): Remove spill_alias_set, it's always zero.
17693 (check_mem_read_rtx): Likewise.
17694 (dse_step2): Rename from ...
17695 (dse_step2_nospill): ... this. Adjust.
17696 (scan_stores): Rename from ...
17697 (scan_stores_nospill): ... this.
17698 (scan_reads): Rename from ...
17699 (scan_reads_nospill): ... this.
17700 (scan_stores_spill, scan_reads_spill): Remove.
17701 (dse_step3_scan): Remove for_spills argument which is always false.
17702 (dse_step3): Likewise.
17703 (dse_step5): Rename from ...
17704 (dse_step5_nospill): ... this. Remove alias_set handling.
17705 (rest_of_handle_dse): Adjust.
17706
17707 2016-04-05 Jakub Jelinek <jakub@redhat.com>
17708
17709 PR target/70525
17710 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
17711 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
17712 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
17713 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
17714
17715 2016-04-05 Richard Biener <rguenther@suse.de>
17716
17717 PR middle-end/70499
17718 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
17719 non-register type temporaries into SSA.
17720
17721 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
17722
17723 PR ipa/66223
17724 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
17725 calls when sanitizing.
17726 (possible_polymorphic_call_target_p): Fix formatting.
17727
17728 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17729 Jakub Jelinek <jakub@redhat.com>
17730
17731 PR middle-end/70457
17732 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
17733 to ensure a call statement is compatible with a built-in's
17734 prototype.
17735 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
17736 Likewise.
17737
17738 2016-04-04 Richard Biener <rguenther@suse.de>
17739
17740 PR rtl-optimization/70484
17741 * rtl.h (canon_output_dependence): Declare.
17742 * alias.c (canon_output_dependence): New function.
17743 * dse.c (record_store): Use canon_output_dependence rather
17744 than canon_true_dependence.
17745
17746 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
17747
17748 PR ipa/68881
17749 * cgraph.h (symtab_node::copy_visibility_from): New function.
17750 * symtab.c (symtab_node::copy_visibility_from): New function.
17751 * ipa-visibility.c (optimize_weakref): New function.
17752 (function_and_variable_visibility): Use it.
17753
17754 2016-04-04 Martin Liska <mliska@suse.cz>
17755
17756 PR hsa/70402
17757 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
17758 value that is really in range handled by SBR instruction.
17759 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
17760 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
17761 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
17762
17763 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
17764
17765 PR target/70416
17766 PR target/67391
17767 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
17768 set, but not for SP_REG operands.
17769
17770 2016-04-02 Martin Sebor <msebor@redhat.com>
17771
17772 PR c++/67376
17773 * fold-const.c (maybe_nonzero_address): New function.
17774 (fold_comparison): Call it. Fold equality and relational
17775 expressions involving null pointers.
17776 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
17777
17778 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
17779
17780 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
17781 the "Y" constraint (scalar FP 0.0 immediate).
17782
17783 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
17784 Add the "const_double" to the list of operand constraints.
17785
17786 2016-04-01 Jakub Jelinek <jakub@redhat.com>
17787
17788 PR rtl-optimization/70467
17789 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
17790 If low word of the last operand is 0, just emit addition/subtraction
17791 for the high word.
17792
17793 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17794
17795 PR target/70404
17796 * config/s390/s390.c (s390_expand_insv): Check for everything
17797 constant instead of just VOIDmode stuff.
17798
17799 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17800
17801 PR target/70496
17802 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
17803
17804 2016-04-01 Nathan Sidwell <nathan@acm.org>
17805
17806 * tree.def (TRY_CATCH_EXPR): Correct documentation.
17807
17808 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
17809
17810 PR rtl-optimization/70461
17811 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
17812 is necessary.
17813
17814 2016-03-31 Martin Liska <mliska@suse.cz>
17815
17816 PR hsa/70399
17817 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
17818 a tree value or an immediate integer value to a buffer
17819 that is eventually copied to a BRIG section.
17820 (emit_immediate_operand): Call the function here.
17821 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
17822 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
17823 of class' fields that are removed.
17824 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
17825 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
17826 m_brig_repr_size fields.
17827
17828 2016-03-31 Martin Liska <mliska@suse.cz>
17829
17830 PR hsa/70391
17831 * hsa-gen.c (hsa_function_representation::update_dominance): New
17832 function.
17833 (convert_addr_to_flat_segment): Likewise.
17834 (gen_hsa_memory_set): New alignment argument.
17835 (gen_hsa_ctor_assignment): Likewise.
17836 (gen_hsa_insns_for_single_assignment): Provide alignment
17837 to gen_hsa_ctor_assignment.
17838 (gen_hsa_insns_for_direct_call): Add new argument.
17839 (expand_lhs_of_string_op): New function.
17840 (expand_string_operation_builtin): Likewise.
17841 (expand_memory_copy): New function.
17842 (expand_memory_set): New function.
17843 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
17844 (convert_switch_statements): Change signature.
17845 (generate_hsa): Use a return value of the function.
17846 (pass_gen_hsail::execute): Do not call
17847 convert_switch_statements here.
17848 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
17849 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
17850 (hsa_function_representation::update_dominance): New function.
17851
17852 2016-03-31 Martin Liska <mliska@suse.cz>
17853
17854 PR hsa/70391
17855 * hsa-brig.c (emit_directive_variable): Emit alignment
17856 according to hsa_symbol::m_align.
17857 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
17858 (dump_hsa_symbol): Dump alignment of HSA symbols.
17859 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
17860 (gen_hsa_addr_with_align): New function.
17861 (hsa_bitmemref_alignment): Use newly added function.
17862 (gen_hsa_insns_for_load): Likewise.
17863 (gen_hsa_insns_for_store): Likewise.
17864 (gen_hsa_memory_copy): New argument added.
17865 (gen_hsa_insns_for_single_assignment): Respect
17866 alignment for assignments processed via gen_hsa_memory_copy.
17867 (gen_hsa_insns_for_direct_call): Likewise.
17868 (gen_hsa_insns_for_return): Likewise.
17869 (gen_function_def_parameters): Set default alignment.
17870 * hsa.c (hsa_object_alignment): New function.
17871 (hsa_byte_alignment): Pasted function.
17872 * hsa.h (hsa_symbol::m_align): New field.
17873
17874 2016-03-31 Bin Cheng <bin.cheng@arm.com>
17875
17876 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
17877 scratch field for goto case.
17878
17879 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
17880
17881 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
17882
17883 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
17884
17885 PR target/70442
17886 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
17887 (scalar_chain::convert_insn): Call convert_op for reg
17888 moves to handle undefined registers.
17889
17890 2016-03-31 Nathan Sidwell <nathan@acm.org>
17891
17892 PR c++/70393
17893 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
17894 Assert we don't want to move backwards.
17895
17896 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
17897
17898 PR target/70453
17899 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
17900
17901 2016-03-31 Jakub Jelinek <jakub@redhat.com>
17902
17903 PR rtl-optimization/70460
17904 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
17905 with operand from REG_LABEL_OPERAND, instead substitute
17906 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
17907 Don't do anything for REG_NON_LOCAL_GOTO jumps.
17908
17909 2016-03-31 Martin Liska <mliska@suse.cz>
17910
17911 * passes.c (execute_one_pass): Do not call
17912 todo_after for a discarded function.
17913
17914 2016-03-31 Bin Cheng <bin.cheng@arm.com>
17915
17916 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
17917 (no_cost, infinite_cost): Initialize the new field.
17918 (get_computation_cost_at): Record setup cost.
17919 (determine_use_iv_cost_address): Skip cost computation for sub
17920 uses if we can estimate it without losing accuracy.
17921
17922 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
17923
17924 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17925 estimates here.
17926 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17927 max_loop_iterations_int.
17928 (tree_unswitch_outer_loop): Likewise.
17929 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17930 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17931
17932 2016-03-30 Richard Biener <rguenther@suse.de>
17933
17934 PR middle-end/70450
17935 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
17936
17937 2016-03-30 Jakub Jelinek <jakub@redhat.com>
17938
17939 PR target/70421
17940 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
17941 in gen_blendm expander.
17942
17943 2016-03-30 Nick Clifton <nickc@redhat.com>
17944
17945 PR target/62254
17946 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
17947 case where we are already provided with an SImode SUBREG.
17948
17949 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
17950
17951 PR target/70439
17952 * config/i386/i386.c (ix86_expand_epilogue): Properly check
17953 conflict between DRAP register and __builtin_eh_return.
17954
17955 2016-03-30 Michael Matz <matz@suse.de>
17956 Richard Biener <rguenther@suse.de>
17957
17958 PR ipa/12392
17959 * ipa-polymorphic-call.c (struct type_change_info): Change
17960 speculative to an unsigned allowing to limit the work we do.
17961 (csftc_abort_walking_p): New inline function..
17962 (check_stmt_for_type_change): Limit the number of may-defs
17963 skipped for speculative devirtualization to
17964 max-speculative-devirt-maydefs.
17965 * params.def (max-speculative-devirt-maydefs): New param.
17966 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
17967
17968 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
17969
17970 PR target/63890
17971 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
17972 and TARGET_MACHO.
17973
17974 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
17975
17976 PR tree-optimization/59124
17977 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
17978 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
17979
17980 2016-03-29 Jeff Law <law@redhat.com>
17981
17982 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
17983
17984 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
17985
17986 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
17987 to HOST_WIDE_INT.
17988
17989 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
17990
17991 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
17992 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
17993 gcrt0.o if linking dynamically.
17994
17995 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
17996
17997 PR ipa/70283
17998 * ipa-devirt.c (methods_equal_p): New function.
17999 (compare_virtual_tables): Use it.
18000 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
18001 * cgraphclones.c (clone_function_name_1): Use
18002 symbol_table::symbol_suffix_separator.
18003 * coverage.c (build_var): Likewise.
18004 * symtab.c (symbol_table::symbol_suffix_separator): New.
18005
18006 2016-03-29 Jakub Jelinek <jakub@redhat.com>
18007
18008 PR rtl-optimization/70429
18009 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
18010 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
18011 mode != result_mode.
18012
18013 PR c++/70353
18014 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
18015
18016 PR tree-optimization/70405
18017 * ssa-iterators.h (num_imm_uses): Add missing braces.
18018
18019 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
18020
18021 PR rtl-optimization/68695
18022 * ira-color.c (allocno_copy_cost_saving): New.
18023 (improve_allocation): Use it.
18024
18025 2016-03-29 Richard Henderson <rth@redhat.com>
18026
18027 PR middle-end/70355
18028 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
18029
18030 2016-03-29 Richard Biener <rguenther@suse.de>
18031
18032 PR middle-end/70424
18033 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
18034 use alignment returned by get_pointer_alignment_1 if it is
18035 bigger than BITS_PER_UNIT.
18036 * builtins.c (get_pointer_alignment_1): Do not return true
18037 for alignment extracted from SSA info.
18038
18039 2016-03-28 James Bowman <james.bowman@ftdichip.com>
18040
18041 * config/ft32/ft32.opt (mnodiv): New.
18042 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
18043 * doc/invoke.texi (FT32 Options -mnodiv): New.
18044
18045 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
18046
18047 PR target/70406
18048 * config/i386/i386.md (define_split, andn): Fix modes.
18049
18050 2016-03-26 Richard Biener <rguenther@suse.de>
18051 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18052
18053 PR ipa/70366
18054 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18055 instead of
18056 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18057 as 2nd argument to cl_optimization_restore().
18058
18059 2016-03-25 Richard Henderson <rth@redhat.com>
18060
18061 PR target/70120
18062 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18063 * config/aarch64/aarch64-protos.h: Declare it.
18064 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18065
18066 2016-03-25 Alan Modra <amodra@gmail.com>
18067
18068 PR target/70052
18069 * config/rs6000/constraints.md (j): Simplify.
18070 * config/rs6000/predicates.md (easy_fp_constant): Exclude
18071 decimal float 0.D.
18072 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18073 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18074 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18075 in all constraint alternatives.
18076 (movtd_64bit_nodm): Delete "j" constraint alternative.
18077
18078 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
18079
18080 * tree-ssa-propagate.c: Enhance docs for
18081 SSA_PROP_NOT_INTERESTING.
18082
18083 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
18084
18085 * doc/extend.texi: Fix typo in documentation to pure attribute.
18086
18087 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
18088
18089 PR target/70319
18090 * config/pa/pa.md (bswapdi2): Use a scratch register.
18091
18092 2016-03-24 Richard Henderson <rth@redhat.com>
18093
18094 PR middle-end/69845
18095 * fold-const.c (extract_muldiv_1): Correct test for multiplication
18096 overflow.
18097
18098 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
18099
18100 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18101 using ix86_expand_binary_operator instead of gen_andsi3.
18102
18103 2016-03-24 Richard Biener <rguenther@suse.de>
18104
18105 PR tree-optimization/70396
18106 * tree-vect-stmts.c (vectorizable_comparison): Use
18107 get_vectype_for_scalar_type.
18108
18109 2016-03-24 Richard Biener <rguenther@suse.de>
18110
18111 PR middle-end/70370
18112 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18113 with register bases.
18114
18115 2016-03-24 Richard Biener <rguenther@suse.de>
18116
18117 PR tree-optimization/70372
18118 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18119 build_all_ones_cst to also handle vector types correctly.
18120
18121 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18122
18123 PR target/70381
18124 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18125 -mfloat128 here.
18126
18127 2016-03-23 Marek Polacek <polacek@redhat.com>
18128
18129 PR c++/69884
18130 * doc/invoke.texi: Document -Wignored-attributes.
18131
18132 2016-03-23 Bin Cheng <bin.cheng@arm.com>
18133
18134 PR tree-optimization/69042
18135 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18136 parameter from 30 to 40.
18137
18138 2016-03-23 Bin Cheng <bin.cheng@arm.com>
18139
18140 PR tree-optimization/69042
18141 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18142 for use with constant offset stripped in base.
18143
18144 2016-03-23 Richard Biener <rguenther@suse.de>
18145
18146 PR middle-end/70251
18147 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18148 mode compatibility check.
18149 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18150
18151 2016-03-23 Jeff Law <law@redhat.com>
18152
18153 PR tree-optimization/64058
18154 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18155 CONFLICT_COUNT.
18156 (struct ssa_conflicts): Move up earlier in the file.
18157 (conflicts_, var_map_): New static variables.
18158 (initialize_conflict_count): New function to initialize the
18159 CONFLICT_COUNT field for each conflict pair.
18160 (compare_pairs): Lazily initialize the conflict count and use it
18161 as the first tie-breaker.
18162 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
18163 and wipe conflicts_ and map_ around the call to qsort. Remove
18164 special case for 2 coalesce pairs.
18165 * bitmap.c (bitmap_count_unique_bits): New function.
18166 (bitmap_count_bits_in_word): New function, extracted from
18167 bitmap_count_bits.
18168 (bitmap_count_bits): Use bitmap_count_bits_in_word.
18169 * bitmap.h (bitmap_count_unique_bits): Declare it.
18170
18171 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
18172
18173 PR target/69917
18174 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18175 transparent alias chain for decl assembler name.
18176 * config/sol2.c (solaris_assemble_visibility): Likewise.
18177
18178 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18179
18180 * config/arm/arm1020e.md (1020call_op): Reduce reservation
18181 duration.
18182 (v10_fdivs): Likewise.
18183 (v10_fdivd): Likewise.
18184
18185 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18186
18187 PR driver/70132
18188 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18189 to not call fclose twice on file.
18190
18191 2016-03-23 Jakub Jelinek <jakub@redhat.com>
18192
18193 PR tree-optimization/70354
18194 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18195 oprnd0 is wider than oprnd1 and there is a cast from the wider
18196 type to oprnd1, mask it with the mask of the narrower type.
18197
18198 PR target/70321
18199 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18200 Optimize TARGET_STV splitters, if high or low word of last argument
18201 is 0 or -1.
18202
18203 2016-03-22 Jeff Law <law@redhat.com>
18204
18205 PR target/70232
18206 tree-ssa-threadbackward.c
18207 (fsm_find_control_statement_thread_paths): Correctly distinguish
18208 between old style jump threads vs FSM jump threads.
18209
18210 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18211
18212 PR target/70302
18213 * config/i386/i386.c (scalar_chain::convert_op): Support
18214 uninitialized register usage case.
18215
18216 2016-03-22 Richard Biener <rguenther@suse.de>
18217
18218 PR middle-end/70251
18219 * genmatch.c (gen_transform): Adjust last parameter to a three-state
18220 int...
18221 (capture::gen_transform): ... to change behavior when substituting
18222 a condition into cond or not-cond expr context.
18223 (dt_simplify::gen_1): Adjust.
18224 * gimple-match-head.c: Include gimplify.h for unshare_expr.
18225 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18226 last change and instead change to
18227 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18228 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18229
18230 2016-03-22 Anthony Green <green@moxielogic.com>
18231
18232 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
18233 issue for moxiebox targets.
18234 (CC1PLUS_SPEC): Ditto.
18235
18236 2016-03-22 Richard Biener <rguenther@suse.de>
18237
18238 PR middle-end/70333
18239 * fold-const.c (extract_muldiv_1): Properly perform multiplication
18240 in the wide type.
18241
18242 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
18243
18244 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18245
18246 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
18247
18248 PR target/70325
18249 * config/i386/i386.c (def_builtin): Handle
18250 OPTION_MASK_ISA_AVX512VL to be and-ed with other
18251 bits.
18252 (const struct builtin_description bdesc_special_args[]):
18253 Remove duplicate ISA bits.
18254
18255 2016-03-22 Jakub Jelinek <jakub@redhat.com>
18256
18257 PR target/70329
18258 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18259 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
18260 in a way that works also for AVX512BW.
18261
18262 PR target/70300
18263 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18264 instead of source if operands[1] is xmm16 and above and
18265 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
18266 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18267
18268 PR c++/70295
18269 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18270 on assign if (*from_p) is a comparison, set it to
18271 TREE_NO_WARNING (*from_p).
18272
18273 2016-03-21 Jakub Jelinek <jakub@redhat.com>
18274
18275 PR middle-end/70326
18276 * lra.c (restore_scratches): Ignore deleted insns.
18277
18278 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
18279 Jakub Jelinek <jakub@redhat.com>
18280
18281 PR tree-optimization/70317
18282 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18283 to HONOR_NANS.
18284
18285 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
18286
18287 PR target/70327
18288 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18289 of ix86_expand_move.
18290 (movoi): Ditto.
18291 (movti): Use general_operand for operand 1 predicate.
18292
18293 2016-03-21 Martin Liska <mliska@suse.cz>
18294
18295 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18296 insns.
18297 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18298
18299 2016-03-21 Martin Liska <mliska@suse.cz>
18300
18301 PR ipa/70306
18302 * ipa-icf.c (sem_function::parse): Skip static
18303 constructors and destructors.
18304
18305 2016-03-21 Jakub Jelinek <jakub@redhat.com>
18306
18307 PR target/70296
18308 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18309 function-like macro, peek following token(s) if it is followed
18310 by CPP_OPEN_PAREN token with optional padding in between, and
18311 if not, don't treat it like a macro.
18312
18313 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
18314 Alexander Monakov <amonakov@ispras.ru>
18315
18316 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18317 for the stabs debug format.
18318
18319 2016-03-21 Richard Biener <rguenther@suse.de>
18320
18321 PR tree-optimization/70310
18322 * tree-vect-generic.c (expand_vector_condition): Fold the built
18323 condition.
18324
18325 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
18326
18327 PR target/70293
18328 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18329 Block third alternative for AVX-512VL target,
18330
18331 2016-03-21 Martin Liska <mliska@suse.cz>
18332
18333 PR hsa/70234
18334 * hsa-brig.c (emit_function_directives): Mark unemitted
18335 global variables for emission.
18336 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18337 (get_symbol_for_decl): Likewise.
18338 * hsa.h (struct hsa_symbol): New flag.
18339
18340 2016-03-21 Richard Biener <rguenther@suse.de>
18341
18342 PR tree-optimization/70288
18343 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18344 we do not estimate unsimplified all-constant conditionals or
18345 switches as optimized away.
18346
18347 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
18348
18349 PR rtl-optimization/69102
18350 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18351 when we have a readonly dependency context.
18352
18353 2016-03-18 Jeff Law <law@redhat.com>
18354
18355 PR rtl-optimization/70263
18356 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18357 (update_equiv_regs): When trying to move a store to after the insn
18358 that sets the source of the store, make sure the store occurs after
18359 the insn that sets the source of the store. When successful note
18360 the REG_EQUIV note created in the dump file.
18361
18362 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
18363 Bernd Schmidt <bschmidt@redhat.com>
18364
18365 * doc/extend.texi: Document more potential problems with basic asms.
18366
18367 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
18368
18369 PR rtl-optimization/70278
18370 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18371 VOIDmode.
18372
18373 2016-03-18 Jason Merrill <jason@redhat.com>
18374
18375 * calls.c (load_register_parameters): Fix zero size sibcall logic.
18376
18377 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
18378
18379 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18380 values to 128b regs.
18381
18382 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18383
18384 PR tree-optimization/70252
18385 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18386 boolean vector has a proper number of elements.
18387 (supportable_narrowing_operation): Likewise.
18388
18389 2016-03-18 Tom de Vries <tom@codesourcery.com>
18390
18391 PR ipa/70269
18392 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18393
18394 2016-03-18 Jakub Jelinek <jakub@redhat.com>
18395
18396 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18397 instead of replace_rtx for DEBUG_INSNs.
18398
18399 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18400
18401 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18402 load type reservations.
18403
18404 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
18405
18406 PR target/70188
18407 * config/pa/constraints.md: Revert 2015-02-13 change. Use
18408 define_constraint for "Q" and "T" constraints.
18409
18410 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
18411
18412 Tweak the pipeline model for Exynos M1
18413
18414 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
18415 model.
18416
18417 2016-03-17 David Malcolm <dmalcolm@redhat.com>
18418
18419 PR c/70264
18420 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18421 where one or both locations aren't within a line_map.
18422
18423 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
18424
18425 PR driver/70192
18426 * opts.c (finish_options): Don't set flag_pie to the default if
18427 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
18428 if it is -1.
18429
18430 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
18431
18432 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18433 true as ALL_REGS argument to replace_rtx.
18434
18435 2016-03-17 Richard Biener <rguenther@suse.de>
18436
18437 PR debug/70271
18438 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18439 last.
18440
18441 2016-03-17 Jakub Jelinek <jakub@redhat.com>
18442
18443 PR target/70245
18444 * rtl.h (replace_rtx): Add ALL_REGS argument.
18445 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
18446 equality and assert mode is the same, instead of just rtx pointer
18447 equality.
18448 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18449 true as ALL_REGS argument to replace_rtx.
18450
18451 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
18452
18453 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18454 for boolean vector with vector mode only.
18455 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18456
18457 2016-03-17 Nick Clifton <nickc@redhat.com>
18458
18459 PR target/70162
18460 * config/rx/rx.c (rx_print_integer): Print negative constants in
18461 decimal.
18462
18463 2016-03-17 Jakub Jelinek <jakub@redhat.com>
18464
18465 PR target/70261
18466 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18467
18468 2016-03-16 Richard Henderson <rth@redhat.com>
18469 Richard Biener <rguenth@suse.de>
18470
18471 PR middle-end/70240
18472 PR middle-end/68215
18473 PR tree-opt/68714
18474 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18475 first operand as is_gimple_condexpr.
18476
18477 PR middle-end/70240
18478 PR middle-end/68215
18479 Revert r231575
18480 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
18481 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18482 Do not gimplify the result.
18483 (do_unop): Adjust call to tree_vec_extract.
18484 (do_binop): Likewise.
18485 (do_compare): Likewise.
18486 (do_plus_minus): Likewise.
18487 (do_negate): Likewise.
18488 (expand_vector_condition): Likewise.
18489 (do_cond): Likewise.
18490
18491 2016-03-16 Richard Henderson <rth@redhat.com>
18492
18493 PR target/70048
18494 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18495 (aarch64_classify_address): Use it.
18496 (aarch64_legitimize_address): Force all subexpressions of PLUS
18497 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
18498
18499 2016-03-16 Jakub Jelinek <jakub@redhat.com>
18500 Richard Biener <rguenth@suse.de>
18501
18502 PR target/70245
18503 * rtlanal.c (replace_rtx): For REG, if from is a REG,
18504 return to even if only REGNO is equal, and assert
18505 mode is the same.
18506
18507 2016-03-11 Jeff Law <law@redhat.com>
18508
18509 PR rtl-optimization/70224
18510 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18511
18512 2016-03-16 Richard Henderson <rth@redhat.com>
18513
18514 PR middle-end/70199
18515 * function.h (struct function): Add has_forced_label_in_static.
18516 * gimplify.c (force_labels_r): Set it.
18517 * lto-streamer-in.c (input_struct_function_base): Read it.
18518 * lto-streamer-out.c (output_struct_function_base): Write it.
18519 * tree-inline.c (has_label_address_in_static_1): Remove.
18520 (copy_forbidden): Remove fndecl parameter; test
18521 has_forced_label_in_static.
18522 (inline_forbidden_p): Update call to copy_forbidden.
18523 (tree_versionable_function_p): Likewise.
18524 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18525 (chkp_versioning): Likewise.
18526 * tree-inline.h (copy_forbidden): Update decl.
18527
18528 2016-03-16 Marek Polacek <polacek@redhat.com>
18529
18530 PR c/70093
18531 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18532 function being thunked if the result type doesn't have fixed size.
18533 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18534 doesn't have fixed size.
18535
18536 2016-03-16 Bin Cheng <bin.cheng@arm.com>
18537
18538 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18539 reporting malformed loop nest.
18540
18541 2016-03-16 Tom de Vries <tom@codesourcery.com>
18542
18543 PR lto/70187
18544 * ipa-devirt.c (possible_polymorphic_call_targets): Move
18545 nodes.length () == 1 test to before first nodes[0] access.
18546
18547 2016-03-16 Tom de Vries <tom@codesourcery.com>
18548
18549 PR tree-optimization/68715
18550 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18551 single_pred_p test.
18552
18553 2016-03-16 Tom de Vries <tom@codesourcery.com>
18554
18555 PR tree-optimization/68809
18556 * graphite-scop-detection.c (same_close_phi_node): Test if result types
18557 are the same.
18558
18559 2016-03-16 Carlos O'Donell <carlos@redhat.com>
18560 Sandra Loosemore <sandra@codesourcery.com>
18561
18562 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18563 on leaf attribute. Mention ELF interposition problems.
18564
18565 2016-03-16 Alan Modra <amodra@gmail.com>
18566
18567 PR rtl-optimization/69195
18568 PR rtl-optimization/47992
18569 * ira.c (indirect_jump_optimize): Ignore artificial defs.
18570 Add comments.
18571
18572 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
18573
18574 PR bootstrap/69513
18575 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18576
18577 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18578
18579 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18580
18581 2016-03-15 Jakub Jelinek <jakub@redhat.com>
18582
18583 PR rtl-optimization/70222
18584 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
18585 optimization if mode is different from result_mode, queue up masking
18586 of the result in outer_op. Formatting fix.
18587
18588 PR middle-end/70239
18589 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
18590 of safe_grow.
18591
18592 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18593
18594 PR rtl-optimization/69032
18595 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
18596 looping backwards over basic block insns.
18597
18598 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18599
18600 PR target/66660
18601 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
18602 to non-speculative when propagating trap bits.
18603
18604 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18605
18606 PR rtl-optimization/63384
18607 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
18608 DEBUG_INSN_P insns.
18609
18610 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18611
18612 PR target/64411
18613 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
18614 factored out from ...
18615 (sched_analyze_insn): ... here.
18616 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
18617 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
18618 get_implicit_reg_pending_clobbers in it.
18619 (setup_id_reg_sets): Use setup_id_implicit_regs.
18620 (deps_init_id): Ditto.
18621
18622 2016-03-15 Tom de Vries <tom@codesourcery.com>
18623
18624 PR ipa/70161
18625 * cgraph.c (cgraph_node::get_body): Save, reset and restore
18626 dump_file_name.
18627 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
18628 execute_function_dump.
18629 (execute_one_pass): Don't dump function if it will be dumped after ipa
18630 transform.
18631
18632 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
18633
18634 * genrecog.c (match_pattern_2): If pred is NULL don't call
18635 safe_predicate_mode on it.
18636
18637 2016-03-14 Jakub Jelinek <jakub@redhat.com>
18638
18639 PR middle-end/70219
18640 * lra-constraints.c (delete_move_and_clobber): Change assertion
18641 to also allow dregno == 0.
18642
18643 2016-03-14 Richard Henderson <rth@redhat.com>
18644
18645 PR tree-opt/68714
18646 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
18647 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
18648 (reassociate_bb): Use optimize_vec_cond_expr; avoid
18649 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
18650 on vectors.
18651
18652 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
18653
18654 PR target/70083
18655 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
18656 regs.
18657 (lra_create_live_ranges_1): initialize hard register biggest_mode to
18658 VOIDmode.
18659 * lra-constraints.c (split_reg): For hard regs, try to find the
18660 biggest single-register mode used in the function.
18661
18662 2016-03-14 Richard Biener <rguenther@suse.de>
18663
18664 PR tree-optimization/56365
18665 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
18666 constants to compare against.
18667
18668 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
18669
18670 PR target/70098
18671 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18672 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
18673 (define_split for the GPR case): Use int_reg_operand instead of
18674 gpc_reg_operand for the output.
18675
18676 2016-03-14 Tom de Vries <tom@codesourcery.com>
18677
18678 PR tree-optimization/70045
18679 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
18680 create_empty_if_region_on_edge argument.
18681
18682 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
18683
18684 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
18685 (STACK_CHECK_PROTECT): Likewise.
18686 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18687 (STACK_CHECK_PROTECT): Likewise.
18688 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18689 (STACK_CHECK_PROTECT): Likewise.
18690 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
18691 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18692 (STACK_CHECK_PROTECT): Likewise.
18693
18694 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
18695
18696 PR rtl-optimization/69307
18697 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
18698 registers in modes that span more than one register.
18699
18700 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
18701
18702 PR target/69614
18703 * lra-constraints.c (delete_move_and_clobber): New.
18704 (remove_inheritance_pseudos): Use it.
18705
18706 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
18707
18708 PR ada/70017
18709 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
18710 the libcall is LCT_THROW.
18711 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
18712 for the checking routine.
18713
18714 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18715
18716 PR target/70131
18717 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
18718 optimization if we have direct move.
18719 (roundu32<mode>2_fprs): Likewise.
18720
18721 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
18722
18723 PR target/70123
18724 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
18725 be rematerialized.
18726 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
18727 Arguments swapped. All callers changed. Take reg_renumber into
18728 account, and Calculate and compare register ranges for hard regs.
18729
18730 2016-03-11 Jeff Law <law@redhat.com>
18731
18732 PR tree-optimization/70190
18733 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18734 Handle cases where we can not extract the taken edge, even though we
18735 found a constant value.
18736
18737 PR tree-optimization/64058
18738 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
18739 (num_coalesce_pairs): Move up earlier in file.
18740 (find_coalesce_pair): Initialize the INDEX field for each pair
18741 discovered.
18742 (compare_pairs): No longer sort on the elements in each pair.
18743 Instead break ties with the index of the coalesce pair.
18744
18745 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18746
18747 PR target/70002
18748 * config/aarch64/aarch64-protos.h
18749 (aarch64_save_restore_target_globals): New prototype.
18750 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
18751 Call the above when popping pragma.
18752 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
18753 New function.
18754 (aarch64_set_current_function): Rewrite using the above.
18755
18756 2016-03-11 Jakub Jelinek <jakub@redhat.com>
18757
18758 PR tree-optimization/70177
18759 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
18760 (extract_ops_from_tree): ... this. In the 2 argument
18761 overload remove _1 suffix.
18762 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
18763 (extract_ops_from_tree): ... this.
18764 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
18765 Adjust callers.
18766 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18767 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
18768 extract_ops_from_tree instead of 2 operand one.
18769
18770 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
18771
18772 PR tree-optimization/70013
18773 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
18774 for constant-pool entries.
18775
18776 2016-03-11 Jakub Jelinek <jakub@redhat.com>
18777
18778 PR rtl-optimization/70174
18779 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
18780 followed by gen_lowpart on force_reg instead of just gen_lowpart.
18781
18782 PR tree-optimization/70169
18783 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
18784 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
18785 for unknown codes.
18786
18787 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18788 Jakub Jelinek <jakub@redhat.com>
18789
18790 PR target/70160
18791 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
18792 of uninitialized values.
18793
18794 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18795
18796 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
18797 define_expand.
18798 ("*trunctddd2"): New pattern definition.
18799 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
18800 TD->DD truncation.
18801
18802 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18803
18804 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
18805 definitions for BFP and DFP rounding modes.
18806 ("fixuns_truncdddi2", "fixuns_trunctddi2")
18807 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
18808 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
18809 ("fix_trunctf<mode>2"): Use the new constants instead of magic
18810 numbers.
18811
18812 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18813
18814 * config/s390/constraints.md: Adjust comment.
18815 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
18816 s390_decompose_addrstyle_without_index.
18817 * config/s390/predicates.md (shift_count_or_setmem_operand):
18818 Rename to setmem_operand.
18819 * config/s390/s390-protos.h
18820 (s390_decompose_shift_count): Rename to
18821 s390_decompose_addrstyle_without_index.
18822 * config/s390/s390.c (s390_decompose_shift_count)
18823 (s390_mem_constraint, print_shift_count_operand)
18824 (print_operand_address, print_operand): Rename
18825 s390_decompose_shift_count to
18826 s390_decompose_addrstyle_without_index and rename
18827 print_shift_count_operand to print_addrstyle_operand troughout the
18828 file.
18829 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
18830 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
18831 Rename shift_count_or_setmem_operand to setmem_operand.
18832 * config/s390/vx-builtins.md ("vec_insert<mode>")
18833 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
18834 nonmemory_operand.
18835
18836 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18837
18838 PR target/70168
18839 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18840 Handle overlapping retval and newval.
18841
18842 2016-03-10 Nick Clifton <nickc@redhat.com>
18843
18844 PR target/7044
18845 * config/aarch64/aarch64.c
18846 (aarch64_override_options_after_change_1): When forcing
18847 flag_omit_frame_pointer to be true, use a special value that can
18848 be detected if this function is called again, thus preventing
18849 flag_omit_leaf_frame_pointer from being forced to be false.
18850
18851 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18852
18853 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18854 Set x_flag_omit_leaf_frame_pointer when handling
18855 -momit-leaf-frame-pointer.
18856
18857 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18858
18859 PR lto/69589
18860 * cgraph.c (cgraph_node::dump): Dump split_part and
18861 indirect_call_target.
18862 * cgraph.h (cgraph_node): Add indirect_call_target flag.
18863 * ipa.c (has_addr_references_p): Cleanup.
18864 (is_indirect_call_target_p): New.
18865 (walk_polymorphic_call_targets): Do not mark virtuals that may be
18866 called indirectly as local.
18867 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
18868
18869 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18870
18871 PR ipa/69630
18872 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
18873 on cxa_pure_virtual.
18874
18875 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18876
18877 PR lto/69589
18878 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
18879
18880 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18881
18882 PR lto/69589
18883 * tree.c (need_assembler_name_p): Only record main variant type names.
18884
18885 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
18886
18887 PR target/70113.
18888 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
18889 Always define to 0 or 1.
18890 (TARGET_FIX_ERR_A53_843419): New macro.
18891 * config/aarch64/aarch64-elf-raw.h
18892 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
18893 * config/aarch64/aarch64-linux.h: Likewise.
18894 * config/aarch64/aarch64.c
18895 (aarch64_override_options_after_change_1): Do not default
18896 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
18897 843419 is on.
18898 (aarch64_attributes): Handle fix-cortex-a53-843419.
18899 (aarch64_can_inline_p): Likewise.
18900 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
18901
18902 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
18903 Jakub Jelinek <jakub@redhat.com>
18904
18905 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
18906 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
18907 DECL_COMMONS if flag_unconstrained_commons is set.
18908 * tree-dfa.c (get_ref_base_and_extent): Likewise.
18909 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
18910 (funconstrained-commons): Document.
18911
18912 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
18913
18914 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
18915 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
18916
18917 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
18918
18919 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
18920 has a proper number of elements.
18921
18922 2016-03-10 Alan Modra <amodra@gmail.com>
18923
18924 PR rtl-optimization/69195
18925 PR rtl-optimization/47992
18926 * ira.c (recorded_label_ref): Delete.
18927 (update_equiv_regs): Return void.
18928 (indirect_jump_optimize): New function.
18929 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
18930 before regstat_compute_ri. Don't rebuild_jump_labels here.
18931 Delete update_regstat.
18932
18933 2016-03-10 Richard Biener <rguenther@suse.de>
18934
18935 PR tree-optimization/70128
18936 * tree-ssa-structalias.c (set_uids_in_ptset): Set
18937 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
18938
18939 2016-03-09 Jakub Jelinek <jakub@redhat.com>
18940
18941 PR tree-optimization/70152
18942 * tree-sra.c (replace_removed_params_ssa_names): Copy over
18943 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
18944
18945 PR target/70086
18946 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
18947 instead of gen_sse2_loadlpd.
18948 * config/i386/sse.md (*vec_concatv2df): Rename to...
18949 (vec_concatv2df): ... this.
18950
18951 PR tree-optimization/70127
18952 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
18953
18954 2016-03-09 David Malcolm <dmalcolm@redhat.com>
18955
18956 PR c/68473
18957 PR c++/70105
18958 * diagnostic-show-locus.c (compatible_locations_p): New function.
18959 (layout::layout): Sanitize ranges using compatible_locations_p.
18960
18961 2016-03-09 David Malcolm <dmalcolm@redhat.com>
18962
18963 PR c/68473
18964 PR c++/70105
18965 * diagnostic-show-locus.c (layout_range::layout_range): Replace
18966 location_range param with three const expanded_locations * and a
18967 bool.
18968 (layout::layout): Replace call to
18969 rich_location::lazily_expand_location with get_expanded_location.
18970 Extract the range and perform location expansion here, passing
18971 the results to the layout_range ctor.
18972 * diagnostic.c (source_range::debug): Delete.
18973 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
18974 of rich_location::get_expanded_location.
18975 * gcc-rich-location.c (get_range_for_expr): Delete.
18976 (gcc_rich_location::add_expr): Reimplement to avoid the
18977 rich_location::add_range overload that took a location_range,
18978 passing a location_t instead.
18979
18980 2016-03-09 Richard Biener <rguenther@suse.de>
18981 Jakub Jelinek <jakub@redhat.com>
18982
18983 PR tree-optimization/70138
18984 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
18985 Also skip vect_double_reduction_def.
18986
18987 2016-03-09 Jakub Jelinek <jakub@redhat.com>
18988
18989 PR target/70049
18990 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
18991 if the operand is "m".
18992
18993 2016-03-09 Nathan Sidwell <nathan@acm.org>
18994
18995 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
18996
18997 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18998
18999 * config/i386/i386.c (processor_target_table): Fix cost table
19000 intialization order for znver1.
19001
19002 2016-03-08 Jakub Jelinek <jakub@redhat.com>
19003
19004 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
19005 - becuase -> because.
19006 * ipa-reference.c (ignore_module_statics): Likewise.
19007 * cgraph.c (cgraph_node::get_body): Likewise.
19008 * ipa-inline.c (early_inliner): Likewise.
19009 * ipa-devirt.c (types_same_for_odr): Likewise.
19010 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
19011 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
19012
19013 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19014
19015 * tree-ssa-math-opts.c: Fix typo in comment.
19016
19017 2016-03-08 Jakub Jelinek <jakub@redhat.com>
19018
19019 PR target/70110
19020 * config/i386/i386.c (scalar_chain::make_vector_copies,
19021 scalar_chain::convert_reg): Call end_sequence in between
19022 get_insns and emit_conversion_insns rather than after both
19023 calls.
19024
19025 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
19026
19027 PR target/70064
19028 * config/i386/i386.h (machine_function): Add
19029 pc_thunk_call_expanded flag.
19030 (ix86_pc_thunk_call_expanded): New define.
19031 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
19032 (*set_got): Rename insn pattern from set_got.
19033 (*set_got_labelled): Rename inst pattern from set_got_labelled.
19034 * config/i386/i386.c (ix86_compute_frame_layout): Use
19035 ix86_pc_thunk_call_expanded to prevent red-zone.
19036
19037 2016-03-07 Martin Jambor <mjambor@suse.cz>
19038
19039 * hsa.h (hsa_get_ctor_statements): Declare.
19040 (hsa_get_dtor_statements): Likewise.
19041 (hsa_get_kernel_dispatch_type): Likewise.
19042 * hsa.c (hsa_get_ctor_statements): New function.
19043 (hsa_get_dtor_statements): Likewise.
19044 (hsa_get_kernel_dispatch_type): Likewise.
19045 * hsa-brig.c (hsa_cdtor_statements): Removed.
19046 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
19047 hsa_get_dtor_statements.
19048 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
19049 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19050
19051 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19052
19053 * config/arm/arm-cores.def (cortex-r8): New.
19054 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19055 * config/arm/arm-tune.md: Likewise.
19056 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19057
19058 2016-03-07 Martin Sebor <msebor@redhat.com>
19059
19060 PR rtl-optimization/19705
19061 * doc/invoke.texi (Options That Control Optimization): Clarify
19062 -fno-branch-count-reg.
19063
19064 2016-02-26 Richard Biener <rguenther@suse.de>
19065 Jeff Law <law@redhat.com>
19066
19067 PR tree-optimization/69740
19068 * cfghooks.c (remove_edge): Request loop fixups if we delete
19069 an edge that might turn an irreducible loop into a natural
19070 loop.
19071 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19072 Move after definition of loops_state_clear.
19073
19074 2016-03-07 Bin Cheng <bin.cheng@arm.com>
19075
19076 PR rtl-optimization/69052
19077 * rtlanal.c (commutative_operand_precedence): Set higher precedence
19078 to CONST_WIDE_INT.
19079
19080 2016-03-07 Tom de Vries <tom@codesourcery.com>
19081
19082 PR tree-optimization/70116
19083 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19084 is_tm_ending stmts and ubsan/asan internal functions.
19085 (find_duplicate): Use it. Don't test is_tm_ending here.
19086
19087 2016-03-07 Richard Biener <rguenther@suse.de>
19088
19089 PR tree-optimization/70115
19090 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19091 (propagate_constants_for_unrolling): Use replace_uses_by.
19092
19093 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
19094
19095 PR middle-end/69916
19096 * omp-low.c (struct oacc_loop): Add ifns.
19097 (new_oacc_loop_raw): Initialize it.
19098 (finish_oacc_loop): Clear mask & flags if no ifns.
19099 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19100 (oacc_loop_xform_loop): Add ifns arg & adjust.
19101 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19102
19103 2016-03-07 Richard Henderson <rth@redhat.com>
19104
19105 PR rtl-opt/70061
19106 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19107 (insert_value_copy_on_edge): Likewise.
19108
19109 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19110
19111 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19112
19113 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19114
19115 PR target/62281
19116 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19117
19118 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19119
19120 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19121
19122 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19123
19124 Fix sseimul type attribute.
19125 * config/i386/znver1.md
19126 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19127 znver1_sseimul_avx256_load) : Fix the type attribute.
19128 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19129 pipe usage and latency.
19130
19131 2016-03-05 Jakub Jelinek <jakub@redhat.com>
19132
19133 PR c++/70084
19134 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19135 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19136 to the right type.
19137
19138 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
19139
19140 PR c/69973
19141 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19142
19143 PR rtl-optimization/69941
19144 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19145 the reg share its mode.
19146
19147 2016-03-04 Jeff Law <law@redhat.com>
19148
19149 PR tree-optimization/69196
19150 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19151 If the both SSA_NAMEs are anonymous, then consider them unassociated
19152 and include the PHI in the statement count.
19153
19154 2016-03-05 Tom de Vries <tom@codesourcery.com>
19155
19156 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19157 construct in oacc routine. Check for oacc region in oacc routine.
19158
19159 2016-03-04 Jakub Jelinek <jakub@redhat.com>
19160
19161 PR target/70062
19162 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
19163 2016-02-22 changes, instead don't recurse if RECUR is already true.
19164 Don't change *dynamic_check if RECUR. Adjust recursive caller
19165 to pass true to the new argument.
19166 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19167
19168 PR target/70059
19169 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19170 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19171 fixes.
19172 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
19173
19174 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
19175
19176 PR rtl-optimization/57676
19177 * lra-assigns.c (lra_assign): Guard test for maximum iterations
19178 with flag_checking.
19179
19180 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
19181
19182 * tree-vect-patterns.c (search_type_for_mask): Handle
19183 comparison of booleans.
19184
19185 2016-03-04 Jakub Jelinek <jakub@redhat.com>
19186
19187 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19188 Fix @xref usage.
19189
19190 PR debug/69947
19191 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19192 all other ops that have dw_val_class_die_ref operands,
19193 and DW_OP_GNU_entry_value.
19194
19195 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19196
19197 PR rtl-optimization/69904
19198 * config/arm/arm.c (arm_cannot_copy_insn_p):
19199 Return true for load-exclusive instructions.
19200
19201 2016-03-03 Jakub Jelinek <jakub@redhat.com>
19202
19203 PR target/70021
19204 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19205 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19206 the pattern no matter if it is used just by non-pattern, pattern
19207 or mix thereof.
19208 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19209 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19210 oprnd1 def_stmt is in pattern, don't look through it.
19211
19212 2016-03-03 Marek Polacek <polacek@redhat.com>
19213
19214 PR middle-end/70050
19215 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19216
19217 2016-03-03 Martin Liska <mliska@suse.cz>
19218
19219 PR tree-optimization/70043
19220 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19221 previous statement if we see a debug statement.
19222
19223 2016-03-03 Richard Biener <rguenther@suse.de>
19224
19225 PR tree-optimization/55936
19226 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19227 parameter and guard unsafe equivalence use.
19228 (vrp_evaluate_conditional_warnv_with_ops): Always use
19229 safe equivalences but not via the quadratic compare_names
19230 helper.
19231
19232 2016-03-03 Michael Collison <michael.collison@linaro.org>
19233
19234 PR target/70014
19235 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19236 for operand 1 to s_register_operand. Change predicate for operand
19237 2 to arm_not_immediate_operand.
19238
19239 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
19240
19241 * doc/tm.texi: Regenerated.
19242
19243 2016-03-02 Richard Henderson <rth@redhat.com>
19244
19245 PR rtl-opt/67145
19246 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19247 simplification when all args are positive non-fixed registers.
19248
19249 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19250
19251 * target.def (lra_p): Specify that new ports should use LRA.
19252
19253 2016-03-02 Jakub Jelinek <jakub@redhat.com>
19254
19255 PR libgomp/69555
19256 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19257 gimplify_type_sizes the type they refer to.
19258 (omp_notice_variable): Handle reference vars to VLAs.
19259 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19260 reference to VLA decls in the second pass instead of first pass.
19261
19262 2016-03-02 Tom de Vries <tom@codesourcery.com>
19263
19264 PR tree-optimization/68659
19265 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19266 new_expr == NULL_TREE.
19267 (get_new_name): Handle ADDR_EXPR.
19268
19269 2016-03-02 Bin Cheng <bin.cheng@arm.com>
19270
19271 PR rtl-optimization/69052
19272 * loop-invariant.c (canonicalize_address): New function.
19273 (inv_can_prop_to_addr_use): Check validity of address expression
19274 which is canonicalized by above function.
19275
19276 2016-03-02 Alan Modra <amodra@gmail.com>
19277
19278 PR ipa/69990
19279 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19280 larger alignment.
19281
19282 2016-03-02 Jakub Jelinek <jakub@redhat.com>
19283
19284 PR target/70028
19285 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19286 (*movhi_internal): Put mask moves from and to memory separately
19287 from moves from/to GPRs.
19288
19289 2016-03-02 Richard Biener <rguenther@suse.de>
19290
19291 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19292 GENERIC expressions in GIMPLE.
19293
19294 2016-03-02 Richard Biener <rguenther@suse.de>
19295
19296 * config/i386/i386.c (type_natural_mode): Fix typo.
19297
19298 2016-03-02 Nick Clifton <nickc@redhat.com>
19299
19300 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19301
19302 2016-03-02 Richard Biener <rguenther@suse.de>
19303 Uros Bizjak <ubizjak@gmail.com>
19304
19305 PR target/67278
19306 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19307
19308 2016-03-02 Richard Biener <rguenther@suse.de>
19309
19310 PR middle-end/67278
19311 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19312
19313 2016-03-02 Marek Polacek <polacek@redhat.com>
19314
19315 PR c/67854
19316 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19317 "is promoted to" warning.
19318
19319 2016-03-01 DJ Delorie <dj@redhat.com>
19320
19321 * config.gcc: Deprecate mep-*.
19322
19323 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
19324
19325 PR middle-end/70025
19326 * lra-constraints.c (regno_val_use_in): New.
19327 (match_reload): Use it instead of regno_use_in.
19328
19329 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
19330
19331 PR rtl-optimization/70007
19332 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19333 references present in REG_EQUAL notes attached to non-SET patterns.
19334
19335 2016-03-01 Jeff Law <law@redhat.com>
19336
19337 PR tree-optimization/69196
19338 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19339 Appropriately clamp the number of statements to copy when the
19340 thread path does not traverse a loop backedge.
19341
19342 PR tree-optimization/69196
19343 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19344 Do count some PHIs in the thread path against the insn count. Decrease
19345 final statement count by one as the control statement in the last
19346 block will get removed. Remove special cased code for handling PHIs
19347 in the last block.
19348
19349 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
19350
19351 PR target/70027
19352 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19353 asm dialect alternatives to explicit GOTPCREL calls.
19354
19355 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
19356
19357 PR ada/70017
19358 * ira.c (do_reload): Issue warning for generic stack checking here...
19359 * reload1.c (reload): ...instead of here and streamline it.
19360
19361 2016-03-01 Nick Clifton <nickc@redhat.com>
19362
19363 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19364
19365 2016-03-01 Richard Biener <rguenther@suse.de>
19366
19367 PR tree-optimization/69983
19368 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19369 types and fall back to operand_equal_p.
19370
19371 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19372
19373 Revert
19374 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19375
19376 * config/s390/constraints.md ("jm8"): New constraint.
19377 * config/s390/predicates.md ("const_int_8bitset_operand"): New
19378 predicate.
19379 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19380 into ...
19381 ("*setmem_long<setmem_and>"): New pattern.
19382 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19383 into ...
19384 ("*setmem_long_31z<setmem_and>"): New pattern.
19385 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19386 New substitution rules with the required attributes.
19387
19388
19389 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19390
19391 Revert
19392 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19393
19394 * gensupport.c (process_substs_on_one_elem): Split loop to
19395 complete mark_operands_used_in_match_dup on all expressions in the
19396 vector first.
19397 (adjust_operands_numbers): Inline into process_substs_on_one_elem
19398 and remove function.
19399
19400 2016-03-01 Richard Biener <rguenther@suse.de>
19401
19402 PR middle-end/70022
19403 * fold-const.c (fold_indirect_ref_1): Fix range checking for
19404 vector BIT_FIELD_REF extract.
19405
19406 2016-03-01 Richard Biener <rguenther@suse.de>
19407
19408 PR tree-optimization/69994
19409 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19410
19411 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
19412
19413 PR tree-optimization/69956
19414 * tree-vect-stmts.c (supportable_widening_operation): Support
19415 multi-step conversion of boolean vectors.
19416 (supportable_narrowing_operation): Likewise.
19417
19418 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19419
19420 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19421 anymore.
19422
19423 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19424
19425 * config/s390/subst.md (DSI_VI): New mode iterator.
19426 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19427 * config/s390/vector.md ("vec_set<mode>"): Move expander before
19428 the insn definition.
19429 ("*vec_set<mode>"): Change predicate and add alternative to
19430 support only either register or const_int operands as element
19431 selector.
19432 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19433 operands.
19434 ("vec_extract<mode>"): New expander.
19435 ("*vec_extract<mode>"): New insn definition supporting reg and
19436 const_int element selectors.
19437 ("*vec_extract<mode>_plus"): New insn definition supporting
19438 reg+const_int element selectors.
19439 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19440 following expander+insn definition.
19441 ("<vec_shifts_name><mode>3"): New expander.
19442 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19443
19444 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19445
19446 * config/s390/s390.md ("*tabort_1"): Change predicate to
19447 nonmemory_operand. Add a second alternative to cover
19448 register as well as const int operands.
19449 ("*tabort_1_plus"): New pattern definition.
19450
19451 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19452
19453 * config/s390/s390.md ("*ashrdi3_cc_31")
19454 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19455 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19456 Merge insn definitions into ...
19457 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19458 New pattern definition.
19459 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19460 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19461 ("*ashr<mode>3_and"): Merge insn definitions into ...
19462 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19463 New pattern definition.
19464 * config/s390/subst.md ("addr_style_op_cc_subst")
19465 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19466 substitutions patterns plus attributes.
19467 Add ashiftrt to SUBST iterator.
19468
19469 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19470
19471 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19472 op2 to nonmemory_operand.
19473 ("*<shift>di3_31", "*<shift>di3_31_and"):
19474 Merge into single pattern definition ...
19475 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19476 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19477 pattern definition ...
19478 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19479 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19480 iterator.
19481
19482 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19483
19484 * config/s390/predicates.md (const_int_6bitset_operand): New
19485 predicate.
19486 * config/s390/s390.md: Include subst.md.
19487 ("rotl<mode>3"): New expander.
19488 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19489 ...
19490 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19491 * config/s390/subst.md: New file.
19492
19493 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19494
19495 * config/s390/s390.md ("op_type", "atype", "length" attributes):
19496 Remove RRR type. It doesn't really exist.
19497 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19498 attributes.
19499 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19500 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19501 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19502 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19503 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19504 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19505 `enabled' attribute.
19506
19507 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19508
19509 * gensupport.c (process_substs_on_one_elem): Split loop to
19510 complete mark_operands_used_in_match_dup on all expressions in the
19511 vector first.
19512 (adjust_operands_numbers): Inline into process_substs_on_one_elem
19513 and remove function.
19514
19515 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
19516
19517 PR target/69706
19518 * config/sparc/sparc.c (NWORDS_UP): Rename to...
19519 (CEIL_NWORDS): ...this. Use CEIL macro.
19520 (compute_fp_layout): Adjust to above renaming.
19521 (function_arg_union_value): Likewise.
19522 (sparc_arg_partial_bytes): Likewise.
19523 (sparc_function_arg_advance): Likewise.
19524
19525 2016-02-29 Jeff Law <law@redhat.com>
19526
19527 PR tree-optimization/70005
19528 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19529 where an object with a boolean range is compared against a value
19530 outside [0..1].
19531
19532 PR tree-optimization/69999
19533 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19534 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19535 loop cleanups.
19536
19537 2016-02-29 Richard Biener <rguenther@suse.de>
19538
19539 PR tree-optimization/69994
19540 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19541 (get_unary_op): Look through nop conversions.
19542 (ops_equal_values_p): New function, look for equality diregarding
19543 nop conversions.
19544 (eliminate_plus_minus_pair): Use ops_equal_values_p
19545 (repropagate_negates): Do not use get_unary_op here.
19546
19547 2016-02-29 Martin Liska <mliska@suse.cz>
19548
19549 * system.h: Poison ENABLE_CHECKING macro.
19550
19551 2016-02-29 Martin Liska <mliska@suse.cz>
19552
19553 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19554 is presented in dump flags.
19555 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19556 (hsa_regalloc): Likewise.
19557
19558 2016-02-19 Richard Biener <rguenther@suse.de>
19559
19560 PR tree-optimization/69980
19561 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19562 permutation of those we need to keep.
19563
19564 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
19565
19566 PR target/69706
19567 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19568 (NWORDS_UP): ...this
19569 (init_cumulative_args): Minor tweaks.
19570 (sparc_promote_function_mode): Likewise.
19571 (scan_record_type): Delete.
19572 (traverse_record_type): New function template.
19573 (classify_data_t): New structure type.
19574 (classify_registers): New inline function.
19575 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19576 exhausted. Instantiate traverse_record_type on classify_registers and
19577 deal with the case of a structure passed in slot #15 with no FP field
19578 in the first word.
19579 (assign_data_t): New structure type.
19580 (compute_int_layout): New static function.
19581 (compute_fp_layout): Likewise.
19582 (count_registers): New inline function.
19583 (assign_int_registers): New static function.
19584 (assign_fp_registers): Likewise.
19585 (assign_registers): New inline function.
19586 (function_arg_record_value_1): Delete.
19587 (function_arg_record_value_2): Likewise.
19588 (function_arg_record_value_3): Likewise.
19589 (function_arg_record_value): Adjust to above changes. Instantiate
19590 traverse_record_type on count_registers to first count the number of
19591 registers to be used and then on assign_registers to assign them.
19592 (function_arg_union_value): Adjust to above renaming.
19593 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
19594 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
19595 case of a structure passed in slot #15
19596 (sparc_function_arg_advance): Likewise.
19597 (function_arg_padding): Minor tweak.
19598
19599 2016-02-29 Richard Biener <rguenther@suse.de>
19600
19601 PR tree-optimization/69720
19602 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
19603 the adjustment_def path for possibly vectorized defs.
19604 (vect_create_epilog_for_reduction): Handle vectorized initial
19605 defs properly.
19606
19607 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
19608
19609 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
19610
19611 2016-02-27 Jeff Law <law@redhat.com>
19612
19613 Revert
19614 2016-02-26 Richard Biener <rguenther@suse.de>
19615 Jeff Law <law@redhat.com>
19616
19617 PR tree-optimization/69740
19618 * cfghooks.c (remove_edge): Request loop fixups if we delete
19619 an edge that might turn an irreducible loop into a natural
19620 loop.
19621
19622 2016-02-27 Jakub Jelinek <jakub@redhat.com>
19623
19624 PR rtl-optimization/69896
19625 * tree-vect-generic.c (get_compute_type): Avoid single element
19626 vector types.
19627
19628 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
19629
19630 Rename the AArch64 tuning option and related functions to enable the
19631 Newton series for the reciprocal square root to reflect its
19632 approximative characteristic.
19633
19634 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
19635 function to "aarch64_emit_approx_rsqrt".
19636 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
19637 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
19638 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
19639 (xgene1_tunings): Likewise.
19640 (use_rsqrt_p): Likewise.
19641 (aarch64_emit_swrsqrt): Use new function name.
19642 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
19643 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
19644 text explaining this option.
19645 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
19646
19647 2016-02-26 Jakub Jelinek <jakub@redhat.com>
19648
19649 PR target/69969
19650 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19651 complain about -mallow-movmisalign without -mvsx if
19652 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
19653
19654 2016-02-26 Joel Sherrill <joel@rtems.org>
19655
19656 * config.gcc: Add x86_64-*-rtems*.
19657 * config/i386/rtems-64.h: New file.
19658
19659 2016-02-26 Joel Sherrill <joel@rtems.org>
19660
19661 * config.gcc: Add aarch64-*-rtems*.
19662 * config/aarch64/rtems.h: New file.
19663
19664 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
19665
19666 PR target/69946
19667 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
19668 shift amount using %h. Add comment.
19669
19670 2016-02-26 Richard Biener <rguenther@suse.de>
19671 Jeff Law <law@redhat.com>
19672
19673 PR tree-optimization/69740
19674 * cfghooks.c (remove_edge): Request loop fixups if we delete
19675 an edge that might turn an irreducible loop into a natural
19676 loop.
19677
19678 2016-02-26 Martin Jambor <mjambor@suse.cz>
19679
19680 PR middle-end/69920
19681 * tree-sra.c (sra_modify_assign): Do not remove loads of
19682 uninitialized aggregates to SSA_NAMEs.
19683
19684 2016-02-26 Richard Henderson <rth@redhat.com>
19685
19686 PR target/69709
19687 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
19688 pseudo in case the target rtx matches the source of the left
19689 shift.
19690
19691 2016-02-26 Martin Jambor <mjambor@suse.cz>
19692
19693 PR hsa/69568
19694 * hsa.h (hsa_type_packed_p): Declare.
19695 * hsa.c (hsa_type_packed_p): New function.
19696 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
19697 loads.
19698 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
19699 * hsa-brig.c (emit_basic_insn): Likewise.
19700
19701 2016-02-26 Martin Jambor <mjambor@suse.cz>
19702
19703 pr hsa/69674
19704 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
19705 pointers.
19706 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
19707
19708 2016-02-26 Martin Jambor <mjambor@suse.cz>
19709
19710 * hsa.h (is_a_helper): New overload for hsa_op_immed for
19711 hsa_op_with_type operands.
19712 (hsa_unsigned_type_for_type): Declare.
19713 * hsa.c (hsa_unsigned_type_for_type): New function.
19714 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
19715 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
19716 the finalizer. Do not emit extra move.
19717
19718 2016-02-26 Martin Jambor <mjambor@suse.cz>
19719
19720 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
19721 atomic operations in private segment.
19722
19723 2016-02-26 Martin Jambor <mjambor@suse.cz>
19724
19725 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
19726 statements to wi->info. Also disallow omp simd constructs.
19727 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
19728 for not gridifying. Dump special string for omp_for.
19729
19730 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19731
19732 PR target/69245
19733 * config/aarch64/aarch64.c (aarch64_set_current_function):
19734 Save/restore target globals when switching to
19735 target_option_default_node.
19736
19737 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19738
19739 PR target/69613
19740 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
19741 Return 0 if !SHIFT_COUNT_TRUNCATED.
19742
19743 2016-02-26 Jakub Jelinek <jakub@redhat.com>
19744 Eric Botcazou <ebotcazou@adacore.com>
19745
19746 PR rtl-optimization/69891
19747 * dse.c (scan_insn): If we can't figure out memset arguments
19748 or they are non-constant, call clear_rhs_from_active_local_stores.
19749
19750 2016-02-26 Martin Liska <mliska@suse.cz>
19751
19752 * doc/extend.texi: Mention clog10, clog10f an clog10l
19753 in Builtins section.
19754
19755 2016-02-26 Martin Liska <mliska@suse.cz>
19756
19757 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
19758 CHECKING_P.
19759 (resolve_args_picking_1): Likewise.
19760 * dwarf2out.h (struct GTY): Likewise.
19761
19762 2016-02-26 Martin Liska <mliska@suse.cz>
19763
19764 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
19765 with flag_checking.
19766 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19767
19768 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
19769 Martin Liska <mliska@suse.cz>
19770
19771 * doc/install.texi: Mention --enable-valgrind-annotations.
19772
19773 2016-02-26 Richard Biener <rguenther@suse.de>
19774
19775 PR tree-optimization/69551
19776 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
19777 looking through aliases adjust DECL_PT_UID to refer to the
19778 ultimate alias target.
19779
19780 2016-02-25 Martin Liska <mliska@suse.cz>
19781
19782 PR middle-end/69919
19783 * alloc-pool.c (after_memory_report): New variable.
19784 * alloc-pool.h (base_pool_allocator ::release): Do not use
19785 the infrastructure if after_memory_report.
19786 * toplev.c (toplev::main): Mark after memory report.
19787
19788 2016-02-25 Richard Biener <rguenther@suse.de>
19789
19790 PR tree-optimization/48795
19791 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
19792
19793 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
19794
19795 PR driver/68463
19796 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
19797 offloading is enabled and -fopenacc or -fopenmp is specified.
19798 (CRTOFFLOADEND): Likewise.
19799 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
19800 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
19801 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
19802 (offload_objects_file_name): New static var.
19803 (tool_cleanup): Remove offload_objects_file_name file.
19804 (find_offloadbeginend): Replace with ...
19805 (find_crtoffloadtable): ... this.
19806 (run_gcc): Remove offload_argc and offload_argv.
19807 Get offload_objects_file_name from -foffload-objects=... option.
19808 Read names of object files with offload from this file, pass them to
19809 compile_images_for_offload_targets. Don't call find_offloadbeginend and
19810 don't pass offloadbegin and offloadend to the linker. Don't pass
19811 offload non-LTO files to the linker, because now they're not claimed.
19812
19813 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
19814
19815 PR ipa/69630
19816 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19817 on builtin_unreachable.
19818
19819 2016-02-25 Jakub Jelinek <jakub@redhat.com>
19820
19821 PR rtl-optimization/69896
19822 * regcprop.c: Include cfgrtl.h.
19823 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
19824 than remembered mode, either delete it (if noop_move_p), or
19825 treat like copy_p but not noop_p instruction.
19826
19827 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19828
19829 PR debug/69705
19830 * dwarf2out.c (gen_variable_die): Work around buggy LTO
19831 - allow NULL decl for Fortran DW_TAG_common_block variables.
19832
19833 2016-02-24 Jason Merrill <jason@redhat.com>
19834
19835 * common.opt (flifetime-dse): Add -flifetime-dse=1.
19836
19837 2016-02-24 Richard Biener <rguenther@suse.de>
19838 Jakub Jelinek <jakub@redhat.com>
19839
19840 PR middle-end/69760
19841 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
19842 conditionally executed ops to well-defined overflow behavior.
19843
19844 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19845
19846 PR middle-end/69915
19847 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
19848 elements.
19849
19850 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19851
19852 PR rtl-optimization/69886
19853 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
19854 argument. Use it when checking validity of set instructions.
19855 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
19856 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
19857 callsite.
19858 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
19859 * store-motion.c (find_moveable_store): Update
19860 can_assign_to_reg_without_clobbers_p callsite.
19861
19862 2016-02-24 Richard Biener <rguenther@suse.de>
19863
19864 PR middle-end/68963
19865 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
19866 bogus check.
19867 (record_nonwrapping_iv): Do not fall back to the low/high bound
19868 for non-constant IV bases if the stmt is not always executed.
19869
19870 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19871
19872 * config/arm/arm-cores.def (cortex-a32): New entry.
19873 * config/arm/arm-tables.opt: Regenerate.
19874 * config/arm/arm-tune.md: Regenerate.
19875 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
19876 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
19877 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
19878 for -mcpu and -mtune.
19879
19880 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19881
19882 PR target/69875
19883 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
19884 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
19885 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
19886 (atomic_loaddi_1): Delete.
19887 (atomic_loaddi): Rewrite expander using the above changes.
19888
19889 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19890
19891 PR c/69918
19892 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
19893 2 to 3.
19894
19895 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19896 Richard Biener <rguenth@suse.de>
19897
19898 PR middle-end/69909
19899 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
19900 set_mem_attributes if tem is SSA_NAME which got expanded
19901 as a MEM.
19902
19903 2016-02-24 Richard Biener <rguenther@suse.de>
19904
19905 PR tree-optimization/69907
19906 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
19907 end of permutations for BB vectorization.
19908
19909 2016-02-24 Christian Bruel <christian.bruel@st.com>
19910
19911 * config/arm/arm-c.c (arm_option_override): Initialize
19912 target_option_current_node.
19913 * config/arm/arm.c (arm_pragma_target_parse): Replace
19914 build_target_option_node call by target_option_current_node.
19915 Set target_option_current_node.
19916 Fix comments.
19917
19918 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
19919
19920 PR target/69810
19921 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
19922 define_insn_and_split to define_insn.
19923 (zero_extendqi<mode>2_dot2): Same.
19924 (extendqi<mode>2_dot): Same.
19925 (extendqi<mode>2_dot2): Same.
19926
19927 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
19928
19929 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
19930 and add bypass for AES{D,E} and AESMC pairs.
19931 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
19932 and AESMC pairs.
19933
19934 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
19935
19936 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
19937 series for reciprocal square root in Exynos M1.
19938
19939 2016-02-23 Martin Sebor <msebor@redhat.com>
19940
19941 PR c/69759
19942 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
19943 __builtin_alloca_with_align.
19944
19945 2016-02-23 Richard Henderson <rth@redhat.com>
19946
19947 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
19948 (ix86_register_pragmas): Remove __seg_tls.
19949 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
19950 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
19951 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
19952 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
19953 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
19954 * doc/extend.texi (__seg_tls): Remove item.
19955
19956 2016-02-23 Richard Biener <rguenther@suse.de>
19957
19958 * alloc-pool.h (struct allocation_object): Make id member
19959 conditional on CHECKING_P again.
19960 (get_instance): Adjust.
19961 (base_pool_allocator): Likewise.
19962
19963 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
19964
19965 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
19966 (parallelize_loops): In OpenACC kernels mode, set n_threads to
19967 zero.
19968 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
19969 flag_openacc.
19970 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
19971
19972 2016-02-23 Richard Biener <rguenther@suse.de>
19973
19974 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
19975 * bitmap.h (struct bitmap_usage): Likewise.
19976 (bitmap_move): Declare.
19977 * bitmap.c (register_overhead): Take size_t argument.
19978 (bitmap_move): New function.
19979 * df-problems.c (df_rd_transfer_function): Use bitmap_move
19980 to properly account overhead.
19981 * tree.c (free_node): Use tree_size.
19982
19983 2016-02-23 Jakub Jelinek <jakub@redhat.com>
19984
19985 PR c++/69902
19986 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
19987 when inverting comparison.
19988
19989 PR c/69900
19990 * common.opt (Wunreachable-code): Add Warning flag.
19991
19992 2016-02-23 Mark Wielaard <mjw@redhat.com>
19993 Jakub Jelinek <jakub@redhat.com>
19994
19995 PR c/69911
19996 * cgraphunit.c (check_global_declaration): Check main_input_filename
19997 and DECL_SOURCE_FILE are not NULL.
19998
19999 2016-02-23 Martin Jambor <mjambor@suse.cz>
20000
20001 PR tree-optimization/69666
20002 * tree-sra.c (sra_modify_assign): Do not attempt to create
20003 default_def replacements for unscalarizable regions.
20004
20005 2016-02-20 Mark Wielaard <mjw@redhat.com>
20006
20007 PR c/28901
20008 * cgraphunit.c (check_global_declaration): Check level of
20009 warn_unused_const_variable and main_input_filename.
20010 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
20011 (-Wunused-variable): For C implies -Wunused-const-variable=1.
20012 (-Wunused-const-variable): Explain levels 1 and 2.
20013
20014 2016-02-22 Jakub Jelinek <jakub@redhat.com>
20015
20016 PR target/69888
20017 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
20018 identical arguments. Formatting and spelling fixes.
20019
20020 PR target/69885
20021 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
20022 be specified.
20023
20024 PR target/69894
20025 PR target/69895
20026 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
20027 and m68k-devices.def.
20028 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
20029 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
20030
20031 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
20032
20033 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
20034 and HImode registers.
20035
20036 2016-02-22 Richard Biener <rguenther@suse.de>
20037
20038 PR tree-optimization/69882
20039 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
20040 preserve permutations present because of gaps.
20041 (vect_supported_load_permutation_p): Always continue checking
20042 permutations after vect_attempt_slp_rearrange_stmts.
20043
20044 2016-02-22 Bin Cheng <bin.cheng@arm.com>
20045
20046 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
20047 min_profitable_estimate, rather than min_profitable_iters.
20048
20049 2016-02-22 Jakub Jelinek <jakub@redhat.com>
20050
20051 PR target/69885
20052 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20053 SImode for last match_operand.
20054
20055 2016-02-22 Martin Liska <mliska@suse.cz>
20056
20057 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20058 return bitsize - 1 as the return value.
20059
20060 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
20061
20062 PR target/69806
20063 PR target/54089
20064 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20065 Handle negative shift counts.
20066 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20067 force_reg on the shift constant.
20068 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
20069 (lshrsi3_d): Handle negative shift counts.
20070
20071 2016-02-22 Richard Biener <rguenther@suse.de>
20072 Tom de Vries <tom@codesourcery.com>
20073
20074 * graph.c: Include dumpfile.h.
20075 (print_graph_cfg): Split into three overloads.
20076 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20077
20078 2016-02-22 Tom de Vries <tom@codesourcery.com>
20079
20080 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20081 dump-fn.
20082
20083 2016-02-22 Richard Biener <rguenther@suse.de>
20084
20085 PR ipa/37448
20086 * ipa-inline-transform.c (inline_call): When not updating
20087 overall summaries adjust self size by the growth estimate.
20088 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20089 hash-set, do not update overall summaries here. Renamed from ...
20090 (inline_to_all_callers): ... this which is now wrapping the
20091 above and performing delayed overall summary update.
20092 (early_inline_small_functions): Delay updating of the overall
20093 summary.
20094
20095 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
20096
20097 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20098 variable.
20099
20100 2016-02-19 Jakub Jelinek <jakub@redhat.com>
20101
20102 PR driver/69805
20103 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20104 :%* in %:gt() argument.
20105 (greater_than_spec_func): Adjust for expecting only numbers,
20106 if there are more than two numbers, compare the last two.
20107
20108 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
20109
20110 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20111 -Wnarrowing with -std.
20112
20113 2016-02-19 Jakub Jelinek <jakub@redhat.com>
20114
20115 PR c++/69851
20116 * expr.c (store_field): Don't use bit-field path if exp is
20117 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20118 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20119 and the assignment can be performed by bitwise copy. Formatting
20120 fix.
20121
20122 PR middle-end/69838
20123 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20124 call copy_reg_eh_region_note_forward on before and/or after sequences
20125 and remove note from insn if it no longer can throw.
20126
20127 PR target/69820
20128 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20129 if TARGET_AVX512BW.
20130
20131 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20132
20133 * config/s390/vector.md: Add missing commutative operand markers
20134 to the patterns which qualify for one.
20135 * config/s390/vx-builtins.md: Likewise.
20136
20137 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20138
20139 * config/s390/vector.md (VI, VI_QHS): Add single element vector
20140 types to mode iterators.
20141 (vec_double): ... and mode attribute.
20142 * config/s390/vx-builtins.md (non_vec_int): Likewise.
20143
20144 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20145
20146 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20147 Change the predicate of op2 from nonimmediate to general and let
20148 reload fix it if necessary.
20149
20150 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20151
20152 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20153
20154 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20155
20156 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20157 mode.
20158
20159 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20160
20161 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20162 * config/s390/s390.c (s390_expand_vec_movstr): New function.
20163 * config/s390/s390.md ("movstr<P:mode>"): Call
20164 s390_expand_vec_movstr.
20165
20166 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20167
20168 * config/s390/s390.md: Add missing output modifier for operand 1
20169 to print it as address properly.
20170
20171 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20172
20173 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20174 * config/s390/2964.md: New file.
20175 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20176 of insn grouping attributes depending on the CPU level.
20177 (s390_get_unit_mask): New function.
20178 (s390_sched_score): Remove the OOO from the scheduling macros.
20179 Add loop to calculate a score for the instruction mix.
20180 (s390_sched_reorder): Likewise plus improve debug output.
20181 (s390_sched_variable_issue): Rename macros as above. Calculate
20182 the unit distances after actually scheduling an insn. Improve
20183 debug output.
20184 (s390_sched_init): Clear last_scheduled_unit_distance array.
20185 * config/s390/s390.md: Include 2964.md.
20186
20187 2016-02-18 Jakub Jelinek <jakub@redhat.com>
20188
20189 PR target/69671
20190 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20191 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20192 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20193 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20194 *avx512f_<code>v8div16qi2_mask_1): New insns.
20195
20196 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20197
20198 PR target/68404
20199 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20200 2016-02-09 change.
20201
20202 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20203 earlyclobber from target. Use wF constraint for fused memory
20204 address.
20205 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20206
20207 2016-02-18 Jakub Jelinek <jakub@redhat.com>
20208 Martin Liska <mliska@suse.cz>
20209
20210 PR sanitizer/69863
20211 * cfgexpand.c (asan_sanitize_stack_p): New function.
20212 (partition_stack_vars): Use the function.
20213 (expand_stack_vars): Likewise.
20214 (defer_stack_allocation): Likewise.
20215 (expand_used_vars): Likewise.
20216
20217 2016-02-18 Richard Biener <rguenther@suse.de>
20218
20219 PR middle-end/69553
20220 * fold-const.c (operand_equal_p): Properly compare offsets for
20221 IMAGPART_EXPR and ARRAY_REF.
20222
20223 2016-02-18 Nick Clifton <nickc@redhat.com>
20224
20225 PR target/62254
20226 PR target/69610
20227 * config/arm/arm.c (arm_option_override_internal): Disable
20228 interworking if the target does not support thumb instructions.
20229 (arm_reload_in_hi): Handle the case where a register to register
20230 move needs reloading because there is no simple pattern to handle
20231 it.
20232 (arm_reload_out_hi): Likewise.
20233
20234 2016-02-18 Richard Biener <rguenther@suse.de>
20235
20236 PR middle-end/69854
20237 * match.pd: Don't use fold_binary or fold_unary for folding
20238 constants.
20239
20240 2016-02-17 Jakub Jelinek <jakub@redhat.com>
20241
20242 PR c++/69850
20243 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20244 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20245 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20246 warn on gimple_no_warning_p statements.
20247
20248 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
20249
20250 * doc/extend.texi (C++ Attributes): Correct description of
20251 warn_unused type attribute.
20252
20253 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20254
20255 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20256 correct instruction.
20257
20258 2016-02-17 Richard Biener <rguenther@suse.de>
20259
20260 PR rtl-optimization/69609
20261 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20262 (find_traces_1_round): When ending a trace update cached priority
20263 of successors.
20264 (bb_to_key): Use cached priority when available.
20265 (copy_bb): Initialize cached priority.
20266 (reorder_basic_blocks_software_trace_cache): Likewise.
20267
20268 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20269
20270 PR target/69161
20271 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20272 New predicate.
20273 (aarch64_comparison_operator): Break overly long line into two.
20274 (aarch64_comparison_operation): Likewise.
20275 * config/aarch64/aarch64.md (cstorecc4): Use
20276 aarch64_comparison_operator_mode instead of
20277 aarch64_comparison_operator.
20278 (cstore<mode>4): Likewise.
20279 (aarch64_cstore<mode>): Likewise.
20280 (*cstoresi_insn_uxtw): Likewise.
20281 (cstore<mode>_neg): Likewise.
20282 (*cstoresi_neg_uxtw): Likewise.
20283
20284 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20285
20286 PR target/69161
20287 * config/arm/predicates.md (arm_comparison_operator_mode):
20288 New predicate.
20289 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20290 instead of arm_comparison_operator.
20291 (*mov_negscc): Likewise.
20292 (*mov_notscc): Likewise.
20293 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20294 (*thumb2_mov_negscc): Likewise.
20295 (*thumb2_mov_negscc_strict_it): Likewise.
20296 (*thumb2_mov_notscc): Likewise.
20297 (*thumb2_mov_notscc_strict_it): Likewise.
20298
20299 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
20300
20301 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20302 Add missing return.
20303
20304 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
20305
20306 * config/visium/visium.c (machine_libfunc_index): New enum.
20307 (machine_libfuncs): New structure.
20308 (visium_libfuncs): New static variable.
20309 (TARGET_INIT_LIBFUNCS): Define to...
20310 (visium_init_libfuncs): ...this. New function.
20311 (expand_block_move_4): Use the appropriate libfunc.
20312 (expand_block_move_2): Likewise.
20313 (expand_block_move_1): Likewise.
20314 (expand_block_set_4): Likewise.
20315 (expand_block_set_2): Likewise.
20316 (expand_block_set_1): Likewise.
20317 (visium_trampoline_init): Likewise.
20318
20319 2016-02-17 Nick Clifton <nickc@redhat.com>
20320
20321 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20322 TI's devices.csv file as of March 2016.
20323
20324 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
20325
20326 PR Target/48344
20327 * opts-global.c (handle_common_deferred_options): Introduce and
20328 initialize two global variables to remember command-line options
20329 specifying a stack-limiting register.
20330 * opts.h: Add extern declarations of the two new global variables.
20331 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20332 variable based on the values of the two new global variables.
20333
20334 2016-02-16 Jakub Jelinek <jakub@redhat.com>
20335
20336 PR c/69835
20337 * common.opt (Wnonnull-compare): New warning.
20338 * doc/invoke.texi (-Wnonnull): Remove text about comparison
20339 of arguments against NULL.
20340 (-Wnonnull-compare): Document.
20341 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20342 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20343 * passes.def (pass_warn_nonnull_compare): Add.
20344 * gimple-ssa-nonnull-compare.c: New file.
20345
20346 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20347
20348 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20349 AARCH64_EXTRA_TUNE_RECIP_SQRT.
20350
20351 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20352
20353 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20354 reciprocal sqrt for -mlow-precision-recip-sqrt.
20355
20356 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20357 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20358
20359 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20360 always use lane loads to construct non-constant vectors.
20361
20362 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20363
20364 * config/aarch64/aarch64.md
20365 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20366 constraints for operand 3.
20367 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20368
20369 2016-02-16 Jakub Jelinek <jakub@redhat.com>
20370 Richard Biener <rguenther@suse.de>
20371
20372 PR tree-optimization/69820
20373 * tree-vect-patterns.c (type_conversion_p): Return false if
20374 *orig_type is unsigned single precision or boolean.
20375 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20376 Formatting fix.
20377
20378 2016-02-16 Jakub Jelinek <jakub@redhat.com>
20379
20380 PR rtl-optimization/69764
20381 PR rtl-optimization/69771
20382 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20383 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20384
20385 2016-02-16 Richard Biener <rguenther@suse.de>
20386
20387 PR tree-optimization/69776
20388 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20389 sets from caller.
20390 (indirect_refs_may_alias_p): Likewise.
20391 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20392 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20393 according to tbaa_p.
20394 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20395 (optimize_stmt): For redundant store discovery do not allow tbaa.
20396
20397 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
20398
20399 PR tree-optimization/69714
20400 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20401 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20402
20403 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
20404
20405 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20406 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20407 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20408 * config/arc/arc.c (arc_init): Check FPU options.
20409 (get_arc_condition_code): Handle new CC_FPU* modes.
20410 (arc_select_cc_mode): Likewise.
20411 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20412 register pair only. Allow access for ARCv2 accumulator.
20413 (gen_compare_reg): Whenever we have FPU support use FPU compare
20414 instructions.
20415 (arc_reorg): Don't generate brcc insns when FPU compare
20416 instructions are involved.
20417 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20418 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20419 floating point emulation.
20420 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20421 (REVERSE_CONDITION): Add new CC_FPU* modes.
20422 (TARGET_FP_SP_BASE): Define.
20423 (TARGET_FP_DP_BASE): Likewise.
20424 (TARGET_FP_SP_FUSED): Likewise.
20425 (TARGET_FP_DP_FUSED): Likewise.
20426 (TARGET_FP_SP_CONV): Likewise.
20427 (TARGET_FP_DP_CONV): Likewise.
20428 (TARGET_FP_SP_SQRT): Likewise.
20429 (TARGET_FP_DP_SQRT): Likewise.
20430 (TARGET_FP_DP_AX): Likewise.
20431 * config/arc/arc.md (ARCV2_ACC): New constant.
20432 (type): New fpu type attribute.
20433 (SDF): Conditional iterator.
20434 (cstore<mode>, cbranch<mode>): Change expand condition.
20435 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20436 handles FPU/FPX cases as well.
20437 * config/arc/arc.opt (mfpu): New option.
20438 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20439 Renamed.
20440 (adddf3, muldf3, subdf3): Removed.
20441 * config/arc/predicates.md (proper_comparison_operator): Recognize
20442 CC_FPU* modes.
20443 * config/arc/fpu.md: New file.
20444 * doc/invoke.texi (ARC Options): Document mfpu option.
20445
20446 2016-02-16 Richard Biener <rguenther@suse.de>
20447
20448 PR rtl-optimization/69291
20449 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20450 noce_operand_ok check.
20451
20452 2016-02-16 Tom de Vries <tom@codesourcery.com>
20453
20454 PR lto/67709
20455 * omp-low.c (simd_clone_create): Remove call to
20456 symtab->call_cgraph_insertion_hooks.
20457
20458 2016-02-16 Jakub Jelinek <jakub@redhat.com>
20459
20460 PR tree-optimization/69802
20461 * tree-ssa-reassoc.c (update_range_test): If op is
20462 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20463 op == 1 test of precision 1 integral op, otherwise handle
20464 that case as op itself. Fix up formatting.
20465 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20466 up formatting.
20467
20468 2016-02-16 Richard Biener <rguenther@suse.de>
20469
20470 PR tree-optimization/69586
20471 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20472 types for conversion sources.
20473
20474 2016-02-16 Richard Biener <rguenther@suse.de>
20475
20476 PR middle-end/69801
20477 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20478 mask OEP_ADDRESS_OF.
20479
20480 2016-02-16 Alan Modra <amodra@gmail.com>
20481
20482 PR target/68973
20483 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20484 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20485 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20486 (p8_mtvsrwz): New.
20487 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20488 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20489 (p8_fmrgow_<mode>): Likewise.
20490 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
20491 changes.
20492 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20493 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20494 to use movdi_internal64. Remove op0_di.
20495 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20496
20497 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
20498
20499 Add support for the FCCMP insn types
20500
20501 * config/aarch64/aarch64.md (fccmp): Change insn type.
20502 (fccmpe): Likewise.
20503 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20504 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20505 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20506 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20507 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20508 * config/arm/types.md (fccmps): Add new insn type.
20509 (fccmpd): Likewise.
20510
20511 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
20512
20513 * alias.c (get_alias_set): Fix a typo in comment.
20514
20515 2016-02-15 Richard Biener <rguenther@suse.de>
20516
20517 PR tree-optimization/69595
20518 * match.pd: Complete range test simplification to true.
20519
20520 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
20521
20522 PR rtl-optimization/69648
20523 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20524 pic_offset_table_rtx.
20525
20526 PR rtl-optimization/69752
20527 * ira.c (update_equiv_regs): When looking for more than a single SET,
20528 also take other side effects into account.
20529
20530 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
20531
20532 * config/s390/s390.c (s390_function_profiler): Add a new sequence
20533 for z900+ CPUs in 31-bit mode.
20534
20535 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
20536
20537 * common/config/s390/s390-common.c (s390_supports_split_stack):
20538 New function.
20539 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20540 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20541 * config/s390/s390.c (struct machine_function): New field
20542 split_stack_varargs_pointer.
20543 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20544 in s390_emit_prologue.
20545 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20546 vararg pointer.
20547 (morestack_ref): New global.
20548 (SPLIT_STACK_AVAILABLE): New macro.
20549 (s390_expand_split_stack_prologue): New function.
20550 (s390_live_on_entry): New function.
20551 (s390_va_start): Use split-stack vararg pointer if appropriate.
20552 (s390_asm_file_end): Emit the split-stack note sections.
20553 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20554 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20555 (UNSPECV_SPLIT_STACK_CALL): New unspec.
20556 (UNSPECV_SPLIT_STACK_DATA): New unspec.
20557 (split_stack_prologue): New expand.
20558 (split_stack_space_check): New expand.
20559 (split_stack_data): New insn.
20560 (split_stack_call): New expand.
20561 (split_stack_call_*): New insn.
20562 (split_stack_cond_call): New expand.
20563 (split_stack_cond_call_*): New insn.
20564
20565 2016-02-15 Richard Biener <rguenther@suse.de>
20566
20567 PR tree-optimization/69783
20568 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20569 Add trivially correct cases.
20570
20571 2016-02-15 Tom de Vries <tom@codesourcery.com>
20572
20573 PR lto/69655
20574 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20575 do_force_output.
20576 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20577
20578 2016-02-15 Richard Biener <rguenther@suse.de>
20579
20580 PR tree-optimization/69776
20581 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20582 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
20583 indicate whether we can use TBAA to disambiguate against stores.
20584 Use alias-set zero if not.
20585 (visit_reference_op_store): Do not use TBAA when looking up
20586 redundant stores.
20587 * tree-ssa-pre.c (compute_avail): Use TBAA here.
20588 (eliminate_dom_walker::before_dom_children): But not when looking
20589 up redundant stores.
20590
20591 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
20592
20593 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
20594
20595 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20596
20597 * config/i386/znver1.md
20598 (znver1_pop, znver1_pop_mem,
20599 znver1_load_imov_double_store,
20600 znver1_load_imov_direct_store,
20601 znver1_load_imov_direct_load,
20602 znver1_load_imov_double_load): Add new.
20603 (znver1_insn, znver1_insn_load): Add icmov type.
20604 (znver1_sseavx_fma,
20605 znver1_sseavx_fma_load,
20606 znver1_avx256_fma,
20607 znver1_avx256_fma_load): Fix pipe usage.
20608
20609 2016-02-14 Alan Modra <amodra@gmail.com>
20610
20611 PR target/68973
20612 * reload.c (find_reloads_address_1): For pre/post-inc/dec
20613 with an invalid hard reg, reload just the reg not the entire
20614 pre/post-inc/dec address expression.
20615
20616 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
20617
20618 PR target/67260
20619 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
20620 fixed R1_REG scratch reg.
20621 (sibcall_value_pcrel_fdpic): Likewise.
20622
20623 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
20624
20625 PR target/67636
20626 PR target/64345
20627 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
20628
20629 2016-02-12 Walter Lee <walt@tilera.com>
20630
20631 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
20632 * config/tilegx/t-tilegx: Likewise.
20633
20634 2016-02-12 David Malcolm <dmalcolm@redhat.com>
20635
20636 PR other/69554
20637 * diagnostic-show-locus.c (struct line_span): New struct.
20638 (layout::get_first_line): Delete.
20639 (layout::get_last_line): Delete.
20640 (layout::get_num_line_spans): New member function.
20641 (layout::get_line_span): Likewise.
20642 (layout::print_heading_for_line_span_index_p): Likewise.
20643 (layout::get_expanded_location): Likewise.
20644 (layout::calculate_line_spans): Likewise.
20645 (layout::m_first_line): Delete.
20646 (layout::m_last_line): Delete.
20647 (layout::m_line_spans): New field.
20648 (layout::layout): Update comment. Replace m_first_line and
20649 m_last_line with m_line_spans, replacing their initialization
20650 with a call to calculate_line_spans.
20651 (diagnostic_show_locus): When printing source lines and
20652 annotations, rather than looping over a single span
20653 of lines, instead loop over each line_span within
20654 the layout, with an inner loop over the lines within them.
20655 Call the context's start_span callback when changing line spans.
20656 * diagnostic.c (diagnostic_initialize): Initialize start_span.
20657 (diagnostic_build_prefix): Break out the building of the location
20658 part of the string into...
20659 (diagnostic_get_location_text): ...this new function, rewriting
20660 it from nested ternary expressions to a sequence of "if"
20661 statements.
20662 (default_diagnostic_start_span_fn): New function.
20663 * diagnostic.h (diagnostic_start_span_fn): New typedef.
20664 (diagnostic_context::start_span): New field.
20665 (default_diagnostic_start_span_fn): New prototype.
20666
20667 2016-02-12 David Malcolm <dmalcolm@redhat.com>
20668
20669 PR driver/69779
20670 * gcc.c (driver::finalize): Fix cleanup of "specs".
20671
20672 2016-02-12 David Malcolm <dmalcolm@redhat.com>
20673
20674 PR driver/69265
20675 PR driver/69453
20676 * gcc.c (driver::driver): Initialize m_option_suggestions.
20677 (driver::~driver): Clean up m_option_suggestions.
20678 (suggest_option): Convert to...
20679 (driver::suggest_option): ...this, and split out into
20680 driver::build_option_suggestions and find_closest_string.
20681 (driver::build_option_suggestions): New function, from
20682 first half of suggest_option. Special-case
20683 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
20684 the sanitizer_opts array. For options of enum types, add the
20685 various enum values to the candidate strings.
20686 (driver::handle_unrecognized_options): Remove "const".
20687 * gcc.h (driver::handle_unrecognized_options): Likewise.
20688 (driver::build_option_suggestions): New decl.
20689 (driver::suggest_option): New decl.
20690 (driver::m_option_suggestions): New field.
20691 * opts-common.c (add_misspelling_candidates): New function.
20692 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
20693 and make non-static.
20694 * opts.h (sanitizer_opts): New array decl.
20695 (add_misspelling_candidates): New function decl.
20696 * spellcheck.c (find_closest_string): New function.
20697 * spellcheck.h (find_closest_string): New function decl.
20698
20699 2016-02-12 Jakub Jelinek <jakub@redhat.com>
20700
20701 PR rtl-optimization/69764
20702 PR rtl-optimization/69771
20703 * optabs.c (expand_binop_directly): For shift_optab_p, force
20704 convert_modes with VOIDmode if xop1 has VOIDmode.
20705
20706 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
20707
20708 PR target/69729
20709 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
20710 to correctly determine instrumentation thunks.
20711
20712 2016-02-12 Jakub Jelinek <jakub@redhat.com>
20713
20714 PR ipa/69241
20715 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
20716 type by reference, force lhs on the call.
20717
20718 PR ipa/68672
20719 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
20720 Compute retval and retbnd early in all cases if split_part_return_p
20721 and return_bb is not EXIT. Remove all clobber stmts and reset
20722 all debug stmts that refer to SSA_NAMEs defined in split part,
20723 except if it is retval, in that case replace the old retval with the
20724 lhs of the call to the split part.
20725
20726 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20727
20728 revert:
20729 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20730
20731 PR middle-end/66726
20732 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20733 whose result is used in PHI.
20734 (maybe_optimize_range_tests): Likewise.
20735 (final_range_test_p): Likweise.
20736
20737 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20738
20739 PR middle-end/66726
20740 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20741 whose result is used in PHI.
20742 (maybe_optimize_range_tests): Likewise.
20743 (final_range_test_p): Likweise.
20744
20745 2016-02-12 Jakub Jelinek <jakub@redhat.com>
20746
20747 * cgraph.c: Spelling fixes - behaviour -> behavior and
20748 neighbour -> neighbor.
20749 * target.def: Likewise.
20750 * sel-sched.c: Likewise.
20751 * config/mips/mips.c: Likewise.
20752 * config/arc/arc.md: Likewise.
20753 * config/arm/cortex-a57.md: Likewise.
20754 * config/arm/arm.c: Likewise.
20755 * config/arm/neon.md: Likewise.
20756 * config/arm/arm-c.c: Likewise.
20757 * config/vms/vms-c.c: Likewise.
20758 * config/s390/s390.c: Likewise.
20759 * config/i386/znver1.md: Likewise.
20760 * config/i386/i386.c: Likewise.
20761 * config/ia64/hpux-unix2003.h: Likewise.
20762 * config/msp430/msp430.md: Likewise.
20763 * config/rx/rx.c: Likewise.
20764 * config/rx/rx.md: Likewise.
20765 * config/aarch64/aarch64-simd.md: Likewise.
20766 * config/aarch64/aarch64.c: Likewise.
20767 * config/nvptx/nvptx.c: Likewise.
20768 * config/bfin/bfin.c: Likewise.
20769 * config/cris/cris.opt: Likewise.
20770 * config/rs6000/rs6000.c: Likewise.
20771 * target.h: Likewise.
20772 * spellcheck.c: Likewise.
20773 * ira-build.c: Likewise.
20774 * tree-inline.c: Likewise.
20775 * builtins.c: Likewise.
20776 * lra-constraints.c: Likewise.
20777 * explow.c: Likewise.
20778 * hwint.h: Likewise.
20779 * targhooks.c: Likewise.
20780 * tree-vect-data-refs.c: Likewise.
20781 * expr.c: Likewise.
20782 * doc/tm.texi: Likewise.
20783 * doc/extend.texi: Likewise.
20784 * doc/install.texi: Likewise.
20785 * doc/md.texi: Likewise.
20786 * tree-ssa-tail-merge.c: Likewise.
20787 * sched-int.h: Likewise.
20788 * match.pd: Likewise.
20789 * sched-ebb.c: Likewise.
20790 * target.def (omit_struct_return_reg): Likewise.
20791 * gimple-ssa-isolate-paths.c: Likewise.
20792 (find_implicit_erroneous_behaviour): Renamed to...
20793 (find_implicit_erroneous_behavior): ... this.
20794 (find_explicit_erroneous_behaviour): Renamed to...
20795 (find_explicit_erroneous_behavior): ... this.
20796 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
20797
20798 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
20799
20800 PR rtl-optimization/64682
20801 PR rtl-optimization/69567
20802 PR rtl-optimization/69737
20803 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
20804 in I2 as well, just lose it.
20805
20806 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20807
20808 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
20809 New variable.
20810 (aarch64_last_printed_tune_string): Likewise.
20811 (aarch64_declare_function_name): Only output .arch assembler
20812 directive if it will be different from the previously output
20813 directive. Same for .tune comment but only if -dA is set.
20814 (aarch64_start_file): New function.
20815 (TARGET_ASM_FILE_START): Define.
20816
20817 2016-02-11 David Malcolm <dmalcolm@redhat.com>
20818
20819 PR plugins/69758
20820 * Makefile.in (PLUGIN_HEADERS): Add params.list.
20821
20822 2016-02-11 Jakub Jelinek <jakub@redhat.com>
20823
20824 PR target/65313
20825 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
20826 -Wmaybe-uninitialized warning.
20827
20828 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
20829
20830 PR target/69713
20831 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
20832
20833 2016-02-11 Richard Biener <rguenther@suse.de>
20834
20835 PR rtl-optimization/69291
20836 * ifcvt.c (noce_try_store_flag_constants): Do not allow
20837 subexpressions affected by changing the result.
20838
20839 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
20840
20841 PR target/69148
20842 * lra-constraints.c (curr_insn_transform): Find in/out operands
20843 for secondary memory moves. Update dups.
20844
20845 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
20846
20847 PR tree-optimization/69652
20848 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
20849 to nested loop, did source re-formatting, skip debug statements,
20850 add check on statement with volatile operand, remove dead scalar
20851 statements.
20852
20853 2016-02-10 Jakub Jelinek <jakub@redhat.com>
20854 Patrick Palka <ppalka@gcc.gnu.org>
20855
20856 PR ipa/69241
20857 PR c++/69649
20858 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
20859 calls if the return type is TREE_ADDRESSABLE.
20860 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
20861 * ipa-split.c (split_function): Fix doubled "we" in comment.
20862 Use void return type for the split part even if
20863 !split_point->split_part_set_retval.
20864
20865 2016-02-10 Bin Cheng <bin.cheng@arm.com>
20866
20867 PR tree-optimization/68021
20868 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
20869 when computing the value of biv cand by itself.
20870
20871 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20872
20873 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
20874 (cortexa57_tunings): Likewise.
20875 (cortexa72_tunings): Likewise.
20876 (arch_macro_fusion_pair_p): Add support for AES fusion.
20877 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
20878 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
20879 Allow virtual registers before reload so early scheduling works.
20880 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
20881 correct latency and pipeline.
20882 (cortex_a57_crypto_complex): Likewise.
20883 (cortex_a57_crypto_xor): Likewise.
20884 (define_bypass): Add AES bypass.
20885
20886 2016-02-10 Richard Biener <rguenther@suse.de>
20887
20888 PR tree-optimization/69726
20889 * passes.def: Add DCE pass before late uninit.
20890 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
20891 really fixup if-conversions job.
20892
20893 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20894
20895 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
20896 (arm_cortex_a57_tune): Likewise.
20897 (aarch_macro_fusion_pair_p): Add support for AES fusion.
20898 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
20899
20900 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
20901
20902 * timevar.def (TV_PHASE_DBGINFO): Delete.
20903 (TV_PHASE_CHECK_DBGINFO): Likewise.
20904 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
20905
20906 2016-02-10 Richard Biener <rguenther@suse.de>
20907
20908 PR tree-optimization/69719
20909 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20910 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
20911
20912 2016-02-09 Andrew Pinski <apinski@cavium.com>
20913
20914 PR tree-opt/69282
20915 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
20916 get_vcond_mask_icode returns false.
20917
20918 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20919
20920 PR target/68404
20921 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
20922 an ADDIS that adds a pointer to a large constant that sets the
20923 upper16 bits with a load operation.
20924
20925 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
20926
20927 PR target/68532
20928 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
20929 order.
20930 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
20931 endian.
20932 (vzipq_s16): Likewise.
20933 (vzipq_s32): Likewise.
20934 (vzipq_f32): Likewise.
20935 (vzipq_u8): Likewise.
20936 (vzipq_u16): Likewise.
20937 (vzipq_u32): Likewise.
20938 (vzipq_p8): Likewise.
20939 (vzipq_p16): Likewise.
20940
20941 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
20942
20943 PR target/68532
20944 * config/arm/arm.c (neon_endian_lane_map): New function.
20945 (neon_vector_pair_endian_lane_map): New function.
20946 (arm_evpc_neon_vuzp): Allow for big endian lane order.
20947 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
20948 endian.
20949 (vuzpq_s16): Likewise.
20950 (vuzpq_s32): Likewise.
20951 (vuzpq_f32): Likewise.
20952 (vuzpq_u8): Likewise.
20953 (vuzpq_u16): Likewise.
20954 (vuzpq_u32): Likewise.
20955 (vuzpq_p8): Likewise.
20956 (vuzpq_p16): Likewise.
20957
20958 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
20959
20960 PR target/69634
20961 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
20962 debug insns.
20963
20964 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
20965
20966 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
20967 truncate const_int operand 1 to QImode.
20968
20969 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
20970
20971 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
20972 corresponding to an abnormal edge.
20973
20974 2016-02-09 Tom de Vries <tom@codesourcery.com>
20975
20976 PR tree-optimization/69599
20977 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
20978 function.
20979 (find_func_aliases_for_builtin_call, find_func_clobbers)
20980 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
20981 partition.
20982
20983 2016-02-09 Richard Biener <rguenther@suse.de>
20984
20985 PR tree-optimization/69715
20986 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
20987 LHS on calls as non-rewritable.
20988
20989 2016-02-09 Tom de Vries <tom@codesourcery.com>
20990
20991 PR lto/69707
20992 * lto-wrapper.c (append_diag_options): New function.
20993 (compile_offload_image): Call append_diag_options.
20994
20995 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
20996
20997 PR other/69722
20998 * doc/extend.texi (Flag Output Operands): Correct sectioning.
20999 Minor copy-edit to fix verb tenses.
21000
21001 2016-02-08 Jakub Jelinek <jakub@redhat.com>
21002
21003 PR tree-optimization/69209
21004 * ipa-split.c (split_function): If split part is not
21005 returning retval, retval has gimple type but is not
21006 gimple value, force it into a SSA_NAME first.
21007
21008 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
21009
21010 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
21011 outdated section.
21012
21013 2016-02-08 Jason Merrill <jason@redhat.com>
21014
21015 PR c++/69631
21016 * convert.c (convert_to_integer_1): Check dofold on truncation
21017 distribution.
21018 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
21019 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
21020 Rename from *_nofold.
21021 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
21022 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
21023
21024 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
21025
21026 PR target/60410
21027 * tree.c (build_common_tree_nodes): Remove short_double argument.
21028 All callers changed.
21029 * tree.h (build_common_tree_nodes): Adjust declaration.
21030 * doc/invoke.texi (-fshort-double): Remove documentation.
21031 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21032 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
21033 * lto-wrapper.c (merge_and_complain, append_compiler_options)
21034 (append_linker_options): Don't handle OPT_fshort_double.
21035
21036 PR rtl-optimization/68730
21037 * lra-remat.c (insn_to_cand_activation): New static variable.
21038 (lra_remat): Allocate and free it.
21039 (create_cand): New arg activation. Initialize a field in
21040 insn_to_cand_activation if it is nonnull.
21041 (create_cands): Pass the activation insn to create_cand when making
21042 a candidate involving an output reload. Reorganize code a little.
21043 (do_remat): Keep track of active status of candidates in a separate
21044 bitmap.
21045
21046 2016-02-08 Richard Biener <rguenther@suse.de>
21047
21048 PR tree-optimization/69719
21049 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21050 Properly use absolute of the difference of the two offsets to
21051 compare or adjust the segment length.
21052
21053 2016-02-08 Richard Biener <rguenther@suse.de>
21054 Jeff Law <law@redhat.com>
21055
21056 PR target/68273
21057 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21058 types for anonymous SSA names.
21059
21060 2016-02-08 Richard Biener <rguenther@suse.de>
21061
21062 PR rtl-optimization/69274
21063 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21064
21065 2016-02-08 Jeff Law <law@redhat.com>
21066
21067 PR tree-optimization/65917
21068 * tree-ssa-dom.c (record_temporary_equivalences): Record both
21069 equivalences from if (x == y) style conditionals.
21070 (loop_depth_of_name): Remove.
21071 (record_equality): Remove loop depth check.
21072 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21073 (const_and_copies::record_const_or_copy_raw): New member function.
21074 * tree-ssa-scopedtables.c
21075 (const_and_copies::record_const_or_copy_raw): New, factored out of
21076 (const_and_copies::record_const_or_copy): Call new member function.
21077
21078 2016-02-05 Jeff Law <law@redhat.com>
21079
21080 PR tree-optimization/68541
21081 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21082 (count_stmts_in_block): New function.
21083 (poor_ifcvt_candidate_code): Likewise.
21084 (is_feasible_trace): Add some heuristics to determine when path
21085 splitting is profitable.
21086 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21087 is a diamond with a single exit.
21088
21089 2016-02-05 Martin Sebor <msebor@redhat.com>
21090
21091 PR c++/69662
21092 * doc/invoke.texi: Update -Wplacement-new to take an optional
21093 argument.
21094
21095 2016-02-06 Richard Henderson <rth@redhat.com>
21096
21097 PR c/69643
21098 * tree.c (tree_nop_conversion_p): Do not strip casts into or
21099 out of non-standard address spaces.
21100
21101 2016-02-05 Jakub Jelinek <jakub@redhat.com>
21102
21103 PR rtl-optimization/69691
21104 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21105
21106 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
21107
21108 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21109 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21110 (*ieee128_mfvsrd_64bit): Likewise.
21111 (*ieee128_mfvsrd_32bit): Likewise.
21112
21113 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
21114
21115 PR target/69369
21116 Revert r232560:
21117 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
21118
21119 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21120 instrumented_version.
21121
21122 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
21123
21124 * doc/invoke.texi (Optimize Options): In table of --param options
21125 rename second occurrence of tracer-min-branch-ratio to
21126 tracer-min-branch-probability, rename
21127 tracer-min-branch-ratio-feedback to
21128 tracer-min-branch-probability-feedback and clarify description,
21129 rename sched-spec-state-edge-prob-cutoff to
21130 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21131 to selsched-insns-to-rename, rename lto-minpartition to
21132 lto-min-partition, delete reorder-blocks-duplicate and
21133 reorder-blocks-duplicate-feedback.
21134
21135 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21136
21137 * config/s390/s390.c (s390_register_info_set_ranges): Remove
21138 superfluous loops.
21139
21140 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
21141
21142 * doc/extend.texi: S/390: Correct some typos.
21143
21144 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21145
21146 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21147
21148 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21149
21150 PR target/69625
21151 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21152 (s390_register_info_gprtofpr): Use new macros above.
21153 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21154 its name.
21155 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21156 its name. Adjust restore and save gpr ranges.
21157 (s390_register_info_set_ranges): New function.
21158 (s390_register_info): Use new macros above. Call
21159 s390_register_info_set_ranges.
21160 (s390_optimize_register_info): Likewise.
21161 (s390_hard_regno_rename_ok): Use new macros.
21162 (s390_hard_regno_scratch_ok): Likewise.
21163 (s390_emit_epilogue): Likewise.
21164 (s390_can_use_return_insn): Likewise.
21165 (s390_optimize_prologue): Likewise.
21166 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21167
21168 2016-02-05 Jakub Jelinek <jakub@redhat.com>
21169
21170 PR bootstrap/69677
21171 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21172 alignment fixes.
21173 (ix86_option_override_internal): Disable TARGET_STV even for
21174 -m{incoming,preferred}-stack-boundary=3.
21175
21176 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21177
21178 * config.gcc: Mark deprecated rtems targets as obsolete.
21179
21180 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
21181
21182 PR rtl-optimization/64682
21183 PR rtl-optimization/69567
21184 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21185 before I2 only if the register is both used and set in I2.
21186
21187 2016-02-04 DJ Delorie <dj@redhat.com>
21188
21189 * config/msp430/msp430.c (msp430_start_function): Add function type.
21190
21191 2016-02-04 Jakub Jelinek <jakub@redhat.com>
21192
21193 PR fortran/69368
21194 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21195
21196 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
21197
21198 PR rtl-optimization/69577
21199 Revert:
21200 2015-10-29 Richard Henderson <rth@redhat.com>
21201
21202 PR target/68124
21203 PR rtl-opt/67609
21204 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21205 sse check to the exact conditions of PR 67609.
21206
21207 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
21208
21209 PR target/69667
21210 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21211 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21212 not allowed into the traditional Altivec registers.
21213 (movtd_64bit_nodm): Likewise.
21214 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21215
21216 2016-02-04 David Malcolm <dmalcolm@redhat.com>
21217
21218 * config/aarch64/cortex-a57-fma-steering.c
21219 (aarch64_register_fma_steering): Remove "static" from arguments
21220 to register_pass.
21221
21222 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
21223
21224 PR target/69619
21225 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21226 twice when complex.
21227
21228 2016-02-04 Mike Frysinger <vapier@gentoo.org>
21229
21230 * doc/invoke.texi: Delete -mno-fma4.
21231
21232 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
21233
21234 PR rtl-optimization/69577
21235 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21236 (find_subregs_of_mode): Update accordingly. Iterate over partial
21237 definitions.
21238
21239 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
21240
21241 * config/arm/arm-protos.h (neon_reinterpret): Remove.
21242 * config/arm/arm.c (neon_reinterpret): Remove.
21243 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21244 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21245 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21246 vreinterpretti): Remove.
21247 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21248 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21249 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21250 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21251 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21252 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21253 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21254 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21255 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21256 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21257 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21258 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21259 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21260 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21261 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21262 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21263 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21264 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21265 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21266 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21267 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21268 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21269 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21270 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21271 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21272 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21273 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21274 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21275 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21276 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21277 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21278 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21279 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21280 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21281 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21282 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21283 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21284 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21285 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21286 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21287 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21288 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21289 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21290 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21291 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21292 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21293 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21294 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21295 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21296 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21297 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21298 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21299 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21300 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21301 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21302 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21303 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21304 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21305 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21306 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21307 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21308 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21309 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21310 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21311 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21312 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21313 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21314 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21315 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21316 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21317 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21318 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21319 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21320 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21321 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21322 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21323 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21324 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21325 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21326 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21327 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21328 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21329 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21330 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21331 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21332 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21333 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21334 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21335 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21336 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21337 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21338 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21339 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21340 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21341 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21342 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21343 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21344 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21345 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21346 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21347 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21348 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21349 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21350
21351 2016-02-04 Martin Liska <mliska@suse.cz>
21352
21353 PR sanitizer/69276
21354 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21355 that are gimple_store_p.
21356 (maybe_instrument_call): Likewise.
21357
21358 2016-02-04 Bin Cheng <bin.cheng@arm.com>
21359
21360 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21361 register scaling out of memory reference and comment why.
21362
21363 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21364
21365 PR target/65932
21366 PR target/67714
21367 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21368 folding the source of a SET.
21369
21370 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21371
21372 PR target/65932
21373 PR target/67714
21374 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21375 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21376
21377 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
21378
21379 PR target/65932
21380 PR target/67714
21381 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21382 HImode.
21383
21384 2016-02-04 Christian Bruel <christian.bruel@st.com>
21385
21386 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21387 * config/arm/arm.c (arm_set_current_function): Likewise.
21388
21389 2016-02-04 Jakub Jelinek <jakub@redhat.com>
21390 Ilya Enkovich <enkovich.gnu@gmail.com>
21391 H.J. Lu <hongjiu.lu@intel.com>
21392
21393 PR target/69454
21394 * config/i386/i386.c (convert_scalars_to_vector): Remove
21395 stack alignment fixes.
21396 (ix86_option_override_internal): Disable TARGET_STV if stack
21397 might not be aligned enough.
21398 (ix86_minimum_alignment): Assert that TARGET_STV is false.
21399
21400 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
21401
21402 * config/i386/x86-tune.def: Disable default prefetching
21403 for -march=znver1.
21404
21405 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21406 Vladimir Makarov <vmakarov@redhat.com>
21407
21408 PR target/69461
21409 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21410 in validating fused toc addresses.
21411
21412 2016-02-03 Jakub Jelinek <jakub@redhat.com>
21413
21414 PR c/69627
21415 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21416 range->m_caret fields if range->m_show_caret_p is false.
21417
21418 PR target/69644
21419 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21420 Force oldval into register if it does not satisfy reg_or_short_operand
21421 predicate. Fix up formatting.
21422
21423 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
21424 Alexandre Oliva <aoliva@redhat.com>
21425
21426 PR target/69461
21427 * lra-constraints.c (simplify_operand_subreg): Check additionally
21428 address validity after potential reloading.
21429 (process_address_1): Check insns validity. In case of failure do
21430 nothing.
21431
21432 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
21433
21434 PR target/69118
21435 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21436 Fix target.
21437
21438 2016-02-02 Jakub Jelinek <jakub@redhat.com>
21439
21440 * wide-int.cc (canonize_uhwi): New function.
21441 (wi::divmod_internal): Use it.
21442
21443 2016-02-02 James Norris <jnorris@codesourcery.com>
21444
21445 * gimplify.c (omp_notice_variable): Add usage check.
21446
21447 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
21448
21449 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21450 like LE, GE, LT, GT when emitting relational operator.
21451
21452 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
21453
21454 * ira-costs.c (find_costs_and_classes): Add extra argument.
21455 * target.def (ira_change_pseudo_allocno_class): Add parameter.
21456 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21457 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21458 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21459 Add best_class parameter, and return it if not ALL_REGS.
21460 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21461 Add parameter.
21462 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21463 Update target hook.
21464
21465 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
21466
21467 * config/aarch64/aarch64.c
21468 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21469 (aarch64_ira_change_pseudo_allocno_class): New function.
21470
21471 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
21472
21473 PR target/67032
21474 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21475
21476 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21477
21478 * config/avr/avr.c (avr_option_override): Set
21479 PARAM_ALLOW_STORE_DATA_RACES to 1.
21480
21481 2016-02-02 Richard Biener <rguenther@suse.de>
21482
21483 PR tree-optimization/69595
21484 * match.pd: Add range test simplifications to true/false.
21485
21486 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
21487
21488 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21489 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21490 instead.
21491
21492 2016-02-02 Richard Biener <rguenther@suse.de>
21493
21494 PR tree-optimization/69606
21495 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21496 info on the result before moving a stmt.
21497
21498 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
21499
21500 PR middle-end/68542
21501 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21502 branch with vector comparison.
21503 * config/i386/sse.md (VI48_AVX): New mode iterator.
21504 (define_expand "cbranch<mode>4): Add support for conditional branch
21505 with vector comparison.
21506 * tree-vect-loop.c (optimize_mask_stores): New function.
21507 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21508 has_mask_store field of vect_info.
21509 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21510 vectorized loops having masked stores after vec_info destroy.
21511 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21512 correspondent macros.
21513 (optimize_mask_stores): Add prototype.
21514
21515 2016-02-02 Alan Modra <amodra@gmail.com>
21516
21517 PR target/69548
21518 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21519 allow subregs.
21520
21521 2016-02-02 Alan Modra <amodra@gmail.com>
21522
21523 PR target/68662
21524 * config/rs6000/rs6000.c (need_toc_init): New var, set it
21525 whenever toc_label_name used.
21526 (rs6000_file_start): Don't set up toc section here,
21527 (rs6000_output_function_epilogue): do so here instead,
21528 (rs6000_xcoff_file_start): and here.
21529 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21530 (load_toc_aix_di): Likewise.
21531
21532 2016-02-01 Jakub Jelinek <jakub@redhat.com>
21533
21534 PR rtl-optimization/69592
21535 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21536 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21537 (num_sign_bit_copies_binary_arith_p): New inline function.
21538 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21539
21540 2016-02-01 Jeff Law <law@redhat.com>
21541
21542 PR tree-optimization/69580
21543 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21544 * tree-ssa-threadbackward.c
21545 (fsm_find_control_statement_thread_paths): Do not try to walk
21546 through large PHI nodes.
21547
21548 2016-02-01 Jakub Jelinek <jakub@redhat.com>
21549
21550 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21551 when count is incremented above limit, don't analyze further
21552 insns afterwards.
21553
21554 * omp-low.c (oacc_parse_default_dims): Avoid
21555 -Wsign-compare warning, make sure value fits into int
21556 rather than just unsigned int.
21557
21558 2016-02-01 Bin Cheng <bin.cheng@arm.com>
21559
21560 PR tree-optimization/67921
21561 * fold-const.c (split_tree): New parameters. Convert pointer
21562 type variable part to proper type before negating.
21563 (fold_binary_loc): Pass new arguments to split_tree.
21564
21565 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
21566
21567 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21568 (nvptx_goacc_validate_dims): Extend to handle global defaults.
21569 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21570 * doc/tm.texti: Rebuilt.
21571 * doc/invoke.texi (fopenacc-dim): Document.
21572 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21573 (append_compiler_options): Likewise.
21574 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21575 (oacc_parse_default_dims): New.
21576 (oacc_validate_dims): Add USED arg. Select non-unity default when
21577 possible.
21578 (oacc_loop_fixed_partitions): Return mask of used partitions.
21579 (oacc_loop_auto_partitions): Emit dump info.
21580 (oacc_loop_partition): Return mask of used partitions.
21581 (execute_oacc_device_lower): Parse default dimension arg. Adjust
21582 loop partitioning and validation calls.
21583
21584 2016-02-01 Richard Biener <rguenther@suse.de>
21585
21586 PR middle-end/69556
21587 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
21588
21589 2016-02-01 Richard Biener <rguenther@suse.de>
21590
21591 PR tree-optimization/69574
21592 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
21593 of asserting return chrec_dont_know.
21594
21595 2016-02-01 Martin Liska <mliska@suse.cz>
21596
21597 * mem-stats-traits.h: Add copyright header.
21598 * mem-stats.h: Likewise.
21599
21600 2016-02-01 Richard Biener <rguenther@suse.de>
21601
21602 PR tree-optimization/69579
21603 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
21604 Do not propagate through abnormal PHI results.
21605
21606 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
21607
21608 * postreload.c (reload_cse_simplify): Remove dead code.
21609
21610 2016-02-01 Jakub Jelinek <jakub@redhat.com>
21611
21612 PR rtl-optimization/69570
21613 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
21614 if there is more than one set, not if there is a single set.
21615
21616 2016-02-01 Richard Henderson <rth@redhat.com>
21617
21618 PR rtl-opt/69535
21619 * combine.c (make_compound_operation): When looking through a
21620 subreg, make sure to re-extend to the width of the outer mode.
21621
21622 2016-01-30 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR tree-optimization/69546
21625 * wide-int.cc (wi::divmod_internal): For unsigned division
21626 where both operands fit into uhwi, if o1 is 1 and o0 has
21627 msb set, if divident_prec is larger than bits per hwi,
21628 clear another quotient word and return 2 instead of 1.
21629 Similarly for remainder with msb in HWI set, if dividend_prec
21630 is larger than bits per hwi.
21631
21632 2016-01-29 Martin Jambor <mjambor@suse.cz>
21633
21634 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
21635 Use short lowercase names.
21636 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
21637 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
21638 acq_rel one. Protect warning agains segfaults if
21639 get_memory_order_name returns NULL.
21640 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
21641 with release semantics. Do not warn if get_memory_order already did.
21642 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
21643 semantics. Fix check for relaxed or acquire semantics. Do not warn
21644 if get_memory_order already did.
21645
21646 2016-01-29 Sebastian Pop <s.pop@samsung.com>
21647
21648 * doc/install.texi: Document that isl-0.16 is supported.
21649
21650 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
21651
21652 PR target/69299
21653 * config/i386/constraints.md (Bm): Describe as special memory
21654 constraint.
21655 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
21656 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21657 * genpreds.c (struct constraint_data): Add is_special_memory.
21658 (have_special_memory_constraints, special_memory_start): New
21659 static vars.
21660 (special_memory_end): Ditto.
21661 (add_constraint): Add new arg is_special_memory. Add code to
21662 process its true value. Update have_special_memory_constraints.
21663 (process_define_constraint): Pass the new arg.
21664 (process_define_register_constraint): Ditto.
21665 (choose_enum_order): Process special memory.
21666 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
21667 function insn_extra_special_memory_constraint.
21668 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21669 * gensupport.c (process_rtx): Process
21670 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21671 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
21672 * ira-lives.c (single_reg_class): Use
21673 insn_extra_special_memory_constraint.
21674 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
21675 * lra-constraints.c (process_alt_operands): Ditto.
21676 (curr_insn_transform): Use insn_extra_special_memory_constraint.
21677 * recog.c (asm_operand_ok, preprocess_constraints): Process
21678 CT_SPECIAL_MEMORY.
21679 * reload.c (find_reloads): Ditto.
21680 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
21681 * stmt.c (parse_input_constraint): Use
21682 insn_extra_special_memory_constraint.
21683
21684 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
21685
21686 PR target/69530
21687 * lra-splill.c (lra_final_code_change): Revert r229087 by
21688 removing all sub-registers.
21689
21690 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
21691
21692 PR target/65604
21693 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
21694
21695 2016-01-29 Jakub Jelinek <jakub@redhat.com>
21696
21697 PR target/69551
21698 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
21699 SSE1, copy target into the temporary reg first before recursing
21700 on it.
21701
21702 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
21703
21704 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
21705 with vm.
21706
21707 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
21708
21709 * ginclude/stdarg.h: Test __cplusplus instead of
21710 __GXX_EXPERIMENTAL_CXX0X__.
21711
21712 2016-01-29 Richard Biener <rguenther@suse.de>
21713
21714 PR tree-optimization/69547
21715 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
21716 Do not mark clobbers necessary.
21717 (mark_all_reaching_defs_necessary_1): Likewise.
21718
21719 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21720
21721 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
21722 declaration name with %qs and print it in both error messages.
21723 Also fix indentation.
21724
21725 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21726
21727 PR other/69006
21728 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
21729 trailing blank line from error message.
21730
21731 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
21732
21733 PR c++/69462
21734 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
21735 for C++-11.
21736
21737 2016-01-29 Richard Biener <rguenther@suse.de>
21738
21739 PR middle-end/69537
21740 * match.pd: Allow all integral types when simplifying a
21741 widening or sign-changing conversion.
21742
21743 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21744
21745 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
21746 back to setting codegen_error to fail codegen.
21747
21748 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
21749
21750 PR target/69459
21751 * config/i386/constraints.md (C): Only accept constant zero operand.
21752 (BC): New constraint.
21753 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
21754 instead of C constraint.
21755 * doc/md.texi (Machine Constraints): Update description
21756 of C constraint.
21757
21758 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
21759
21760 PR target/68400
21761 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
21762
21763 2016-01-28 Jakub Jelinek <jakub@redhat.com>
21764
21765 PR middle-end/69542
21766 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
21767 non-debug insns.
21768
21769 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
21770
21771 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
21772 branches if using guessed profile.
21773
21774 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
21775
21776 * graphite-optimize-isl.c (optimize_isl): Fix dump.
21777
21778 2016-01-28 Richard Henderson <rth@redhat.com>
21779
21780 PR target/69305
21781 * config/aarch64/aarch64-modes.def (CC_Cmode): New
21782 * config/aarch64/aarch64-protos.h: Update.
21783 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
21784 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
21785 (aarch64_get_condition_code_1): Handle CC_Cmode.
21786 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
21787 (*add<mode>3_compareC_cconly_imm): New.
21788 (*add<mode>3_compareC_cconly): New.
21789 (*add<mode>3_compareC_imm): New.
21790 (add<mode>3_compareC): New.
21791 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
21792 to be first. Use aarch64_carry_operation.
21793 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
21794 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
21795 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
21796 (subti3): Use subdi3_compare1.
21797 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
21798 (sub<mode>3_compare1): New.
21799 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
21800 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
21801 (*subsi3_carryin_uxtw): Likewise.
21802 (*ngc<mode>, *ngcsi_uxtw): Likewise.
21803 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
21804 * config/aarch64/iterators.md (DWI): New.
21805 * config/aarch64/predicates.md (aarch64_carry_operation): New.
21806 (aarch64_borrow_operation): New.
21807
21808 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
21809
21810 * graphite-optimize-isl.c (optimize_isl): Print a different debug
21811 message when isl does not return a valid schedule.
21812
21813 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21814
21815 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
21816 Remove comments from class declarations: they are already in the code
21817 close by the defs.
21818
21819 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21820
21821 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
21822 codegen_error_p.
21823 (ternary_op_to_tree): Same.
21824 (unary_op_to_tree): Same.
21825 (nary_op_to_tree): Same.
21826 (gcc_expression_from_isl_expr_op): Same.
21827 (gcc_expression_from_isl_expression): Same.
21828 (graphite_create_new_loop): Same.
21829 (graphite_create_new_loop_guard): Same.
21830 (build_iv_mapping): Same.
21831 (graphite_create_new_guard): Same.
21832 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
21833 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
21834
21835 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21836
21837 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
21838 instead of setting codegen_error to fail codegen.
21839
21840 2016-01-28 Jason Merrill <jason@redhat.com>
21841
21842 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
21843
21844 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
21845
21846 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
21847 Remove CONST_INT_P check in CCMP cost calculation.
21848
21849 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
21850
21851 * config/aarch64/aarch64.c (generic_vector_cost):
21852 Set vec_permute_cost.
21853 (cortexa57_vector_cost): Likewise.
21854 (exynosm1_vector_cost): Likewise.
21855 (xgene1_vector_cost): Likewise.
21856 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
21857 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
21858 Add vec_permute_cost entry.
21859
21860 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
21861
21862 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
21863 immediate as %1.
21864 (add<mode>3_compare0): Likewise.
21865 (addsi3_compare0_uxtw): Likewise.
21866 (add<mode>3nr_compare0): Likewise.
21867 (compare_neg<mode>): Likewise.
21868 (<optab><mode>3): Likewise.
21869
21870 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
21871
21872 * tree-vect-stmts.c (vectorizable_comparison): Add
21873 NULL check for vectype.
21874
21875 2016-01-28 Richard Biener <rguenther@suse.de>
21876
21877 PR tree-optimization/69466
21878 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
21879 Account for PHIs we couldn't duplicate.
21880
21881 2016-01-28 Martin Liska <mliska@suse.cz>
21882
21883 PR pch/68758
21884 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
21885 instead of ENABLE_VALGRIND_CHECKING.
21886
21887 2016-01-27 Richard Henderson <rth@redhat.com>
21888
21889 PR rtl-opt/69447
21890 * lra-remat.c (subreg_regs): New.
21891 (dump_candidates_and_remat_bb_data): Dump it.
21892 (operand_to_remat): Reject if operand in subreg_regs.
21893 (set_bb_regs): Collect subreg_regs.
21894 (lra_remat): Init and free subreg_regs. Compute
21895 calculate_local_reg_remat_bb_data before create_cands.
21896
21897 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
21898
21899 PR target/68986
21900 * config/i386/i386.c (ix86_update_stack_boundary): Don't
21901 change stack_alignment_needed for __tls_get_addr call.
21902
21903 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
21904
21905 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
21906
21907 2016-01-27 Jeff Law <law@redhat.com>
21908
21909 PR tree-optimization/68398
21910 PR tree-optimization/69196
21911 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
21912 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
21913 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21914 Only count PHIs in the last block in the path. The others will
21915 const/copy propagate away. Add heuristic to allow more irreducible
21916 subloops to be created when it is likely profitable to do so.
21917
21918 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21919 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
21920 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
21921
21922 2016-01-27 Jakub Jelinek <jakub@redhat.com>
21923
21924 PR lto/69254
21925 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
21926 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
21927 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
21928 * tree-streamer-in.c: Include asan.h.
21929 (streamer_get_builtin_tree): For builtins in sanitizer
21930 range call initialize_sanitizer_builtins and retry.
21931
21932 2016-01-27 Ian Lance Taylor <iant@google.com>
21933
21934 * common.opt (fkeep-gc-roots-live): New undocumented option.
21935 * tree-ssa-loop-ivopts.c (add_candidate_1): If
21936 -fkeep-gc-roots-live, skip pointers.
21937 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
21938 NULL.
21939
21940 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
21941
21942 PR target/69512
21943 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
21944 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
21945
21946 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
21947
21948 PR target/68380
21949 * configure.ac: NetBSD provides SSP in its C library.
21950 * configure: Updated.
21951
21952 2016-01-27 Richard Biener <rguenther@suse.de>
21953
21954 PR tree-optimization/69166
21955 * tree-vect-loop.c (vect_is_simple_reduction): Always check
21956 reduction code for commutativity / associativity.
21957
21958 2016-01-27 Martin Jambor <mjambor@suse.cz>
21959
21960 PR tree-optimization/69355
21961 * tree-sra.c (analyze_access_subtree): Correct hole detection when
21962 total_scalarization fails.
21963
21964 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
21965
21966 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
21967 power9.
21968
21969 2016-01-27 Christian Bruel <christian.bruel@st.com>
21970
21971 PR target/69245
21972 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
21973 Move arm_reset_previous_fndecl and set_target_option_current_node in
21974 the conditional part. Call save_restore_target_globals.
21975 * config/arm/arm.c (arm_set_current_function):
21976 Refactor to better support #pragma target and attribute mix.
21977 Call save_restore_target_globals.
21978 * config/arm/arm-protos.h (save_restore_target_globals): New function.
21979
21980 2016-01-27 Martin Liska <mliska@suse.cz>
21981
21982 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
21983 reference for an HSA kernel and its host function.
21984
21985 2016-01-27 Jakub Jelinek <jakub@redhat.com>
21986
21987 PR tree-optimization/69399
21988 * wide-int.h (wi::lrshift): For larger precisions, only
21989 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
21990
21991 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
21992
21993 * config/arc/predicates.md (proper_comparison_operator): Reject
21994 constant-constant comparison.
21995
21996 2016-01-26 Tom de Vries <tom@codesourcery.com>
21997
21998 PR tree-optimization/69110
21999 * tree-data-ref.c (initialize_data_dependence_relation): Handle
22000 DR_NUM_DIMENSIONS == 0.
22001
22002 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
22003 Sebastian Pop <s.pop@samsung.com>
22004
22005 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
22006 isl_ast_op_cond and isl_ast_op_select.
22007 (gcc_expression_from_isl_expr_op): Same.
22008
22009 2016-01-26 Jason Merrill <jason@redhat.com>
22010
22011 PR c++/68782
22012 * tree.c (recompute_constructor_flags): Split out from
22013 build_constructor.
22014 (verify_constructor_flags): New.
22015 * tree.h: Declare them.
22016
22017 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
22018
22019 PR rtl-optimization/69217
22020 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
22021 are no TYPE_FIELDS set for the record type.
22022
22023 2016-01-26 Jakub Jelinek <jakub@redhat.com>
22024
22025 PR target/68662
22026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
22027 toc_label_name unconditionally.
22028 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
22029 SYMBOL_REF string. Use toc_label_name instead of constructing
22030 LCTOC1.
22031 (rs6000_elf_declare_function_name): Use toc_label_name instead of
22032 constructing LCTOC1.
22033
22034 2016-01-26 Martin Sebor <msebor@redhat.com>
22035
22036 PR other/69477
22037 * doc/extend.texi (Common Type Attributes): Move text that talks about
22038 attribute packed from attribute aligned to the section discussing
22039 the former attribute for clarity.
22040
22041 2016-01-26 Richard Henderson <rth@redhat.com>
22042
22043 PR middle-end/60908
22044 * trans-mem.c (tm_region_init): Mark entry block as visited.
22045
22046 2016-01-26 David Malcolm <dmalcolm@redhat.com>
22047
22048 PR other/69006
22049 * diagnostic-show-locus.c (layout::print_source_line): Replace
22050 call to pp_newline with call to layout::print_newline.
22051 (layout::print_annotation_line): Likewise.
22052 (layout::move_to_column): Likewise.
22053 (layout::print_any_fixits): After printing any fixits, print a
22054 trailing newline, if necessary.
22055 (layout::print_newline): New method, resetting any colorization
22056 before a newline.
22057 (diagnostic_show_locus): Move the pp_newline to before the
22058 early bailout. Remove dummy block enclosing the layout instance.
22059 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22060 of pp_newline_and_flush with pp_flush.
22061 (diagnostic_append_note): Delete use of pp_newline.
22062 (diagnostic_append_note_at_rich_loc): Delete.
22063 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22064 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22065 when newline characters are added to the buffer.
22066
22067 2016-01-26 Michael Matz <matz@suse.de>
22068
22069 * configure.ac (ac_cv_std_swap_in_utility): New test.
22070 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22071 * configure: Regenerate.
22072 * config.in: Regenerate.
22073
22074 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
22075
22076 * config/arc/arc.md (cstoresi4): Force operand into register.
22077 (arcset<code>): Fix predicate.
22078 (arcsetltu): Likewise.
22079 (arcsetgeu): Likewise.
22080 (arcsethi): Likewise.
22081 (arcsetls): Likewise.
22082
22083 2016-01-26 Jakub Jelinek <jakub@redhat.com>
22084
22085 PR tree-optimization/69483
22086 * gimple-fold.c (canonicalize_constructor_val): Return NULL
22087 if base has error_mark_node type.
22088
22089 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
22090
22091 PR target/68620
22092 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22093 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22094 New helper macros.
22095 (vget_lane_f16): Handle big-endian.
22096 (vgetq_lane_f16): Likewise.
22097 (vset_lane_f16): Likewise.
22098 (vsetq_lane_f16): Likewise.
22099 * config/arm/iterators.md (VQXMOV): Add V8HF.
22100 (VDQ): Add V4HF and V8HF.
22101 (V_reg): Handle V4HF and V8HF.
22102 (Is_float_mode): Likewise.
22103 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22104 neon_vdup_nv8hf): New patterns.
22105 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22106 Use VD_LANE iterator.
22107 (neon_vld1_dup<mode>): Use VQ2 iterator.
22108
22109 2016-01-26 Nathan Sidwell <nathan@acm.org>
22110
22111 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22112 (set_oacc_fn_attrib): Add IS_KERNEL arg.
22113 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22114 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22115 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22116 (oacc_validate_dims): Add LEVEL arg, don't return level.
22117 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22118 oacc_validate_dims.
22119 (execute_oacc_device_lower): Adjust, add more dump output.
22120 * tree-ssa-loop.c (gate_oacc_kernels): Use
22121 oacc_fn_attrib_kernels_p.
22122 * tree-parloops.c (create_parallel_loop): Adjust
22123 set_oacc_fn_attrib call.
22124
22125 2016-01-26 Jakub Jelinek <jakub@redhat.com>
22126
22127 PR lto/69254
22128 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22129 (append_compiler_options): Handle -fcilkplus.
22130 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22131
22132 2016-01-26 Nick Clifton <nickc@redhat.com>
22133
22134 PR target/66655
22135 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22136 been marked as DECL_ONE_ONLY but we do not the means to make it
22137 so, then do not allow it to bind locally.
22138
22139 2016-01-26 Jakub Jelinek <jakub@redhat.com>
22140
22141 PR lto/69254
22142 * opts.h (parse_sanitizer_options): New prototype.
22143 * opts.c (sanitizer_opts): New array.
22144 (parse_sanitizer_options): New function.
22145 (common_handle_option): Use parse_sanitizer_options.
22146
22147 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
22148
22149 PR target/68986
22150 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22151 alignment adjustment to ...
22152 (ix86_update_stack_boundary): Here. Don't over-align stack for
22153 __tls_get_addr.
22154 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22155 if __tls_get_addr is called.
22156
22157 2016-01-26 Christian Bruel <christian.bruel@st.com>
22158
22159 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22160
22161 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
22162
22163 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22164
22165 2016-01-26 Richard Biener <rguenther@suse.de>
22166
22167 PR middle-end/69467
22168 * match.pd: Guard X * CST CMP 0 pattern with single_use.
22169
22170 2016-01-26 Richard Biener <rguenther@suse.de>
22171
22172 PR tree-optimization/69452
22173 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22174 (move_computations_dom_walker::before_dom_children): Rename
22175 to ...
22176 (move_computations_worker): This.
22177 (move_computations): Perform an RPO rather than a DOM walk.
22178
22179 2016-01-26 Jakub Jelinek <jakub@redhat.com>
22180
22181 PR target/69442
22182 * combine.c (combine_instructions): For REG_EQUAL note with
22183 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22184 to the underlying register.
22185 * doc/rtl.texi (REG_EQUAL): Document the behavior of
22186 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22187
22188 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
22189
22190 PR target/67896
22191 * config/aarch64/aarch64-builtins.c
22192 (aarch64_init_simd_builtin_types): Do not set structural
22193 equality to __Poly{8,16,64,128}_t types.
22194
22195 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
22196
22197 PR tree-optimization/69400
22198 * wide-int.cc (wi_pack): Take the precision as argument and
22199 perform canonicalization here rather than in the callers.
22200 Use the main loop to handle all full-width HWIs. Add a
22201 zero HWI if in_len isn't a full result.
22202 (wi::divmod_internal): Update accordingly.
22203 (wi::mul_internal): Likewise. Simplify.
22204
22205 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
22206 Sebastian Pop <s.pop@samsung.com>
22207
22208 * graphite-poly.c (apply_poly_transforms): Simplify.
22209 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22210 (print_isl_map): Same.
22211 (print_isl_union_map): Same.
22212 (print_isl_schedule): New.
22213 (debug_isl_schedule): New.
22214 * graphite-dependences.c (scop_get_reads): Do not call
22215 isl_union_map_add_map that is undocumented isl functionality.
22216 (scop_get_must_writes): Same.
22217 (scop_get_may_writes): Same.
22218 (scop_get_original_schedule): Remove.
22219 (scop_get_dependences): Do not call isl_union_map_compute_flow that
22220 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
22221 (compute_deps): Remove.
22222 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22223 (debug_schedule_ast): New.
22224 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22225 set_separate_option.
22226 (graphite_regenerate_ast_isl): Add dump.
22227 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22228 from scop->transformed_schedule.
22229 (graphite_regenerate_ast_isl): Add more dump.
22230 * graphite-optimize-isl.c (optimize_isl): Set
22231 scop->transformed_schedule. Check whether schedules are equal.
22232 (apply_poly_transforms): Move here.
22233 * graphite-poly.c (apply_poly_transforms): ... from here.
22234 (free_poly_bb): Static.
22235 (free_scop): Static.
22236 (pbb_number_of_iterations_at_time): Remove.
22237 (print_isl_ast): New.
22238 (debug_isl_ast): New.
22239 (debug_scop_pbb): New.
22240 * graphite-scop-detection.c (print_edge): Move.
22241 (print_sese): Move.
22242 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22243 (build_scop_scattering): Remove.
22244 (create_pw_aff_from_tree): Assert instead of bailing out.
22245 (add_condition_to_pbb): Remove unused code, do not fail.
22246 (add_conditions_to_domain): Same.
22247 (add_conditions_to_constraints): Remove.
22248 (build_scop_context): New.
22249 (add_iter_domain_dimension): New.
22250 (build_iteration_domains): Initialize pbb->iterators.
22251 Call add_conditions_to_domain.
22252 (nested_in): New.
22253 (loop_at): New.
22254 (index_outermost_in_loop): New.
22255 (index_pbb_in_loop): New.
22256 (outermost_pbb_in): New.
22257 (add_in_sequence): New.
22258 (add_outer_projection): New.
22259 (outer_projection_mupa): New.
22260 (add_loop_schedule): New.
22261 (build_schedule_pbb): New.
22262 (build_schedule_loop): New.
22263 (embed_in_surrounding_loops): New.
22264 (build_schedule_loop_nest): New.
22265 (build_original_schedule): New.
22266 (build_poly_scop): Call build_original_schedule.
22267 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22268 (free_poly_dr): Remove.
22269 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
22270 (free_poly_bb): Remove.
22271 (debug_loop_vec): Remove.
22272 (print_isl_ast): Declare.
22273 (debug_isl_ast): Declare.
22274 (scop_do_interchange): Remove.
22275 (scop_do_strip_mine): Remove.
22276 (scop_do_block): Remove.
22277 (flatten_all_loops): Remove.
22278 (optimize_isl): Remove.
22279 (pbb_number_of_iterations_at_time): Remove.
22280 (debug_scop_pbb): Declare.
22281 (print_schedule_ast): Declare.
22282 (debug_schedule_ast): Declare.
22283 (struct scop): Remove schedule. Add original_schedule,
22284 transformed_schedule.
22285 (free_gimple_poly_bb): Remove.
22286 (print_generated_program): Remove.
22287 (debug_generated_program): Remove.
22288 (unify_scattering_dimensions): Remove.
22289 * sese.c (print_edge): ... here.
22290 (print_sese): ... here.
22291 (debug_edge): ... here.
22292 (debug_sese): ... here.
22293 * sese.h (print_edge): Declare.
22294 (print_sese): Declare.
22295 (dump_edge): Declare.
22296 (dump_sese): Declare.
22297
22298 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
22299 Sebastian Pop <s.pop@samsung.com>
22300
22301 * Makefile.in: Set ISLVER in site.exp.
22302
22303 2016-01-25 Jakub Jelinek <jakub@redhat.com>
22304
22305 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22306 DECL_VALUE_EXPR of new_var even for the non-array case. Look
22307 through DECL_VALUE_EXPR for expansion.
22308
22309 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22310
22311 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22312 the frame info after reload completed.
22313
22314 2016-01-25 Jeff Law <law@redhat.com>
22315
22316 PR tree-optimization/69196
22317 PR tree-optimization/68398
22318 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22319 tree-ssa-threadupdate.c.
22320 (determine_bb_domination_status): Prototype
22321 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22322 (determine_bb_domination_status): No longer static.
22323 (valid_jump_thread_path): Remove code to detect characteristics
22324 of the jump thread path not associated with correctness.
22325 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22326 Correct test for thread path length. Count PHIs for real operands as
22327 statements that need to be copied. Do not count ASSERT_EXPRs.
22328 Look at all the blocks in the thread path. Compute and selectively
22329 filter thread paths based on threading through the latch, threading
22330 a multiway branch or crossing a multiway branch.
22331
22332 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22333
22334 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
22335 decl with __attribute__ ((unused)) annotation.
22336
22337 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
22338
22339 PR target/69421
22340 * tree-vect-stmts.c (vectorizable_condition): Check vectype
22341 of operands is compatible with a statement vectype.
22342
22343 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
22344
22345 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22346 improve wording for mixed storage order support.
22347
22348 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
22349
22350 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22351 (vcvt_u64_f64): Likewise.
22352 (vcvta_s64_f64): Likewise.
22353 (vcvta_u64_f64): Likewise.
22354 (vcvtm_s64_f64): Likewise.
22355 (vcvtm_u64_f64): Likewise.
22356 (vcvtn_s64_f64): Likewise.
22357 (vcvtn_u64_f64): Likewise.
22358 (vcvtp_s64_f64): Likewise.
22359 (vcvtp_u64_f64): Likewise.
22360
22361 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
22362
22363 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22364 (arc_init): Check validity mll64 option.
22365 (arc_save_restore): Use double load/store instruction.
22366 (arc_expand_movmem): Likewise.
22367 (arc_split_move): Don't split if we have double load/store
22368 instructions. Returns a boolean.
22369 (arc_process_double_reg_moves): Change function to return boolean
22370 instead of a sequence of instructions.
22371 (arc_dwarf_register_span): New function.
22372 * config/arc/arc-protos.h (arc_split_move): Change prototype.
22373 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22374 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22375 (*movdf_insn): Likewise.
22376 * config/arc/arc.opt (mll64): New option.
22377 * config/arc/predicates.md (even_register_operand): New predicate.
22378 * doc/invoke.texi (ARC Options): Add mll64 documentation.
22379
22380 2016-01-25 Richard Biener <rguenther@suse.de>
22381
22382 PR lto/69393
22383 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22384 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22385 DECL_NAMELESS.
22386 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22387
22388 2016-01-25 Richard Biener <rguenther@suse.de>
22389
22390 PR tree-optimization/69376
22391 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22392 flag.
22393 (VN_INFO_ANTI_RANGE_P): New inline.
22394 (VN_INFO_RANGE_TYPE): Likewise.
22395 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22396 SSA_NAME_ANTI_RANGE_P.
22397 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22398 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22399 Properly query VN_INFO_RANGE_TYPE.
22400
22401 2016-01-25 Nick Clifton <nickc@redhat.com>
22402
22403 PR target/66655
22404 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22405
22406 2016-01-23 Tom de Vries <tom@codesourcery.com>
22407
22408 PR tree-optimization/69426
22409 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22410 removed clobber.
22411
22412 2016-01-23 Jakub Jelinek <jakub@redhat.com>
22413
22414 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22415 "the the" with "the" in the comments.
22416 * ipa-devirt.c (build_type_inheritance_graph,
22417 update_type_inheritance_graph): Likewise.
22418 * tree.c (build_function_type_list_1): Likewise.
22419 * cfgloopmanip.c (scale_loop_profile): Likewise.
22420 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22421 * gimple-ssa-split-paths.c
22422 (find_block_to_duplicate_for_splitting_paths): Likewise.
22423 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22424 * expr.c (convert_move): Likewise.
22425 * var-tracking.c (vt_stack_adjustments): Likewise.
22426 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22427 * tree-vrp.c (test_for_singularity): Likewise.
22428
22429 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22430 directly instead of building a temporary tree.
22431
22432 PR bootstrap/69434
22433 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22434 remove <algorithm> include.
22435
22436 2016-01-22 Jakub Jelinek <jakub@redhat.com>
22437
22438 PR target/69432
22439 * config/i386/i386.c: Include dojump.h.
22440 (expand_small_movmem_or_setmem,
22441 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22442 fixes.
22443 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22444 if dynamic_check != -1.
22445
22446 2016-01-21 Jeff Law <law@redhat.com>
22447
22448 PR middle-end/69347
22449 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22450 record_temporary_equivalences. Rewritten to avoid unnecessary calls
22451 into dominated_by_p.
22452 (cprop_into_successor_phis): Avoid unnecessary tests.
22453
22454 2016-01-22 Richard Henderson <rth@redhat.com>
22455
22456 PR target/69416
22457 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22458 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22459
22460 2016-01-22 Michael Matz <matz@suse.de>
22461
22462 * system.h (string, algorithm): Include only conditionally.
22463 (new): Include always under C++.
22464 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22465 * final.c (toplevel): Ditto.
22466 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22467 * genconditions.c (write_header): Make gencondmd.c define
22468 INCLUDE_STRING.
22469 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22470
22471 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22472 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22473
22474 2016-01-22 Christian Bruel <christian.bruel@st.com>
22475
22476 PR target/68674
22477 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22478
22479 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22480
22481 PR target/69403
22482 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22483 define_insn_and_split. Ensure operands[1] and operands[0] do not
22484 get assigned the same register.
22485
22486 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22487
22488 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22489
22490 2016-01-22 Christian Bruel <christian.bruel@st.com>
22491
22492 * config/arm/arm-c.c (arm_pragma_target_parse):
22493 Remove warn_builtin_macro_redefined overwrite.
22494
22495 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
22496
22497 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22498 flag_non_call_exceptions compatibility.
22499
22500 2016-01-22 Jakub Jelinek <jakub@redhat.com>
22501
22502 PR debug/66668
22503 * dwarf2out.c (add_child_die_after): New function.
22504 (dwarf_qual_info_t): New type.
22505 (dwarf_qual_info): New variable.
22506 (qualified_die_p): New function.
22507 (modified_type_die): For -fdebug-types-section, ensure
22508 canonical order of qualifiers. Put qualified DIEs adjacent
22509 to the corresponding non-qualified type DIE and search there
22510 for existing qualified DIEs.
22511
22512 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
22513
22514 * doc/extend.texi (scalar_storage_order type attribute): Document
22515 restriction on type punning and aliasing, and remove future tense.
22516
22517 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
22518
22519 PR target/69252
22520 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22521 first stage.
22522
22523 2016-01-21 Jeff Law <law@redhat.com>
22524
22525 PR middle-end/69347
22526 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22527 useless call to record_temporary_equivalences.
22528 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22529 allocate 10 slots in the bb_path vector and let it grow as needed.
22530 (fsm_find_control_statement_thread_paths): Similarly for the next_path
22531 vector.
22532
22533 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
22534
22535 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22536 Detangle.
22537 * configure: Regenerate.
22538
22539 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
22540
22541 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22542 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22543
22544 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
22545
22546 PR middle-end/66178
22547 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22548 drop EXPAND_INITIALIZER.
22549 * rtl.h (contains_symbolic_reference_p): Declare.
22550 * rtlanal.c (contains_symbolic_reference_p): New function.
22551 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22552 a subtraction into a NOT if symbolic constants are involved.
22553
22554 2016-01-21 Anton Blanchard <anton@samba.org>
22555 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22556
22557 PR target/63354
22558 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22559 #define.
22560 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22561 function.
22562
22563 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
22564
22565 * config/microblaze/microblaze.c
22566 (get_branch_target): New.
22567 (insert_wic_for_ilb_runout): New.
22568 (insert_wic): New.
22569 (microblaze_machine_dependent_reorg): New.
22570 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22571 * config/microblaze/microblaze.md
22572 (UNSPEC_IPREFETCH): Define.
22573 (iprefetch): New pattern
22574 * config/microblaze/microblaze.opt
22575 (mxl-prefetch): New flag.
22576
22577 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
22578
22579 * config/microblaze/microblaze.h
22580 (FIXED_REGISTERS): Update in macro.
22581 (CALL_USED_REGISTERS): Update in macro.
22582
22583 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
22584
22585 PR rtl-optimization/68920
22586 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
22587 moves.
22588
22589 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
22590
22591 PR rtl-optimization/68990
22592 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
22593 pseudo instead of inheritance ones.
22594
22595 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22596 Nick Clifton <nickc@redhat.com>
22597
22598 PR target/69129
22599 PR target/69012
22600 * config/mips/mips.c (mips_compute_frame_info): Initialise
22601 args_size and hard_frame_pointer_offset fields of the frame
22602 structure before calling mips_global_pointer.
22603
22604 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
22605
22606 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
22607 label reference.
22608 * configure: Regenerate.
22609
22610 2016-01-21 Richard Biener <rguenther@suse.de>
22611
22612 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
22613
22614 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
22615
22616 * config/s390/s390.c (s390_asm_declare_function_size): Add code
22617 to actually emit the .size directive.
22618
22619 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
22620 Jakub Jelinek <jakub@redhat.com>
22621
22622 PR target/69187
22623 PR target/65624
22624 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22625 args array size by one to avoid buffer overflow.
22626
22627 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
22628
22629 * config/s390/s390.md (pool_section_start): Use switch_to_section
22630 to select proper read-only data section instead of hardcoding
22631 .rodata.
22632 (pool_section_end): Use switch_to_section to match the above.
22633
22634 2016-01-21 Richard Biener <rguenther@suse.de>
22635
22636 PR tree-optimization/69378
22637 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
22638 (set_ssa_val_to): Use it for dominance checks taking into
22639 account not executable edges.
22640
22641 2016-01-21 Jakub Jelinek <jakub@redhat.com>
22642
22643 PR c++/69355
22644 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
22645 for bitsize instead of GET_MODE_PRECISION (mode).
22646
22647 2016-01-20 Martin Sebor <msebor@redhat.com>
22648
22649 PR c/52291
22650 * extend.texi (__sync Builtins): Clarify the semantics of
22651 __sync_fetch_and_OP built-ins on pointers.
22652 (__atomic Builtins): Same.
22653
22654 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22655 Sebastian Pop <s.pop@samsung.com>
22656
22657 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
22658 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
22659 (is_valid_rename): Same.
22660 (translate_isl_ast_to_gimple::get_rename): Same.
22661 (translate_isl_ast_to_gimple::rename_all_uses): Same.
22662 (translate_isl_ast_to_gimple::rename_uses): Same.
22663 (get_new_name): Check for close_phi nodes.
22664 (copy_loop_phi_args): Use phi_node_kind.
22665 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
22666 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
22667
22668 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22669 Sebastian Pop <s.pop@samsung.com>
22670
22671 Revert commit r229783.
22672 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
22673 Remove use of parameter_rename_map.
22674 (copy_def): Remove.
22675 (copy_internal_parameters): Remove.
22676 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
22677 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
22678 (free_sese_info): Do not free parameter_rename_map.
22679 (set_rename): Do not use parameter_rename_map.
22680 (rename_uses): Update call to set_rename.
22681 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
22682 * sese.h (parameter_rename_map_t): Remove.
22683 (struct sese_info_t): Remove field parameter_rename_map.
22684
22685 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22686 Sebastian Pop <s.pop@samsung.com>
22687
22688 * graphite-isl-ast-to-gimple.c: Fix comment.
22689 * graphite-scop-detection.c (defined_in_loop_p): New.
22690 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
22691 names defined in loop.
22692
22693 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22694 Sebastian Pop <s.pop@samsung.com>
22695
22696 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
22697 Discard unstructured if-then-else regions.
22698
22699 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22700 Sebastian Pop <s.pop@samsung.com>
22701
22702 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
22703 (cleanup_loop_iter_dom): Remove.
22704 (build_loop_iteration_domains): Remove.
22705 (build_scop_context): Remove.
22706 (build_scop_iteration_domain): Remove.
22707 (add_loop_constraints): New.
22708 (build_iteration_domains): New.
22709 (build_poly_scop): Call build_iteration_domains.
22710
22711 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22712 Sebastian Pop <s.pop@samsung.com>
22713
22714 * graphite-scop-detection.c
22715 (scop_detection::harmful_loop_in_region): Free dom and loops.
22716 (scop_detection::loop_body_is_valid_scop): Free bbs.
22717
22718 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22719 Sebastian Pop <s.pop@samsung.com>
22720
22721 * graphite-scop-detection.c (record_loop_in_sese): New.
22722 (gather_bbs::before_dom_children): Call record_loop_in_sese.
22723 (build_scops): Remove call to build_sese_loop_nests.
22724 * sese.c (sese_record_loop): Remove.
22725 (build_sese_loop_nests): Remove.
22726 (new_sese_info): Remove region->loops.
22727 (free_sese_info): Same.
22728 * sese.h (sese_contains_loop): Same.
22729 (build_sese_loop_nests): Remove.
22730 (sese_contains_loop): Remove.
22731
22732 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22733 Sebastian Pop <s.pop@samsung.com>
22734
22735 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
22736 loop_is_valid_in_scop.
22737 (scop_detection::harmful_stmt_in_region): Renamed
22738 harmful_loop_in_region.
22739 Call loop_is_valid_in_scop.
22740
22741 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22742 Sebastian Pop <s.pop@samsung.com>
22743
22744 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
22745 isl_ast_node_mark.
22746
22747 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22748 Sebastian Pop <s.pop@samsung.com>
22749
22750 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
22751 * graphite.h (struct poly_bb): Remove field is_reduction.
22752 (PBB_IS_REDUCTION): Remove.
22753
22754 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22755 Sebastian Pop <s.pop@samsung.com>
22756
22757 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
22758 (add_pdr_constraints): Same.
22759 (scop_get_reads): Same.
22760 (scop_get_must_writes): Same.
22761 (scop_get_may_writes): Same.
22762 (scop_get_original_schedule): Same.
22763 (extend_schedule): Same.
22764 (apply_schedule_on_deps): Same.
22765 (carries_deps): Same.
22766 (compute_deps): Same.
22767 (scop_get_dependences): Same.
22768 * graphite-isl-ast-to-gimple.c
22769 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
22770 * graphite-optimize-isl.c (get_schedule_for_band): Same.
22771 (get_schedule_for_band_list): Same.
22772 (get_schedule_map): Same.
22773 (apply_schedule_map_to_scop): Same.
22774 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22775 (build_loop_iteration_domains): Same.
22776 (add_condition_to_pbb): Same.
22777 (add_param_constraints): Same.
22778 (pdr_add_memory_accesses): Same.
22779 (pdr_add_data_dimensions): Same.
22780
22781 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
22782
22783 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
22784 requirements.
22785
22786 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
22787
22788 * common.opt (feliminate-dwarf2-dups): Replace references to
22789 "DWARF 2" with just "DWARF".
22790 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
22791 * doc/extend.texi: Likewise.
22792 * doc/cpp.texi: Likewise.
22793 * doc/invoke.texi: Likewise.
22794 (Option Summary): Add -gdwarf to list of Debugging Options.
22795 (Debugging Options): Document -gdwarf.
22796 * doc/contrib.texi: Spell "DWARF" like that.
22797
22798 2016-01-21 Jakub Jelinek <jakub@redhat.com>
22799
22800 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
22801 warning. Fix up formatting.
22802
22803 PR middle-end/67653
22804 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
22805 attempt to mark memory input operand addressable and
22806 call prepare_gimple_addressable in that case. Don't adjust
22807 input_location for diagnostics, use error_at instead.
22808
22809 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
22810
22811 * config/rs6000/ppc-auxv.h: New file.
22812 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
22813 (cpu_is): Likewise.
22814 (cpu_supports): Likewise.
22815 * config/rs6000/rs6000.c: include "ppc-auxv.h".
22816 (cpu_is_info): New variable.
22817 (cpu_supports_info): Likewise.
22818 (tcb_verification_symbol): Likewise.
22819 (cpu_builtin_p): Likewise.
22820 (cpu_expand_builtin): New function.
22821 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
22822 (rs6000_init_builtins): Likewise.
22823 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
22824 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
22825 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
22826 * configure: Regenerate.
22827 * config.in: Likewise.
22828 * doc/extend.texi (PowerPC Built-in Functions): Document
22829 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
22830
22831 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
22832
22833 PR target/68609
22834 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
22835 domain check.
22836 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
22837 for V4SFmode.
22838
22839 2016-01-20 Richard Henderson <rth@redhat.com>
22840
22841 PR bootstrap/69343
22842 PR bootstrap/69339
22843 PR tree-opt/68964
22844 Revert:
22845 * tree.c (tm_define_builtin): New.
22846 (find_tm_vector_type): New.
22847 (build_tm_vector_builtins): New.
22848 (build_common_builtin_nodes): Call it.
22849
22850 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
22851
22852 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
22853 (arm_fp_ok): Likewise.
22854 (arm_fp): Likewise.
22855 (arm_crypto): Likewise.
22856
22857 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
22858 Richard Biener <rguenther@suse.de>
22859
22860 PR tree-optimization/69328
22861 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
22862 vectors have same number of elements.
22863 (vectorizable_condition): Fix masked version recognition.
22864
22865 2016-01-20 Richard Biener <rguenther@suse.de>
22866
22867 PR tree-optimization/69345
22868 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
22869 (VN_INFO_PTR_INFO): Likewise.
22870 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
22871 info when it is equal between non-dominating SSA names.
22872 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22873 Make sure to look at original SSA infos.
22874
22875 2016-01-20 Jeff Law <law@redhat.com>
22876
22877 PR target/25114
22878 * config/m68k/predicates.md (pow2_m1_operand): New predicate
22879 extracted from ...
22880 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
22881 (pc_or_label_operand): New predicate.
22882 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
22883 tests for small integers that are 2^n - 1.
22884
22885 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
22886
22887 * doc/invoke.texi (Options Summary): Add '.' after @xref.
22888
22889 2016-01-19 Jeff Law <law@redhat.com>
22890
22891 PR middle-end/69347
22892 * tree-ssa-threadbackwards.c
22893 (fsm_find_control_statement_thread_paths): Do not try to lookup
22894 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
22895
22896 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22897
22898 * doc/lto.texi: Remove text that says only Gold has linker plugin
22899 support.
22900
22901 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
22902
22903 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
22904 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
22905 the DIE accordingly.
22906 (modified_type_die): Add REVERSE parameter and pass it recursively,
22907 as well as to base_type_die. Adjust presence check accordingly.
22908 (base_type_for_mode): Adjust call to modified_type_die.
22909 (add_type_attribute): Add REVERSE parameter and pass it to
22910 modified_type_die.
22911 (generic_parameter_die): Adjust call to add_type_attribute.
22912 (add_scalar_info): Likewise.
22913 (add_subscript_info): Likewise.
22914 (gen_array_type_die): Likewise.
22915 (gen_descr_array_type_die): Likewise.
22916 (gen_entry_point_die): Likewise.
22917 (gen_enumeration_type_die): Likewise.
22918 (gen_formal_parameter_die): Likewise.
22919 (gen_subprogram_die): Likewise.
22920 (gen_variable_die ): Likewise.
22921 (gen_const_die): Likewise.
22922 (gen_field_die): Likewise.
22923 (gen_pointer_type_die): Likewise.
22924 (gen_reference_type_die): Likewise.
22925 (gen_ptr_to_mbr_type_die): Likewise.
22926 (gen_inheritance_die): Likewise.
22927 (gen_subroutine_type_die): Likewise.
22928 (gen_typedef_die): Likewise.
22929 (force_type_die): Adjust call to modified_type_die.
22930
22931 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
22932
22933 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
22934 flow throughout the file. Fix broken link to Objective-C 2.0
22935 documentation.
22936 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
22937 errors.
22938
22939 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22940
22941 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
22942
22943 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22944
22945 PR ipa/66223
22946 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
22947 (maybe_record_node): Record cxa_pure_virtual as the only possible
22948 target if there are not ohter candidates.
22949 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
22950
22951 2016-01-19 Richard Biener <rguenther@suse.de>
22952
22953 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
22954 (get_memory_order): Likewise.
22955
22956 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
22957
22958 * tree-vect-stmts.c (vectorizable_store): Check
22959 rhs vectype.
22960
22961 2016-01-19 David Malcolm <dmalcolm@redhat.com>
22962
22963 PR jit/68446
22964 * gcc.c (driver::decode_argv): Add call to
22965 init_opts_obstack before init_options_struct.
22966 * opts.c (init_opts_obstack): Remove idempotency.
22967 (init_options_struct): Replace call to init_opts_obstack
22968 with a gcc_assert to verify that it has already been called.
22969 * toplev.c (toplev::main): Add call to init_opts_obstack before
22970 calls to init_options_struct.
22971 (toplev::finalize): Move cleanup of opts_obstack next to
22972 cleanup of save_decoded_options, clearing the latter, and
22973 save_decoded_options_count.
22974
22975 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22976
22977 PR target/69135
22978 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
22979 attribute to unconditional. Remove %? from output template.
22980
22981 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22982 Jiong Wang <jiong.wang@arm.com>
22983
22984 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
22985 generated from different expand order.
22986
22987 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22988
22989 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22990 Add support for CCMP costing.
22991
22992 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22993
22994 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
22995 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
22996 (fccmpe<mode>): Likewise.
22997 (fcmp): Rename to fcmp and globalize pattern.
22998 (fcmpe): Likewise.
22999 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
23000 (aarch64_gen_ccmp_next): Add FP support.
23001
23002 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
23003
23004 * target.def (gen_ccmp_first): Update documentation.
23005 (gen_ccmp_next): Likewise.
23006 * doc/tm.texi (gen_ccmp_first): Update documentation.
23007 (gen_ccmp_next): Likewise.
23008 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
23009 expand_ccmp_expr_1. Improve comments.
23010 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
23011 (ccmp_ior<mode>): Remove pattern.
23012 (cmp<mode>): Remove expand.
23013 (cmp): Globalize pattern.
23014 (cstorecc4): Use cc_register.
23015 (mov<mode>cc): Remove ccmp_cc_register check.
23016 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
23017 Simplify after removal of CC_DNE/* modes.
23018 (aarch64_ccmp_mode_to_code): Remove.
23019 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
23020 In 'k' case use integer as condition.
23021 (aarch64_nzcv_codes): Remove inverted cases.
23022 (aarch64_code_to_ccmode): Remove.
23023 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
23024 comparison with CC register to be used in folowing CCMP/branch/CSEL.
23025 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
23026 pattern. Return the comparison with CC register. Invert conditions
23027 when bitcode is OR.
23028 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
23029 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
23030
23031 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23032
23033 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23034 instrumented_version.
23035
23036 2016-01-19 Richard Biener <rguenther@suse.de>
23037
23038 PR tree-optimization/69336
23039 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
23040 handled components with get_ref_base_and_extent.
23041 (equal_mem_array_ref_p): Adjust.
23042
23043 2016-01-19 Jakub Jelinek <jakub@redhat.com>
23044
23045 PR debug/65779
23046 * shrink-wrap.c: Include valtrack.h.
23047 (move_insn_for_shrink_wrap): Add DEBUG argument. If
23048 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
23049 in between insn and where it will be moved to. Call
23050 dead_debug_insert_temp.
23051 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
23052 first and dead_debug_local_finish at the end.
23053 For uses and defs bitmap, handle all regs in between REGNO and
23054 END_REGNO, not just the first one.
23055
23056 2016-01-19 Richard Biener <rguenther@suse.de>
23057
23058 PR tree-optimization/69352
23059 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23060 (equal_mem_array_ref_p): Constrain size and max size properly.
23061 Compare the reverse flag.
23062
23063 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
23064
23065 * ira.c (ira): Update regstat data if we deleted insns.
23066
23067 2016-01-19 Jakub Jelinek <jakub@redhat.com>
23068
23069 PR rtl-optimization/68955
23070 PR rtl-optimization/64557
23071 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23072 here. Fix up formatting.
23073 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23074
23075 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23076
23077 PR lto/69133
23078 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23079 assume that the node has body.
23080 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23081 check.
23082
23083 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23084
23085 * lto-streamer-out.c (lto_output): Do not stream instrumentation
23086 thunks.
23087
23088 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23089
23090 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23091 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23092
23093 2016-01-19 Martin Jambor <mjambor@suse.cz>
23094 Martin Liska <mliska@suse.cz>
23095 Michael Matz <matz@suse.de>
23096
23097 * Makefile.in (OBJS): Add new source files.
23098 (GTFILES): Add hsa.c.
23099 * common.opt (disable_hsa): New variable.
23100 (-Whsa): New warning.
23101 * config.in (ENABLE_HSA): New.
23102 * configure.ac: Treat hsa differently from other accelerators.
23103 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23104 $enable_offloading.
23105 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23106 * doc/install.texi (Configuration): Document --with-hsa-runtime,
23107 --with-hsa-runtime-include, --with-hsa-runtime-lib and
23108 --with-hsa-kmt-lib.
23109 * doc/invoke.texi (-Whsa): Document.
23110 (hsa-gen-debug-stores): Likewise.
23111 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23112 to invoke offload compiler for hsa acclerator.
23113 * opts.c (common_handle_option): Determine whether HSA offloading
23114 should be performed.
23115 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23116 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23117 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23118 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23119 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23120 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23121 GF_OMP_FOR_KIND_GRID_LOOP.
23122 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23123 (pp_gimple_stmt_1): Likewise.
23124 * gimple-walk.c (walk_gimple_stmt): Likewise.
23125 * gimple.c (gimple_build_omp_grid_body): New function.
23126 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23127 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23128 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23129 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23130 GF_OMP_TEAMS_GRID_PHONY.
23131 (gimple_statement_omp_single_layout): Updated comments.
23132 (gimple_build_omp_grid_body): New function.
23133 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23134 (gimple_omp_for_grid_phony): New function.
23135 (gimple_omp_for_set_grid_phony): Likewise.
23136 (gimple_omp_parallel_grid_phony): Likewise.
23137 (gimple_omp_parallel_set_grid_phony): Likewise.
23138 (gimple_omp_teams_grid_phony): Likewise.
23139 (gimple_omp_teams_set_grid_phony): Likewise.
23140 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23141 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23142 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23143 (BUILT_IN_GOMP_TARGET): Updated type.
23144 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23145 (adjust_for_condition): New function.
23146 (get_omp_for_step_from_incr): Likewise.
23147 (extract_omp_for_data): Moved parts to adjust_for_condition and
23148 get_omp_for_step_from_incr.
23149 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23150 (fixup_child_record_type): Bail out if receiver_decl is NULL.
23151 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23152 (scan_omp_parallel): Do not create child functions for phony
23153 constructs.
23154 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23155 (scan_omp_1_op): Checking assert we are not remapping to
23156 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
23157 (parallel_needs_hsa_kernel_p): New function.
23158 (expand_parallel_call): Register apprpriate parallel child
23159 functions as HSA kernels.
23160 (grid_launch_attributes_trees): New type.
23161 (grid_attr_trees): New variable.
23162 (grid_create_kernel_launch_attr_types): New function.
23163 (grid_insert_store_range_dim): Likewise.
23164 (grid_get_kernel_launch_attributes): Likewise.
23165 (get_target_argument_identifier_1): Likewise.
23166 (get_target_argument_identifier): Likewise.
23167 (get_target_argument_value): Likewise.
23168 (push_target_argument_according_to_value): Likewise.
23169 (get_target_arguments): Likewise.
23170 (expand_omp_target): Call get_target_arguments instead of looking
23171 up for teams and thread limit.
23172 (grid_expand_omp_for_loop): New function.
23173 (grid_arg_decl_map): New type.
23174 (grid_remap_kernel_arg_accesses): New function.
23175 (grid_expand_target_kernel_body): New function.
23176 (expand_omp): Call it.
23177 (lower_omp_for): Do not emit phony constructs.
23178 (lower_omp_taskreg): Do not emit phony constructs but create for them
23179 a temporary variable receiver_decl.
23180 (lower_omp_taskreg): Do not emit phony constructs.
23181 (lower_omp_teams): Likewise.
23182 (lower_omp_grid_body): New function.
23183 (lower_omp_1): Call it.
23184 (grid_reg_assignment_to_local_var_p): New function.
23185 (grid_seq_only_contains_local_assignments): Likewise.
23186 (grid_find_single_omp_among_assignments_1): Likewise.
23187 (grid_find_single_omp_among_assignments): Likewise.
23188 (grid_find_ungridifiable_statement): Likewise.
23189 (grid_target_follows_gridifiable_pattern): Likewise.
23190 (grid_remap_prebody_decls): Likewise.
23191 (grid_copy_leading_local_assignments): Likewise.
23192 (grid_process_kernel_body_copy): Likewise.
23193 (grid_attempt_target_gridification): Likewise.
23194 (grid_gridify_all_targets_stmt): Likewise.
23195 (grid_gridify_all_targets): Likewise.
23196 (execute_lower_omp): Call grid_gridify_all_targets.
23197 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23198 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23199 (tree_omp_clause): Added union field dimension.
23200 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23201 * tree.c (omp_clause_num_ops): Added number of arguments of
23202 OMP_CLAUSE__GRIDDIM_.
23203 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23204 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23205 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23206 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23207 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23208 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23209 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23210 * tree-pass.h (make_pass_gen_hsail): Declare.
23211 (make_pass_ipa_hsa): Likewise.
23212 * ipa-hsa.c: New file.
23213 * lto-section-in.c (lto_section_name): Add hsa section name.
23214 * lto-streamer.h (lto_section_type): Add hsa section.
23215 * timevar.def (TV_IPA_HSA): New.
23216 * hsa-brig-format.h: New file.
23217 * hsa-brig.c: New file.
23218 * hsa-dump.c: Likewise.
23219 * hsa-gen.c: Likewise.
23220 * hsa.c: Likewise.
23221 * hsa.h: Likewise.
23222 * toplev.c (compile_file): Call hsa_output_brig.
23223 * hsa-regalloc.c: New file.
23224
23225 2016-01-18 Jeff Law <law@redhat.com>
23226
23227 PR tree-optimization/69320
23228 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23229 ranged object, do nothing if the RHS constant is not [0..1].
23230 (optimize_stmt): Comparing a boolean ranged object against a
23231 constant outside [0..1] results in a compile-time constant.
23232
23233 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23234 test.
23235
23236 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
23237
23238 * doc/invoke.texi (Invoking GCC): Add new section to menu.
23239 (Option Summary): Update to reflect new section and moved options.
23240 (C++ Dialect Options): Move -fstats to new section.
23241 (Debugging Options): Move all dump, statistics, and other GCC
23242 developer options to new section. Rewrite section introduction
23243 and re-order remaining options to put the more basic ones first.
23244 (Optimization Options): Move -fira-verbose and -flto-report* to
23245 new section.
23246 (Developer Options): New section incorporating moved options.
23247 * doc/cppopts.texi (-dM): Update cross-reference.
23248
23249 2016-01-18 Richard Henderson <rth@redhat.com>
23250
23251 PR target/69176
23252 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23253 operands to pseudo only if CSE is expected. Split long immediate
23254 operands only after reload, and for the stack pointer.
23255 (*add<GPI>3_pluslong): Remove.
23256 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23257 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
23258 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23259 (*add<GPI>3 peepholes): New.
23260 (*add<GPI>3 splitters): New.
23261 * config/aarch64/constraints.md (Upl): New.
23262 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23263
23264 2016-01-18 Richard Biener <rguenther@suse.de>
23265
23266 PR tree-optimization/69297
23267 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23268 stmt at most once.
23269 (vect_bb_vectorization_profitable_p): Clear visited flag again.
23270
23271 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
23272
23273 PR middle-end/68542
23274 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23275 of mixind vector and scalar types.
23276 (fold_relational_const): Add handling of vector
23277 comparison with boolean result.
23278 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23279 comparison of vector operands with boolean result for EQ/NE only.
23280 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23281 (verify_gimple_cond): Likewise.
23282 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23283 valid type of VAL.
23284
23285 2016-01-18 Joseph Myers <joseph@codesourcery.com>
23286
23287 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23288 !TARGET_OCTEON.
23289
23290 2016-01-18 Richard Biener <rguenther@suse.de>
23291
23292 PR middle-end/69308
23293 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23294
23295 2016-01-18 Tom de Vries <tom@codesourcery.com>
23296
23297 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23298
23299 2016-01-18 Tom de Vries <tom@codesourcery.com>
23300
23301 * omp-low.c (set_oacc_fn_attrib): Make extern.
23302 * omp-low.h (set_oacc_fn_attrib): Declare.
23303 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23304 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23305 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23306 Add and handle function parameter oacc_kernels_p.
23307 (find_reduc_addr, get_omp_data_i_param): New function.
23308 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23309 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23310 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23311 Calculate dominance info. Skip loops that are not in a kernels region
23312 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
23313 (pass_parallelize_loops::execute): Call parallelize_loops with
23314 oacc_kernels_p argument.
23315 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23316 New member function.
23317 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23318 * passes.def: Add argument to pass_parallelize_loops instantation.
23319
23320 2016-01-18 Tom de Vries <tom@codesourcery.com>
23321
23322 * tree-parloops.c (pass_parallelize_loops::execute): Allow
23323 pass_parallelize_loops to be run outside the loop pipeline.
23324
23325 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
23326
23327 * tree-scalar-evolution.c (follow_copies_to_constant): New.
23328 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23329
23330 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
23331
23332 PR target/63679
23333 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23334 using get_ref_base_and_extent.
23335 (equal_mem_array_ref_p): New.
23336 (hashable_expr_equal_p): Add call to previous.
23337
23338 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
23339
23340 PR target/63679
23341 * tree-sra.c (disqualified_constants, constant_decl_p): New.
23342 (sra_initialize): Allocate disqualified_constants.
23343 (sra_deinitialize): Free disqualified_constants.
23344 (disqualify_candidate): Update disqualified_constants when appropriate.
23345 (create_access): Scan for constant-pool entries as we go along.
23346 (scalarizable_type_p): Add check against type_contains_placeholder_p.
23347 (maybe_add_sra_candidate): Allow constant-pool entries.
23348 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23349 (initialize_constant_pool_replacements): New.
23350 (sra_modify_assign): Avoid mangling assignments created by previous,
23351 and don't generate writes into constant pool.
23352 (sra_modify_function_body): Call initialize_constant_pool_replacements.
23353
23354 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23355
23356 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23357 andnot instruction.
23358 (scalar_chain::convert_op): Likewise.
23359 * config/i386/i386.md (*andndi3_doubleword): New.
23360
23361 2016-01-18 Richard Biener <rguenther@suse.de>
23362
23363 PR tree-optimization/69170
23364 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23365 building a vector from scalar results of a pattern stmt.
23366
23367 2016-01-18 Jakub Jelinek <jakub@redhat.com>
23368
23369 * haifa-sched.c (autopref_multipass_init): Work around
23370 -Wmaybe-uninitialized warning.
23371
23372 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
23373
23374 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23375 against the constant 0.
23376
23377 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23378
23379 PR tree-optimization/68799
23380 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23381 look up phi candidates in the statement-candidate map.
23382 (phi_add_costs): Likewise.
23383 (record_phi_increments): Likewise.
23384 (phi_incr_cost): Likewise.
23385 (ncd_with_phi): Likewise.
23386 (all_phi_incrs_profitable): Likewise.
23387
23388 2016-01-17 Jakub Jelinek <jakub@redhat.com>
23389
23390 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23391 -Wmaybe-uninitialized warning.
23392
23393 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
23394
23395 * doc/invoke.texi (Invoking GCC): Add new section to menu.
23396 (Option Summary): Update to reflect new section and moved options.
23397 (C++ Dialect Options): Move -fvtable-verify and related options.
23398 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23399 and profiling-related options.
23400 (Optimization Options): Move profile generation options and
23401 -fstack-protector and related options.
23402 (Instrumentation Options): New section incorporating moved options.
23403 (Code Generation Options): Move -finstrument-functions and
23404 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23405
23406 2016-01-16 Tom de Vries <tom@codesourcery.com>
23407
23408 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23409
23410 2016-01-16 Tom de Vries <tom@codesourcery.com>
23411
23412 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
23413
23414 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
23415
23416 * hash-table.h (hash_table::empty): Turn into an inline wrapper
23417 that checks whether the table is already empty. Rename the
23418 original implementation to...
23419 (hash_table::empty_slot): ...this new private function.
23420
23421 2016-01-15 David Malcolm <dmalcolm@redhat.com>
23422
23423 PR diagnostic/68899
23424 * diagnostic-show-locus.c (layout::print_source_line): Move x
23425 offset of line until after call to
23426 get_line_width_without_trailing_whitespace.
23427
23428 2016-01-15 Jeff Law <law@redhat.com>
23429
23430 PR tree-optimization/69270
23431 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23432 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
23433 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23434 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23435 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23436 ssa_name_has_boolean_range and constant_boolean_node.
23437
23438 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
23439
23440 PR rtl-optimization/69030
23441 * lra-spills.c (remove_pseudos): Check nrefs and make the function
23442 returning bool.
23443 (spill_pseudos): Delete debug insn for dead pseudo.
23444 (lra_spill): Initiate spill_hard_reg and slots memory separately.
23445
23446 2016-01-15 Jiong Wang <jiong.wang@arm.com>
23447
23448 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23449 New.
23450 (TYPES_UNOPUS): Likewise.
23451 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23452 builtin type, from UNOP to UNOPUS.
23453 (lbtruncuv4sf): Likewise.
23454 (lbtruncuv2df): Likewise.
23455 (lrounduv2sf): Likewise.
23456 (lrounduv4sf): Likewise.
23457 (lrounduv2df): Likewise.
23458 (lroundusf): Likewise.
23459 (lroundusf): Likewise.
23460 (lceiluv2sf): Likewise.
23461 (lceiluv4sf): Likewise.
23462 (lceiluv2df): Likewise.
23463 (lceilusf): Likewise.
23464 (lceiludf): Likewise.
23465 (lflooruv2sf): Likewise.
23466 (lflooruv4sf): Likewise.
23467 (lflooruv2df): Likewise.
23468 (lfloorusf): Likewise.
23469 (lfloorudf): Likewise.
23470 (lfrintnuv2sf): Likewise.
23471 (lfrintnuv4sf): Likewise.
23472 (lfrintnuv2df): Likewise.
23473 (lfrintnusf): Likewise.
23474 (lfrintnudf): Likewise.
23475 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23476 conversion.
23477 (vcvtq_u32_f32): Likewise.
23478 (vcvtq_u64_f64): Likewise.
23479 (vcvta_u32_f32): Likewise.
23480 (vcvtaq_u32_f32): Likewise.
23481 (vcvtaq_u64_f64): Likewise.
23482 (vcvtm_u32_f32): Likewise.
23483 (vcvtmq_u32_f32): Likewise.
23484 (vcvtmq_u64_f64): Likewise.
23485 (vcvtn_u32_f32): Likwise.
23486 (vcvtnq_u32_f32): Likewise.
23487 (vcvtnq_u64_f64): Likewise.
23488 (vcvtp_u32_f32): Likewise.
23489 (vcvtpq_u32_f32): Likewise.
23490 (vcvtpq_u64_f64): Likewise.
23491 (vcvtmd_u64_f64): Likewise.
23492 (vcvtms_u32_f32): Likewise.
23493 (vcvtad_u64_f64): Likewise.
23494 (vcvtas_u32_f32): Likewise.
23495 (vcvtnd_u64_f64): Likewise.
23496 (vcvtns_u32_f32): Likewise.
23497 (vcvtpd_u64_f64): Likewise.
23498 (vcvtps_u32_f32): Likewise.
23499
23500 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23501
23502 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23503 CSEL of zero_extended registers.
23504
23505 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23506
23507 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23508 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23509
23510 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23511
23512 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23513 false when argument string is not found in the attributes table
23514 at all.
23515
23516 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
23517
23518 PR target/68609
23519 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23520 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23521 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23522 precision estimate.
23523
23524 2016-01-15 Richard Biener <rguenther@suse.de>
23525
23526 PR tree-optimization/66856
23527 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23528 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23529 (vect_create_new_slp_node): Increment stmt reference count.
23530 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23531 an SLP tree before swapping operands.
23532 (vect_build_slp_tree): Likewise.
23533 (destroy_bb_vec_info): Free stmt info after SLP instances.
23534 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23535 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23536 (STMT_VINFO_NUM_SLP_USES): New macro.
23537
23538 2016-01-15 Richard Biener <rguenther@suse.de>
23539
23540 PR debug/69137
23541 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23542 (add_linkage_name): ... here.
23543 (gen_typedef_die): Use add_linkage_name_raw instead of
23544 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23545 if necessary.
23546
23547 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
23548
23549 * gimplify.c (oacc_default_clause): Decode reference and pointer
23550 types for both kernels and parallel regions.
23551
23552 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
23553
23554 PR middle-end/69246
23555 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23556
23557 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23558
23559 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23560 (convert_scalars_to_vector): Likewise.
23561
23562 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
23563
23564 * doc/extend.texi (Type Traits): Fix grammar.
23565
23566 2016-01-15 Martin Jambor <mjambor@suse.cz>
23567
23568 * tree-inline.c (remap_decl): Use existing dclarations if
23569 remapping a type and prevent_decl_creation_for_types.
23570 (replace_locals_stmt): Do an initial remapping of non-VLA typed
23571 decls first. Do real remapping with
23572 prevent_decl_creation_for_types set.
23573 * tree-inline.h (copy_body_data): New field
23574 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23575 padding.
23576
23577 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
23578
23579 * config/s390/s390.opt (mmvcle): More verbose help text.
23580
23581 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
23582
23583 * config/s390/s390.opt: Add period to -mzvector option text.
23584
23585 2016-01-15 Richard Biener <rguenther@suse.de>
23586
23587 PR tree-optimization/68961
23588 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
23589 of invariants in stores again.
23590
23591 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
23592
23593 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
23594
23595 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23596
23597 * config/i386/i386.c (ix86_expand_branch): Don't split
23598 DI mode xor instruction to SI mode.
23599
23600 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
23601
23602 PR ipa/68148
23603 * ipa-icf.c (sem_function::merge): Virtual functions may become
23604 reachable even if they address is not taken and there are no
23605 idrect calls.
23606
23607 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
23608
23609 * lto-streamer-out.c (subtract_estimated_size): New function.
23610 (get_symbol_initial_value): Use it.
23611
23612 2016-01-15 Christian Bruel <christian.bruel@st.com>
23613
23614 PR target/65837
23615 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
23616 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
23617 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
23618 use add_builtin_function_ext_scope instead of add_builtin_function.
23619 (neon_set_p, neon_crypto_set_p): Remove.
23620 (arm_init_builtins): Always call arm_init_neon_builtins and
23621 arm_init_crypto_builtins.
23622 (arm_expand_builtin): Check that builtins are allowed for the arch.
23623 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
23624 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
23625 arm_init_neon_builtins call.
23626
23627 2016-01-15 Richard Biener <rguenther@suse.de>
23628
23629 PR tree-optimization/69117
23630 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
23631 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
23632 of the leader conservatively.
23633 (free_scc_vn): Restore original SSA name infos.
23634
23635 2016-01-14 Jeff Law <law@redhat.com>
23636
23637 PR tree-optimization/69270
23638 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
23639 single bit of precision, verify it's also unsigned.
23640 (record_edge_info): Use constant_boolean_node rather than fold_convert
23641 to convert boolean_true/boolean_false to the right type.
23642
23643 2016-01-14 Richard Henderson <rth@redhat.com>
23644
23645 PR rtl-opt/69014
23646 * loop-doloop.c (record_reg_sets): New.
23647 (doloop_optimize): Reject the transform if the sequence
23648 clobbers registers live at the end of the loop block.
23649 (doloop_optimize_loops): Enable df_live if needed.
23650
23651 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23652
23653 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
23654 * config/rs6000/rs6000.c: Likewise.
23655 * config/rs6000/rs6000.h: Likewise.
23656 * config/rs6000/rs6000.md: Likewise.
23657 * doc/extend.texi: Likewsie.
23658
23659 2016-01-14 Jeff Law <law@redhat.com>
23660
23661 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
23662 typo.
23663
23664 2016-01-14 Richard Henderson <rth@redhat.com>
23665
23666 PR c/69272
23667 PR tree-opt/68964
23668 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
23669 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
23670 instead of builtin_decl_declared_p to test for declaration.
23671
23672 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
23673
23674 * doc/loop.texi (Loop Analysis and Representation): Document
23675 loop_depth function.
23676
23677 2016-01-14 Tom de Vries <tom@codesourcery.com>
23678
23679 PR tree-optimization/68773
23680 * omp-low.c (expand_omp_target): Don't set force_output.
23681 * varpool.c (varpool_node::get_create): Same.
23682 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
23683 offload_funcs with force_output.
23684
23685 2016-01-14 Jakub Jelinek <jakub@redhat.com>
23686
23687 PR debug/69244
23688 * lra-eliminations.c (move_plus_up): Don't change anything if either
23689 the outer or inner subreg mode is not MODE_INT.
23690 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
23691 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
23692
23693 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
23694
23695 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
23696 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
23697 reduc_uplus_@var{m}): Remove.
23698 * expr.c (expand_expr_real_2): Remove expansion path for
23699 reduc_[us](min|max|plus) optabs.
23700 * optabs-tree.c (scalar_reduc_to_vector): Remove.
23701 * optabs-tree.h (scalar_reduc_to_vector): Remove.
23702 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
23703 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
23704 * tree-vect-loop.c (vectorizable_reduction): Remove test for
23705 reduc_[us](min|max|plus) optabs.
23706
23707 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
23708
23709 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
23710 (reduc_plus_scal_v2sf): New.
23711 (reduc_smax_v2sf): Rename to...
23712 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
23713 (reduc_smin_v2sf): Rename to...
23714 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
23715
23716 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
23717
23718 * alias.c (compare_base_symbol_refs): New function.
23719 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
23720 it.
23721
23722 2016-01-14 Jakub Jelinek <jakub@redhat.com>
23723
23724 PR middle-end/68146
23725 PR tree-optimization/69155
23726 * tree-complex.c: Include cfganal.h.
23727 (phis_to_revisit): New variable.
23728 (extract_component): Add phiarg_p argument. Assert that returned
23729 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
23730 (update_phi_components): Partly rewrite to use loop over real/imag
23731 components instead of code duplication. If extract_component returns
23732 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
23733 create_tmp_reg into the PHI node instead, and mention the phi triplet
23734 in phis_to_revisit.
23735 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
23736 in phis_to_revisit at the end.
23737
23738 2016-01-14 Richard Biener <rguenther@suse.de>
23739
23740 PR tree-optimization/68060
23741 * tree-vect-loop.c (vect_is_simple_reduction): Check the
23742 outer loop reduction is only used in the inner loop before
23743 detecting a double reduction.
23744
23745 2016-01-14 Jakub Jelinek <jakub@redhat.com>
23746
23747 PR target/68269
23748 * combine.c (expand_field_assignment): Punt if compute_mode is
23749 unsupported scalar mode.
23750
23751 2016-01-14 Richard Biener <rguenther@suse.de>
23752
23753 PR tree-optimization/66856
23754 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
23755 SLP node only if it built successfully.
23756 (vect_analyze_slp_instance): Adjust.
23757
23758 2016-01-14 Jeff Law <law@redhat.com>
23759
23760 PR tree-optimization/69270
23761 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
23762 (record_edge_info): Use it. Convert boolean_{true,false}_node
23763 to the type of op0.
23764
23765 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
23766
23767 PR ipa/66487
23768 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
23769 use block_ultimate_origin
23770 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
23771
23772 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
23773
23774 * doc/invoke.texi (Submodel Options): Rename section to
23775 "Machine-Dependent Options" to better reflect its content.
23776 Rewrite introductory text to remove archaic CPU names.
23777 Update references.
23778
23779 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
23780
23781 * doc/invoke.texi (Code Gen Options): Move section up in file,
23782 before target-specific options. Update menu and option summary
23783 to reflect the new section ordering.
23784
23785 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
23786
23787 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
23788 (C++ Dialect Options): Add cross-reference to -std option.
23789 * doc/standards.texi (C++ Language): Document C++14 support.
23790
23791 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23792
23793 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
23794 for pack/unpack functions for __ibm128.
23795 (PACK_IF): Likewise.
23796 (UNPACK_IF): Likewise.
23797
23798 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23799 support for __ibm128 pack/unpack functions.
23800 (rs6000_invalid_builtin): Likewise.
23801 (rs6000_init_builtins): Likewise.
23802 (rs6000_opt_masks): Likewise.
23803
23804 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
23805 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
23806 functions
23807 (RS6000_BTM_COMMON): Likewise.
23808
23809 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
23810 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
23811 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
23812 128-bit floating point. Add support for the double values to be
23813 in Altivec registers for TF/IF packing and unpacking, but restrict
23814 TD packing sub-fields to be FPR registers. Don't allow overlapped
23815 register support for packing. Allow pack inputs to be memory
23816 locations. Don't build generator functions for unpack<mode>_dm
23817 and unpack<mode>_nodm.
23818 (unpack<mode>_dm): Likewise.
23819 (unpack<mode>_nodm): Likewise.
23820 (pack<mode>): Likewise.
23821
23822 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
23823 built-in functions to pack/unpack explicit __ibm128 values.
23824 (__builtin_unpack_ibm128): Likewise.
23825
23826 * doc/extend.texi (PowerPC Built-in Functions): Document
23827 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
23828
23829 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
23830
23831 PR c/66208
23832 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
23833 Add new arg loc and pass it down as context.
23834 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
23835 to the location to use for the warning.
23836 (check_function_arguments): New arg loc. All callers changed. Pass
23837 it to check_function_nonnull.
23838 * c-common.h (check_function_arguments): Adjust declaration.
23839
23840 2016-01-13 Jakub Jelinek <jakub@redhat.com>
23841
23842 PR tree-optimization/69156
23843 * gimple.c (validate_type): Removed.
23844 (gimple_builtin_call_types_compatible_p): Use
23845 useless_type_conversion_p instead of validate_type.
23846 * value-prof.c (gimple_stringop_fixed_value): Fold
23847 icall_size to correct type.
23848
23849 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
23850
23851 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
23852 effects.
23853
23854 2016-01-13 Richard Henderson <rth@redhat.com>
23855
23856 PR tree-opt/68964
23857 * target.def (builtin_tm_load, builtin_tm_store): Remove.
23858 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
23859 (ix86_builtin_tm_store): Remove.
23860 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23861 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23862 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23863 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23864 * doc/tm.texi: Rebuild.
23865
23866 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
23867 (BUILT_IN_TM_MEMCPY_RTWN): New.
23868 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
23869 fallback from vector to integer helpers.
23870 (build_tm_load): Handle vector types directly, instead of
23871 via target hook.
23872 (build_tm_store): Likewise.
23873 (expand_assign_tm): Prepare for register types not handled by
23874 the above. Copy them to memory and use memcpy.
23875 * tree.c (tm_define_builtin): New.
23876 (find_tm_vector_type): New.
23877 (build_tm_vector_builtins): New.
23878 (build_common_builtin_nodes): Call it.
23879
23880 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
23881
23882 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
23883 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
23884
23885 2016-01-13 Tom de Vries <tom@codesourcery.com>
23886
23887 PR tree-optimization/69169
23888 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
23889 handled_struct_type param.
23890 (create_variable_info_for, intra_create_variable_infos): Call
23891 create_variable_info_for_1 with extra arg.
23892
23893 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
23894
23895 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
23896 and "armv8.1-a+crc" entries.
23897
23898 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
23899
23900 PR target/69228
23901 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
23902 Change first operand predicate from register_or_constm1_operand
23903 to register_operand.
23904 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
23905 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
23906 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
23907 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
23908 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
23909 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
23910 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
23911 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
23912 comparison with constm1_rtx from vec_prefetch_gen part.
23913
23914 2016-01-13 Richard Biener <rguenther@suse.de>
23915
23916 PR tree-optimization/69013
23917 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
23918 Exchange assert for a test.
23919
23920 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23921
23922 PR target/69247
23923 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
23924
23925 2016-01-13 Richard Biener <rguenther@suse.de>
23926
23927 PR tree-optimization/69242
23928 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
23929 assert with a check.
23930
23931 2016-01-13 Richard Biener <rguenther@suse.de>
23932
23933 PR tree-optimization/69186
23934 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23935 Properly guard vect_update_misalignment_for_peel call.
23936
23937 2016-01-12 Jeff Law <law@redhat.com>
23938
23939 PR tree-optimization/pr67755
23940 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
23941 "need_profile_correction".
23942 (thread_block_1): Initialize new field to false by default. If we
23943 have multiple thread paths through a common joiner to different
23944 final targets, then set new field to true.
23945 (compute_path_counts): Only do count adjustment when it's really
23946 needed.
23947
23948 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
23949
23950 * doc/invoke.texi (Spec Files): Move section down in file, past
23951 all command-line option descriptions.
23952
23953 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23954
23955 PR middle-end/54809
23956 * doc/gty.texi: Remove documentation of mark_hook.
23957 * gengtype.c (struct write_types_data): Remove code to support
23958 mark_hook attribute.
23959 (walk_type): Likewise.
23960 (write_func_for_structure): Likewise.
23961
23962 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
23963
23964 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
23965 Directory Options, and -specs= to Overall Options.
23966 (Overall Options): Adjust similarly. Reorder to group related
23967 options together. Make -specs= cross-reference the spec file details.
23968 (Directory Options): Adjust similarly.
23969
23970 2016-01-12 Jeff Law <law@redhat.com>
23971
23972 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
23973
23974 2016-01-12 Olivier Hainque <hainque@adacore.com>
23975
23976 * gcc.c (spec_undefvar_allowed): New global.
23977 (process_command): Set to true when running for --version or --help,
23978 alone or together.
23979 (getenv_spec_function): When the variable is not defined, use the
23980 variable name as the variable value if we're allowed not to issue
23981 a fatal error.
23982
23983 2016-01-12 Bin Cheng <bin.cheng@arm.com>
23984
23985 PR tree-optimization/68911
23986 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
23987 information computed for expression "init + nit * step".
23988
23989 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
23990
23991 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
23992 about name of GCC executable. Remove deleted node from menu.
23993 (Directory Options) <-B>: Remove cross-reference to deleted node.
23994 (Target Options): Delete section.
23995
23996 2016-01-12 Christian Bruel <christian.bruel@st.com>
23997
23998 PR target/69180
23999 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
24000 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
24001
24002 2016-01-12 Jakub Jelinek <jakub@redhat.com>
24003
24004 PR target/69198
24005 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
24006 aligned_mem is properly set for AVX512-VL floating point masked
24007 stores.
24008
24009 PR target/69175
24010 * ifcvt.c (cond_exec_process_if_block): When removing the last
24011 insn from then_bb, remove also any possible barriers that follow it.
24012
24013 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
24014
24015 PR target/68456
24016 PR target/69226
24017 * config/i386/iamcu.h (SIZE_TYPE): New macro.
24018 (PTRDIFF_TYPE): Likewise.
24019 (WCHAR_TYPE): Likewise.
24020 (WCHAR_TYPE_SIZE): Likewise.
24021 (STDINT_LONG32): Likewise.
24022
24023 2016-01-12 Richard Biener <rguenther@suse.de>
24024
24025 PR tree-optimization/69053
24026 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
24027 convert initial value for cond reductions.
24028
24029 2016-01-12 Richard Biener <rguenther@suse.de>
24030
24031 PR tree-optimization/69007
24032 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
24033 widen_sum after dot_prod and sad.
24034
24035 2016-01-12 Richard Biener <rguenther@suse.de>
24036
24037 PR tree-optimization/69168
24038 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
24039 pattern stmt SLP type.
24040 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
24041 end up unused so cope with that case.
24042
24043 2016-01-12 Richard Biener <rguenther@suse.de>
24044
24045 PR tree-optimization/69157
24046 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
24047 stmts def type only during analyze phase.
24048 (vectorizable_call): Likewise.
24049 (vectorizable_simd_clone_call): Likewise.
24050 (vectorizable_conversion): Likewise.
24051 (vectorizable_assignment): Likewise.
24052 (vectorizable_shift): Likewise.
24053 (vectorizable_operation): Likewise.
24054 (vectorizable_store): Likewise.
24055 (vectorizable_load): Likewise.
24056
24057 2016-01-12 Richard Biener <rguenther@suse.de>
24058
24059 PR tree-optimization/69174
24060 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24061 space.
24062 (vectorizable_load): Properly compute the number of loads needed
24063 for permuted strided SLP loads and do not spuriously assign
24064 to SLP_TREE_VEC_STMTS.
24065
24066 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
24067
24068 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24069 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24070 (MD_EXEC_PREFIX): Remove.
24071 (MD_STARTFILE_PREFIX) Removee.
24072 (FILE_NAME_ABSOLUTE_P): Remove.
24073 (CPP_SPEC): Do not read macros from sys/version.h.
24074 (LINK_COMMAND_SPEC): Remove.
24075 (LOCAL_INCLUDE_DIR): Remove.
24076 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24077 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24078 (POST_LINK_SPEC): Define to invoke stubify after linker
24079 (LIBSTDCXX): Remove define
24080 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24081 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24082 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24083 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24084 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24085 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24086 (i386_djgpp_asm_named_section): Add propotype of new procedure
24087
24088 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24089 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24090 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24091 in config/i386/djgpp.h).
24092 (STANDARD_STARTFILE_PREFIX_2): Define identical to
24093 STANDARD_STARTFILE_PREFIX_1.
24094 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24095 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24096 installation errors.
24097 (MAX_OFILE_ALIGNMENT): Define to 128.
24098 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24099
24100 * config/i386/djgpp.c: New file. Add implementation of
24101 i386_djgpp_asm_named_section.
24102
24103 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24104
24105 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24106 Add rule for building djgpp.o.
24107
24108 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24109
24110 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24111 (rtx_is_swappable_p): Reductions are swappable.
24112 (insn_is_swappable_p): V2DF reductions are swappable.
24113
24114 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
24115
24116 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24117 reloads for other unsupported memory operands.
24118
24119 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
24120 Jim Wilson <jim.wilson@linaro.org>
24121
24122 PR target/69194
24123 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24124 copy_to_mode_reg instead of force_reg.
24125
24126 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
24127
24128 PR target/69225
24129 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24130 TARGET_80387 is true.
24131
24132 2016-01-11 Jakub Jelinek <jakub@redhat.com>
24133
24134 PR target/69071
24135 * lra-eliminations.c (move_plus_up): Only move plus up
24136 if subreg of the constant can be simplified into constant
24137 and use the simplified subreg of the constant instead of
24138 the original constant.
24139
24140 * fold-const.c (fold_convertible_p): Don't return true
24141 for conversion of VECTOR_TYPE to same sized integral type.
24142 (fold_convert_loc): Fix up formatting. Fold conversion of
24143 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24144 instead of NOP_EXPR.
24145
24146 PR tree-optimization/69214
24147 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24148 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24149 Formatting fix.
24150
24151 PR tree-optimization/69207
24152 * tree-vect-slp.c (vect_get_constant_vectors): For
24153 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24154 fold_convertible_p to vector_type's element type, and always
24155 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24156
24157 2016-01-11 Richard Biener <rguenther@suse.de>
24158
24159 PR tree-optimization/69173
24160 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24161 fixup the cycle if all stmts are in a pattern.
24162
24163 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
24164
24165 PR middle-end/68999
24166 * alias.c (base_alias_check): Move check for addresses with
24167 alignment ANDs before the call for compare_base_decls.
24168 (memrefs_conflict_p): Return -1 for different decls
24169 that went through alignment adjustments.
24170
24171 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24172
24173 PR rtl-optimization/68796
24174 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24175 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24176 and QImode comparisons against zero with CC_NZmode.
24177 * config/aarch64/iterators.md (short_mask): New mode_attr.
24178
24179 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
24180
24181 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24182 (<avx512>_store<mode>_mask): Likewise.
24183
24184 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
24185 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24186
24187 PR rtl-optimization/68841
24188 * ifcvt.c (struct noce_if_info): Add orig_x field.
24189 (bbs_ok_for_cmove_arith): Add to_rename parameter.
24190 Don't record conflicts on to_rename if it's present.
24191 Allow memory destinations in sets.
24192 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24193 blocks, passing orig_x to the checks.
24194 (noce_process_if_block): Set if_info->orig_x appropriately.
24195
24196 2016-01-11 Tom de Vries <tom@codesourcery.com>
24197
24198 PR tree-optimization/69069
24199 * tree-parloops.c (create_parallel_loop): Add missing phi args.
24200
24201 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
24202
24203 PR rtl-optimization/68920
24204 * config/i386/i386.c (ix86_option_override_internal): Restrict number
24205 of conditional moves for RTL if-conversion to 1 for
24206 TARGET_ONE_IF_CONV_INSN.
24207 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24208 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24209 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24210 parameter to restirct number of conditional moves for
24211 RTL if-conversion.
24212 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24213 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24214 conditionl moves.
24215
24216 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
24217
24218 PR bootstrap/69123
24219 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24220 onepart vars. Fix typo in comment. Fix reversed condition in
24221 unshare test.
24222 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24223
24224 PR bootstrap/69123
24225 * var-tracking.c (dump_onepart_variable_differences): New.
24226 (dataflow_set_different): If a detailed dump is requested,
24227 delay early returns and dump differences between onepart
24228 variables present before and after, and added variables.
24229
24230 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
24231
24232 PR target/69010
24233 * expr.c (expand_expr_real_1): For boolean vector constants
24234 with a scalar mode use const_scalar_mask_from_tree.
24235 (const_scalar_mask_from_tree): New.
24236 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24237 assigned to a mask type to handle constants.
24238
24239 2016-01-11 Martin Jambor <mjambor@suse.cz>
24240
24241 PR ipa/69044
24242 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24243 useless parameters if we cannot change function signature.
24244
24245 2016-01-11 Martin Jambor <mjambor@suse.cz>
24246
24247 PR ipa/66616
24248 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24249 flag.
24250
24251 2016-01-11 Tom de Vries <tom@codesourcery.com>
24252
24253 PR tree-optimization/69109
24254 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24255 latch with phi.
24256
24257 2016-01-11 Tom de Vries <tom@codesourcery.com>
24258
24259 PR tree-optimization/69108
24260 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24261 res is not used in a phi.
24262
24263 2016-01-11 Yury Gribov <y.gribov@samsung.com>
24264
24265 PR 67425
24266 * common.opt (frandom-seed): Fix parameter name.
24267 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24268
24269 2016-01-11 Tom de Vries <tom@codesourcery.com>
24270
24271 PR tree-optimization/69058
24272 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24273 not supported.
24274
24275 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
24276
24277 * config/arc/arc.opt (mdiv-rem): Add period to the end.
24278 (mcode-density): Likewise.
24279
24280 2016-01-10 Tom de Vries <tom@codesourcery.com>
24281
24282 PR tree-optimization/69062
24283 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24284 (parallelize_loops): Don't paralelize loop that has phi with address
24285 arg.
24286
24287 2016-01-10 Tom de Vries <tom@codesourcery.com>
24288
24289 PR tree-optimization/69039
24290 * tree-parloops.c (try_create_reduction_list): Only allow single exit
24291 phi for reduction.
24292
24293 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
24294
24295 PR middle-end/68743
24296 * match.pd: Require target has function_c99_misc before doing
24297 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24298
24299 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
24300
24301 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24302 use GMPINC.
24303 * configure: Regenerate.
24304
24305 2016-01-09 Jakub Jelinek <jakub@redhat.com>
24306
24307 PR middle-end/50865
24308 PR tree-optimization/69097
24309 * fold-const.h (expr_not_equal_to): New prototype.
24310 * fold-const.c: Include stringpool.h and tree-ssanames.h.
24311 (expr_not_equal_to): New function.
24312 * match.pd (X % -Y is the same as X % Y): Don't optimize
24313 unless X is known not to be equal to minimum or Y is known
24314 not to be equal to -1.
24315 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24316 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24317 (simplify_stmt_using_ranges): Adjust caller.
24318 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24319 substitute_and_fold.
24320
24321 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
24322
24323 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24324 w/o DECL_NAME.
24325
24326 2016-01-08 Jakub Jelinek <jakub@redhat.com>
24327
24328 PR tree-optimization/69167
24329 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24330 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24331 ops[0] comparison.
24332 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24333
24334 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
24335 Richard Biener <rguenther@suse.de>
24336
24337 PR tree-optimization/68707
24338 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24339 instances that can be handled via vect_load_lanes.
24340
24341 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
24342
24343 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24344 if we can't determine address equivalence.
24345 * alias.c (compare_base_decl): Update for changed return value of
24346 symtab_node::equal_address_to.
24347
24348 2016-01-08 Jason Merrill <jason@redhat.com>
24349
24350 PR c++/68983
24351 PR c++/67557
24352 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24353 * expr.c (store_field): Not here.
24354 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24355 call with TREE_ADDRESSABLE type.
24356 * tree-cfg.c (verify_gimple_call): Adjust.
24357
24358 2016-01-08 Olivier Hainque <hainque@adacore.com>
24359
24360 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24361 libc_internal.
24362
24363 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
24364
24365 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24366 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24367 (reduc_smin_v2sf): Rename to...
24368 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24369 (reduc_splus_v2sf): Rename to...
24370 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24371
24372 2016-01-08 Jakub Jelinek <jakub@redhat.com>
24373
24374 PR tree-optimization/69162
24375 * gimplify.c (gimplify_va_arg_expr): Encode original type of
24376 valist argument in another argument.
24377 (gimplify_modify_expr): Adjust for the above change. Cleanup.
24378 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24379 to determine the va_list type, build a MEM_REF instead of
24380 build_fold_indirect_ref.
24381
24382 PR tree-optimization/69172
24383 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24384 gimple_build.
24385
24386 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
24387
24388 PR tree-optimization/67781
24389 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24390 and cmpnop in two steps: first the ones not accessed in original
24391 gimple expression in a endian independent way and then the ones not
24392 accessed in the final result in an endian-specific way.
24393
24394 2016-01-08 Jakub Jelinek <jakub@redhat.com>
24395
24396 PR tree-optimization/69083
24397 * tree-vect-slp.c (vect_get_constant_vectors): For
24398 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24399 element type. If op is fold_convertible_p to vector_type's element
24400 type, use NOP_EXPR instead of VCE.
24401
24402 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
24403
24404 PR rtl-optimization/67778
24405 PR rtl-optimization/68634
24406 PR rtl-optimization/68909
24407 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
24408 block from the stack until done with it. Remove a superfluous
24409 bitmap set. Remove a superfluous bitmap test.
24410
24411 2016-01-07 Martin Sebor <msebor@redhat.com>
24412
24413 PR c/68966
24414 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24415 constraint on the type of arguments.
24416
24417 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
24418
24419 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24420 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24421 unaligned_access on the gcc_options set.
24422 * config/arm/arm.c (arm_option_override_internal): Use
24423 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24424
24425 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
24426
24427 PR target/69140
24428 * config/i386/i386.c (ix86_frame_pointer_required): Enable
24429 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24430
24431 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
24432
24433 Revert
24434 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
24435
24436 PR target/69140
24437 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24438 depending on frame_pointer_needed before remaining integer and SSE
24439 registers are saved.
24440
24441 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
24442
24443 PR 1078
24444 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24445
24446 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
24447
24448 PR target/69171
24449 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24450 Use the "xBm" constraint.
24451 (float<sseintvecmodelower><mode>2<mask_name><round_name):
24452 Likewise.
24453 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24454 (sse_cvtsi2ssq<round_name>): Likewise.
24455 (sse_cvtss2si<round_name>): Likewise.
24456 (sse_cvtss2siq<round_name>): Likewise.
24457 (sse2_cvtsi2sdq<round_name>): Likewise.
24458 (sse2_cvtsd2si<round_name>): Likewise.
24459 (sse2_cvtsd2siq<round_name>): Likewise.
24460 * config/i386/subst.md (round_nimm_scalar_predicate): New
24461 predicate.
24462
24463 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
24464
24465 PR middle-end/67639
24466 * varasm.c (make_decl_rtl): Mark invalid register vars as
24467 DECL_EXTERNAL.
24468
24469 PR rtl-optimization/66206
24470 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24471 All callers changed.
24472
24473 2016-01-07 Jakub Jelinek <jakub@redhat.com>
24474
24475 PR tree-optimization/69141
24476 * tree-ssa-pre.c: Include langhooks.h.
24477 (eliminate_dom_walker::before_dom_children): Use
24478 lang_hooks.decl_printable_name instead of
24479 cgraph_node::get ()->name ().
24480
24481 PR middle-end/68960
24482 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24483 it and DECL_ALIGN too.
24484
24485 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
24486
24487 * config/mips/mips-ftypes.def: Sort to lexicographical order.
24488
24489 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
24490
24491 PR target/69140
24492 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24493 depending on frame_pointer_needed before remaining integer and SSE
24494 registers are saved.
24495
24496 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24497
24498 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24499 mode iterator with VSX_M2.
24500 (*p9_vecstore_<mode>): Likewise.
24501 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24502 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24503 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24504 (define_split for VSX_LE128 stores): Likewise.
24505 (define_peephole2 for TImode LE swaps): Likewise.
24506 (define_split for VSX_LE128 post-reload stores): Likewise.
24507
24508 2016-01-06 Marek Polacek <polacek@redhat.com>
24509
24510 PR sanitizer/69099
24511 * convert.c (convert_to_integer_1): Adjust call to
24512 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
24513 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
24514 EXPR instead of ARG.
24515 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24516
24517 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
24518
24519 PR 1078
24520 * doc/extend.texi (RL78 Variable Attributes): New section.
24521
24522 2016-01-05 Marek Polacek <polacek@redhat.com>
24523
24524 PR c/69104
24525 * builtins.c (get_memmodel): Use expansion point location rather than
24526 the input location. Call warning_at rather than warning.
24527 (expand_builtin_atomic_compare_exchange): Likewise.
24528 (expand_builtin_atomic_load): Likewise.
24529 (expand_builtin_atomic_store): Likewise.
24530 (expand_builtin_atomic_clear): Likewise.
24531
24532 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
24533
24534 PR target/68991
24535 * config/i386/i386.c (ix86_expand_vector_logical_operator):
24536 Replace nonimmediate_operand with vector_operand.
24537 * config/i386/predicates.md (vector_operand): New predicate.
24538 (general_vector_operand): Replace nonimmediate_operand with
24539 vector_operand.
24540 * config/i386/sse.md: Replace nonimmediate_operand with
24541 vector_operand and m constraint with Bm constraint on SSE
24542 patterns with 16-byte memory operand.
24543 * config/i386/subst.md (round_nimm_predicate): Replace
24544 nonimmediate_operand with vector_operand.
24545 (round_saeonly_nimm_predicate): Likewise.
24546 (round_saeonly_nimm_scalar_predicate): New.
24547
24548 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
24549
24550 PR target/68991
24551 * config/i386/constraints.md (Bm): New constraint.
24552 * config/i386/predicates.md (vector_memory_operand): New
24553 predicate.
24554 * config/i386/sse.md: Replace xm with xBm in plusminus and
24555 any_logic patterns.
24556
24557 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
24558
24559 PR 1078
24560 * doc/extend.texi (V850 Function Attributes): New section.
24561 (V850 Variable Attributes): New section.
24562
24563 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
24564
24565 PR 1078
24566 * doc/extend.texi (MicroBlaze Function Attributes): Document
24567 interrupt_handler and fast_interrupt attributes.
24568
24569 2016-01-05 Sergei Trofimovich <siarheit@google.com>
24570
24571 PR other/60465
24572 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24573 for local symbolic operands.
24574 * config/ia64/predicates.md (local_symbolic_operand64): New
24575 predicate.
24576
24577 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24578
24579 PR rtl-optimization/68651
24580 * combine.c (combine_simplify_rtx): Canonicalize x + x into
24581 x << 1.
24582
24583 2016-01-05 Nathan Sidwell <nathan@acm.org>
24584
24585 * alias.c (compare_base_decls): Use symtab_node::get.
24586
24587 2016-01-05 Nick Clifton <nickc@redhat.com>
24588
24589 PR target/68770
24590 * ira-costs.c (copy_cost): Initialise the t_icode field of the
24591 secondary_reload_info structure.
24592
24593 PR target/66655
24594 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
24595 decls if weak support is available.
24596
24597 2016-01-04 Martin Sebor <msebor@redhat.com>
24598
24599 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
24600
24601 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
24602
24603 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
24604 OPTION_MASK_P9_DFORM.
24605
24606 * config/rs6000/constraints.md (wo constraint): New constraint for
24607 ISA 3.0 (power9).
24608
24609 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
24610 for wo constraint.
24611 (rs6000_init_hard_regno_mode_ok): Likewise.
24612
24613 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
24614 wo constraint.
24615
24616 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
24617 expanders not to have constraints. Add support for ISA 3.0 xxperm
24618 instruction. Add support for fusing xxlor with xxperm.
24619 (altivec_vperm_<mode>_internal): Likewise.
24620 (altivec_vperm_v8hiv16qi): Likewise.
24621 (altivec_vperm_<mode>v16q): Likewise.
24622 (altivec_vperm_<mode>_uns): Likewise.
24623 (vperm_v8hiv4si): Likewise.
24624 (vperm_v16qiv8hi): Likewise.
24625
24626 * doc/md.texi (RS/6000 constraints): Document wo constraint.
24627
24628 2016-01-04 Jakub Jelinek <jakub@redhat.com>
24629
24630 Update copyright years.
24631
24632 * gcc.c (process_command): Update copyright notice dates.
24633 * gcov-dump.c (print_version): Ditto.
24634 * gcov.c (print_version): Ditto.
24635 * gcov-tool.c (print_version): Ditto.
24636 * gengtype.c (create_file): Ditto.
24637 * doc/cpp.texi: Bump @copying's copyright year.
24638 * doc/cppinternals.texi: Ditto.
24639 * doc/gcc.texi: Ditto.
24640 * doc/gccint.texi: Ditto.
24641 * doc/gcov.texi: Ditto.
24642 * doc/install.texi: Ditto.
24643 * doc/invoke.texi: Ditto.
24644
24645 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
24646
24647 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
24648 modes larger than TImode as TImode if NEON is not enabled.
24649
24650 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
24651
24652 PR target/69100
24653 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
24654 mode for %f0-%f31 only if TARGET_FPU.
24655
24656 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
24657
24658 PR target/69072
24659 * config/sparc/sparc.c (scan_record_type): Take into account subfields
24660 to compute the PACKED_P predicate.
24661 (function_arg_record_value): Minor tweaks.
24662
24663 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24664
24665 * doc/install.texi (--with-multilib-list): Describe the meaning of the
24666 option for arm*-*-* targets.
24667
24668 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
24669
24670 * doc/extend.texi (Common Function Attributes): Move docs for
24671 MSP430-specific attributes to....
24672 (MSP430 Function Attributes): ...here. Delete the redundant
24673 entries and copy-edit the remaining text.
24674 (MSP430 Variable Attributes): Use uniform format for index
24675 entries and add a cross-reference to the corresponding function
24676 attribute docs.
24677
24678 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
24679
24680 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
24681 -finite-math typo.
24682 (x86 Options): Likewise.
24683
24684 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
24685
24686 PR 1078
24687
24688 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
24689 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
24690 to corresponding attribute.
24691
24692 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
24693
24694 * doc/extend.texi (Common Function Attributes) <noplt>: Move
24695 to correct alphabetization of table. Copy-edit and correct
24696 markup.
24697 <stack_protect>: Likewise.
24698 <target_clones>: Likewise.
24699 <simd>: Likewise.
24700 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
24701 Correct punctuation.
24702 (Code Gen Options) <-fno-plt>: Copy-edit.
24703
24704 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24705
24706 PR target/68917
24707 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
24708 SI values. Explicitly convert SI to DI and vice-versa.
24709
24710 2016-01-01 Jakub Jelinek <jakub@redhat.com>
24711
24712 PR tree-optimization/69070
24713 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
24714 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
24715
24716 PR sanitizer/69055
24717 * ubsan.c (ubsan_instrument_float_cast): Call
24718 initialize_sanitizer_builtins.
24719
24720 PR target/69015
24721 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
24722 \f
24723 Copyright (C) 2016 Free Software Foundation, Inc.
24724
24725 Copying and distribution of this file, with or without modification,
24726 are permitted in any medium without royalty provided the copyright
24727 notice and this notice are preserved.