tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
[gcc.git] / gcc / ChangeLog
1 2016-04-18 Michael Matz <matz@suse.de>
2
3 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
4 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
5 * tree-core.h (tree_type_common.align): Use bit-field.
6 (tree_type_common.spare): New.
7 (tree_decl_common.off_align): Make smaller.
8 (tree_decl_common.align): Use bit-field.
9
10 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
12 (scan_sharing_clauses): Ditto.
13 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14 (omp_finish_file): Ditto.
15 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
16 (layout_decl): Ditto.
17 (relayout_decl): Ditto.
18 (finalize_record_size): Use SET_TYPE_ALIGN.
19 (finalize_type_size): Ditto.
20 (finish_builtin_struct): Ditto.
21 (layout_type): Ditto.
22 (initialize_sizetypes): Ditto.
23 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
25 (lookup_field_for_decl): Use SET_DECL_ALIGN.
26 (get_chain_field): Ditto.
27 (get_trampoline_type): Ditto.
28 (get_nl_goto_field): Ditto.
29 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
30 SET_DECL_ALIGN.
31 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
32 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
33 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
34 (build_qualified_type): Use SET_TYPE_ALIGN.
35 (build_aligned_type, build_range_type_1): Ditto.
36 (build_atomic_base): Ditto.
37 (build_common_tree_nodes): Ditto.
38 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
39 (expand_one_stack_var_at): Ditto.
40 * coverage.c (build_var): Use SET_DECL_ALIGN.
41 * except.c (init_eh): Ditto.
42 * function.c (assign_parm_setup_block): Ditto.
43 * symtab.c (increase_alignment_1): Ditto.
44 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
45 * tree-vect-stmts.c (ensure_base_align): Ditto.
46 * varasm.c (align_variable): Ditto.
47 (assemble_variable): Ditto.
48 (build_constant_desc): Ditto.
49 (output_constant_def_contents): Ditto.
50
51 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
52 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
53 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
54 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
55 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
56
57 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
58
59 PR target/70708
60 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
61 replace %vmovsd with "%vmovq".
62 (vec_concatv2df): Likewise.
63
64 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
65
66 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
67 (*vec_extractv2si_0): Ditto.
68 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
69 (zero_extended_scalar_load_operand splitters): Ditto.
70 (vec_extract splitters): Ditto.
71 (*vec_extractv4si_0_zext): Ditto.
72 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
73 and lowpart_subreg.
74 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
75 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
76 (*sse4_1_extractps): Use lowpart_subreg.
77
78 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79
80 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
81 gld requirements.
82 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
83 Mention Solaris 11 packaging changes.
84 Update gas and gld requirements.
85 Remove reference to pre-Solaris 10 bug.
86 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
87 systems and bugs.
88 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
89 with cc.
90
91 2016-04-17 Jan Hubicka <jh@suse.cz>
92
93 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
94 max_loop_iterations_int.
95
96 2016-04-18 Richard Biener <rguenther@suse.de>
97
98 PR tree-optimization/43434
99 * tree-ssa-structalias.c (struct vls_data): New.
100 (visit_loadstore): Handle all pointer-based accesses.
101 (compute_dependence_clique): Compute a bitmap of restrict tags
102 assigned bases and pass it to visit_loadstore.
103
104 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
105
106 PR target/70711
107 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
108 armv8.1-a and armv8.1-a+crc.
109
110 2016-04-18 Richard Biener <rguenther@suse.de>
111
112 PR tree-optimization/70701
113 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
114 references after translating through a memcpy.
115
116 2016-04-18 Richard Biener <rguenther@suse.de>
117
118 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
119 (compute_antic): ... here. For partial antic use regular
120 postorder and scrap iteration.
121 (compute_partial_antic_aux): Remove unused return value.
122 (init_pre): Do not allocate postorder.
123 (fini_pre): Do not free postorder.
124
125 2016-04-18 Richard Biener <rguenther@suse.de>
126
127 PR middle-end/37870
128 * expmed.c (extract_bit_field_1): Remove broken case
129 using a wider MODE_INT mode.
130
131 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
132
133 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
134 unless compiling with at least GCC-4.8.
135
136 2016-04-17 Jan Hubicka <jh@suse.cz>
137
138 PR bootstrap/70706
139 * graphite.c (graphite_finalize): Update call to
140 tree_estimate_probability.
141 * predict.h (tree_estimate_probability): Update prototype.
142
143 2016-04-17 Jan Hubicka <jh@suse.cz>
144
145 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
146 (tree_estimate_probability): Likewise.
147 (pass_profile::execute): Update.
148 (report_predictor_hitrates): New function.
149 * profile.c (compute_branch_probabilities): Use it.
150 * predict.h (report_predictor_hitrates): Declare.
151
152 2016-04-17 Jan Hubicka <jh@suse.cz>
153
154 PR ipa/70018
155 * cgraph.h (cgraph_node::set_const_flag,
156 cgraph_node::set_pure_flag): Update prototype to return bool;
157 update comment.
158 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
159 of interposable symbol are interposable, too.
160 (cgraph_set_const_flag_1): Rename to ...
161 (set_const_flag_1): ... this one; change to self recursive function
162 instead of call_for_symbol_thunks_and_aliases. Handle correctly
163 clearnig the flag in all variants and also virtual thunks of const
164 functions are pure; track if any change was done.
165 (cgraph_node::set_const_flag): Update.
166 (struct set_pure_flag_info): New struct.
167 (cgraph_set_pure_flag_1): Rename to ...
168 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
169 rather than pointer encoded flags; track if any changes was done;
170 handle correctly clearning flag and setting flag of aliases already
171 declared const.
172 (cgraph_node::set_pure_flag): Update.
173 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
174
175 2016-04-17 Tom de Vries <tom@codesourcery.com>
176
177 PR other/70433
178 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
179 backslash in label.
180
181 2016-04-17 Tom de Vries <tom@codesourcery.com>
182
183 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
184 '{}<> ' as escape-for-record.
185
186 2016-04-17 Tom de Vries <tom@codesourcery.com>
187
188 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
189 structure.
190
191 2016-04-17 Tom de Vries <tom@codesourcery.com>
192
193 PR other/70185
194 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
195 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
196 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
197 * passes.c (finish_optimization_passes): Only call
198 finish_graph_dump_file if dfi->graph_dump_initialized.
199 (execute_function_dump, pass_init_dump_file): Use
200 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
201
202 2016-04-17 Tom de Vries <tom@codesourcery.com>
203
204 PR tree-optimization/70256
205 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
206 (debug_varmap): New function.
207
208 2016-04-17 Tom de Vries <tom@codesourcery.com>
209
210 PR other/70183
211 * passes.c (pass_manager::register_pass): Propagate pflags.
212
213 2016-04-17 Tom de Vries <tom@codesourcery.com>
214
215 PR other/68875
216 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
217 * passes.c (pass_manager::pass_manager): Declare and init p_start in
218 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
219 check if it's equal to p_start.
220 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
221
222 2016-04-15 Jan Hubicka <jh@suse.cz>
223
224 PR ipa/70018
225 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
226 function does not bind to current def.
227 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
228 handle conservatively calls to functions that does not need to bind
229 to current def.
230 (check_call): Update call of worse_state.
231 (ignore_edge_for_nothrow): Update.
232 (ignore_edge_for_pure_const): Likewise.
233 (propagate_pure_const): Update calls to worse_state.
234 (skip_function_for_local_pure_const): Reformat comments.
235
236 2016-04-15 Jan Hubicka <jh@suse.cz>
237
238 PR ipa/70018
239 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
240 (cgraph_node::function_symbol): Likewise.
241 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
242 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
243 (symtab_node::ultimate_alias_target): Add REF parameter.
244 (symtab_node::binds_to_current_def_p): Declare.
245 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
246 (cgraph_node::function_symbol): Likewise.
247 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
248 (cgraph_node::get_availability): Likewise.
249 (cgraph_edge::binds_to_current_def_p): New inline function.
250 (varpool_node::get_availability): Add REF parameter.
251 (varpool_node::ultimate_alias_target): Likewise.
252 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
253 (symtab_node::binds_to_current_def_p): Likewise.
254 * varpool.c (varpool_node::get_availability): Likewise.
255
256 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
257
258 PR target/70662
259 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
260 Fix mode size check.
261
262 2016-04-15 Jakub Jelinek <jakub@redhat.com>
263
264 * BASE-VER: Set to 7.0.0.
265
266 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
267
268 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
269
270 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
271
272 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
273 architecture revisions.
274
275 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
276
277 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
278 * config/i386/i386.c (ix86_using_red_zone): No longer static.
279 * config/i386/i386.md (stack decrement to push peepholes): Guard
280 with !x86_using_red_zone ().
281
282 2016-04-15 Jakub Jelinek <jakub@redhat.com>
283
284 PR c++/70675
285 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
286 to dump_generic_node.
287 (NIY): Pass also flags to do_niy.
288
289 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
290
291 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
292 (simd_clone_vector_of_formal_parm_types)
293 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
294 (simd_clone_mangle, simd_clone_create)
295 (simd_clone_adjust_return_type, create_tmp_simd_array)
296 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
297 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
298 (ipa_simd_modify_function_body, simd_clone_linear_addend)
299 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
300 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
301 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
302 * omp-simd-clone.c: ... this new file.
303 (simd_clone_vector_of_formal_parm_types): Make it static.
304 * Makefile.in (OBJS): Add omp-simd-clone.o.
305
306 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
307
308 PR target/70662
309 * config/i386/sse.md: Use proper memory operand modifiers.
310
311
312 2016-04-15 Richard Biener <rguenther@suse.de>
313 Alan Modra <amodra@gmail.com>
314
315 PR tree-optimization/70130
316 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
317 when alignment stays not the same and no not use the realign
318 scheme then.
319
320 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
321
322 PR target/70669
323 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
324 direct move handlers for KFmode. Change TFmode handlers test from
325 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
326
327 2016-04-14 Jakub Jelinek <jakub@redhat.com>
328
329 PR c++/70594
330 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
331 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
332 (inlined_polymorphic_ctor_dtor_block_p): Use it.
333 * tree-ssa-live.c (remove_unused_scope_block_p): When
334 in_ctor_dtor_block, avoid discarding not just BLOCKs with
335 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
336 block_ultimate_origin is FUNCTION_DECL.
337 (remove_unused_locals): If current_function_decl is
338 polymorphic_ctor_dtor_p, pass initial true to
339 remove_unused_scope_block_p' is_ctor_dtor_block.
340
341 2016-04-14 Martin Sebor <msebor@redhat.com>
342
343 PR c++/69517
344 PR c++/70019
345 PR c++/70588
346 * doc/extend.texi (Variable Length): Revert.
347
348 2016-04-14 Marek Polacek <polacek@redhat.com>
349 Jan Hubicka <hubicka@ucw.cz>
350
351 PR c++/70029
352 * tree.c (verify_type): Disable the canonical type of main variant
353 check.
354
355 2016-04-14 Jason Merrill <jason@redhat.com>
356
357 * cfgexpand.c, expr.c: Revert previous change.
358
359 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
360
361 PR middle-end/70643
362 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
363 when building a mem ref for the incoming reduction variable.
364
365 2016-04-14 Richard Biener <rguenther@suse.de>
366
367 PR tree-optimization/70614
368 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
369 loop if the evolution dropped to chrec_dont_know.
370 (interpret_condition_phi): Likewise.
371
372 2016-04-14 Richard Biener <rguenther@suse.de>
373
374 PR tree-optimization/70623
375 * tree-ssa-pre.c (changed_blocks): Make global ...
376 (compute_antic): ... local here. Move and fix worklist
377 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
378 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
379 worklist handling, dump when ANTIC_IN changed.
380 (compute_partial_antic_aux): Remove worklist handling.
381 (init_pre): Do not compute post dominators. Add a comment about
382 the CFG order chosen.
383 (fini_pre): Do not free post dominators.
384
385 2016-04-13 Martin Sebor <msebor@redhat.com>
386
387 PR c++/69517
388 PR c++/70019
389 PR c++/70588
390 * doc/extend.texi (Variable Length): Document C++ specifics.
391
392 2016-04-13 Jakub Jelinek <jakub@redhat.com>
393
394 PR c++/70641
395 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
396 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
397 eh edges have been purged.
398
399 PR c++/70594
400 * tree-sra.c (create_access_replacement,
401 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
402 gets fancy name.
403 * tree-pretty-print.c (dump_fancy_name): New function.
404 (dump_decl_name, dump_generic_node): Use it.
405
406 2016-04-13 Jason Merrill <jason@redhat.com>
407
408 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
409 * expr.c (expand_expr_real_1): Likewise.
410
411 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
412
413 * config/i386/i386.md (kunpckhi): Swap operands.
414 (kunpcksi): Likewise.
415 (kunpckdi): Likewise.
416 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
417 (vec_pack_trunc_<mode>): Likewise.
418
419 2016-04-13 Jakub Jelinek <jakub@redhat.com>
420
421 PR debug/70628
422 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
423
424 PR middle-end/70633
425 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
426 gimplification turns some element into non-constant.
427
428 PR debug/70628
429 * rtl.h (convert_memory_address_addr_space_1): New prototype.
430 * explow.c (convert_memory_address_addr_space_1): No longer static,
431 add NO_EMIT argument and don't call convert_modes if true, pass
432 it down recursively, remove break after return.
433 (convert_memory_address_addr_space): Adjust caller.
434 * simplify-rtx.c (simplify_unary_operation_1): Call
435 convert_memory_address_addr_space_1 instead of convert_memory_address,
436 if it returns NULL, don't simplify.
437
438 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
439
440 PR target/70630
441 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
442
443 2016-04-12 Jakub Jelinek <jakub@redhat.com>
444
445 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
446 Bump the upper SIMDLEN limits, so that if the return type or
447 characteristic type if the return type is void can be passed in
448 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
449 allowed.
450
451 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
452
453 PR target/70640
454 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
455 Do not use "=" constraint on an input constraint.
456 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
457 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
458 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
459 generates (neg (abs ...)) instead of (abs ...).
460
461 2016-04-12 Jakub Jelinek <jakub@redhat.com>
462
463 PR rtl-optimization/70596
464 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
465 just invalidate LRA data and reset them. Adjust dump wording.
466
467 2016-04-12 Martin Liska <mliska@suse.cz>
468
469 Revert
470 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
471
472 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
473 estimates here.
474 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
475 max_loop_iterations_int.
476 (tree_unswitch_outer_loop): Likewise.
477 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
478 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
479
480 2016-04-12 Tom de Vries <tom@codesourcery.com>
481
482 PR tree-optimization/68756
483 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
484 instead of new_name.
485
486 2016-04-12 Jakub Jelinek <jakub@redhat.com>
487
488 PR tree-optimization/70602
489 * tree-sra.c (generate_subtree_copies): Don't write anything into
490 constant pool decls.
491
492 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
493 regardless whether there are depend clauses or not.
494
495 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
496
497 PR target/70381
498 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
499 target attribute and pragma from changing the -mfloat128
500 and -mfloat128-hardware options.
501
502 * doc/extend.texi (Additional Floating Types): Document PowerPC
503 __float128 restrictions.
504
505 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
506
507 PR target/70133
508 * config/aarch64/driver-aarch64.c
509 (aarch64_get_extension_string_for_isa_flags): New.
510 (arch_extension): Rename to...
511 (aarch64_arch_extension): ...This.
512 (ext_to_feat_string): Rename to...
513 (aarch64_extensions): ...This.
514 (aarch64_core_data): Keep track of architecture extension flags.
515 (cpu_data): Rename to...
516 (aarch64_cpu_data): ...This.
517 (aarch64_arch_driver_info): Keep track of architecture extension
518 flags.
519 (get_arch_name_from_id): Rename to...
520 (get_arch_from_id): ...This, change return type.
521 (host_detect_local_cpu): Update and reformat for renames, handle
522 extensions through common infrastructure.
523
524 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
525
526 PR target/70133
527 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
528 track of a canonical flag name.
529 (all_extensions): Likewise.
530 (arch_to_arch_name): Also track extension flags enabled by the arch.
531 (all_architectures): Likewise.
532 (aarch64_parse_extension): Move to here.
533 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
534 rework.
535 (aarch64_rewrite_selected_cpu): Update for above change.
536 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
537 are handled, such that the single explicit value enabled by an
538 extension is kept seperate from the implicit values it also enables.
539 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
540 to here.
541 (aarch64_parse_extension): New.
542 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
543 here to config/aarch64/aarch64-protos.h.
544 (aarch64_parse_extension): Move from here to
545 common/config/aarch64/aarch64-common.c.
546 (aarch64_option_print): Update.
547 (aarch64_declare_function_name): Likewise.
548 (aarch64_start_file): Likewise.
549 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
550 the canonical flag for extensions.
551 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
552 flags.
553
554 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
555
556 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
557 AARCH64_FL_CRC.
558
559 2016-04-09 Tom de Vries <tom@codesourcery.com>
560
561 PR tree-optimization/68953
562 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
563 first to last subscript.
564
565 2016-04-09 Jakub Jelinek <jakub@redhat.com>
566
567 PR tree-optimization/70586
568 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
569 for any calls.
570
571 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
572
573 PR lto/70289
574 PR ipa/70348
575 PR tree-optimization/70373
576 PR middle-end/70533
577 PR middle-end/70534
578 PR middle-end/70535
579 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
580 clauses for acc parallel reductions as necessary. Error on those
581 that are private.
582 * omp-low.c (scan_sharing_clauses): Don't install variables which
583 are used in acc parallel reductions.
584 (lower_rec_input_clauses): Remove dead code.
585 (lower_oacc_reductions): Add support for reference reductions.
586 (lower_reduction_clauses): Remove dead code.
587 (lower_omp_target): Don't remap variables appearing in acc parallel
588 reductions.
589 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
590
591 2016-04-08 Jakub Jelinek <jakub@redhat.com>
592
593 PR middle-end/70593
594 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
595 with multiple SSA_NAME defs, force the outputs other than first
596 to be live before calling live_track_process_def on each output.
597
598 PR rtl-optimization/70574
599 * fwprop.c (forward_propagate_and_simplify): Don't add
600 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
601 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
602 paradoxical subregs within *loc.
603
604 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
605
606 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
607 -ftree-parallelize-loops={0,1}.
608 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
609 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
610 * config/ia64/hpux.h (LIB_SPEC): Likewise.
611 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
612 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
613
614 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
615
616 PR sanitizer/70541
617 * asan.c (instrument_derefs): If we get unknown location, extract it
618 with EXPR_LOCATION.
619 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
620
621 2016-04-08 Tom de Vries <tom@codesourcery.com>
622
623 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
624 implicit firstprivate clause.
625
626 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
627
628 PR target/70566
629 * config/arm/thumb2.md (tst + branch-> lsls + branch
630 peephole below *orsi_not_shiftsi_si): Require that condition
631 register is dead after the peephole.
632 (second peephole after the above): Likewise.
633
634 2016-04-08 Alan Modra <amodra@gmail.com>
635
636 PR target/70117
637 * builtins.c (fold_builtin_classify): For IBM extended precision,
638 look at just the high-order double to test for NaN.
639 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
640 test just the high double for Inf but both doubles for subnormal
641 limit.
642
643 2016-04-07 Jakub Jelinek <jakub@redhat.com>
644
645 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
646 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
647 node->simdclone->mask_mode != VOIDmode masks.
648 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
649 earlier, use it instead of node->simdclone.
650 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
651 Set clonei->mask_mode.
652
653 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
654
655 PR c/70436
656 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
657 Pass it through to cp_parser_already_scoped_statement.
658 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
659 it through to cp_parser_statement.
660 (cp_parser_statement): Pass IF_P through to
661 cp_parser_iteration_statement.
662 (cp_parser_pragma): Adjust call to
663 cp_parser_iteration_statement.
664
665 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
666
667 PR c/70436
668 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
669 resolve a future -Wparentheses warning.
670 * omp-low.c (scan_sharing_clauses): Likewise.
671 * tree-parloops.c (eliminate_local_variables): Likewise.
672
673 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
674
675 PR rtl-optimization/70398
676 * lra-constraints.c (process_address_1): Check zero scale and code
677 for reloading with zero scale.
678
679 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
680
681 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
682 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
683
684 2016-04-06 Jakub Jelinek <jakub@redhat.com>
685
686 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
687 Add support for AVX512F clones, include them by default for
688 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
689 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
690 up to 128.
691
692 PR middle-end/70550
693 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
694 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
695 firstprivate clauses.
696 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
697 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
698 (lower_omp_target): Set TREE_NO_WARNING for
699 non-addressable possibly uninitialized vars which are copied into
700 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
701
702 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
703
704 * config/pa/predicates.md (integer_store_memory_operand): Accept
705 REG+D operands with a large offset when reload_in_progress is true.
706 (floating_point_store_memory_operand): Likewise.
707
708 2016-04-05 Jakub Jelinek <jakub@redhat.com>
709
710 PR c++/70336
711 * match.pd (nested int casts): Limit to GIMPLE.
712
713 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
714
715 PR ipa/66223
716 * ipa-devirt.c (maybe_record_node): Fix comment; use
717 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
718
719 2016-04-05 Jakub Jelinek <jakub@redhat.com>
720
721 PR rtl-optimization/70542
722 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
723 if there are any uses other than insn or debug insns.
724
725 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
726 Jakub Jelinek <jakub@redhat.com>
727
728 PR tree-optimization/70509
729 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
730 Shift HOST_WIDE_INT_1U instead of 1.
731
732 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
733
734 PR tree-optimization/70509
735 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
736 of the vector base type for index.
737
738 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
739
740 PR target/70510
741 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
742
743 2016-04-05 Richard Biener <rguenther@suse.de>
744
745 PR tree-optimization/70526
746 * tree-sra.c (build_ref_for_offset): Use prev_base to
747 extract the alias pointer type.
748
749 2016-04-05 Richard Biener <rguenther@suse.de>
750
751 * dse.c (struct store_info): Remove alias_set member.
752 (struct read_info_type): Likewise.
753 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
754 spill_deleted, clear_alias_set_lookup): Remove.
755 (get_group_info): Remove dead base == NULL_RTX case.
756 (dse_step0): Remove initialization of removed variables.
757 (delete_dead_store_insn): Reomve alias set dumping.
758 (free_read_records): Remove alias_set handling.
759 (canon_address): Remove alias_set_out parameter.
760 (record_store): Remove spill_alias_set, it's always zero.
761 (check_mem_read_rtx): Likewise.
762 (dse_step2): Rename from ...
763 (dse_step2_nospill): ... this. Adjust.
764 (scan_stores): Rename from ...
765 (scan_stores_nospill): ... this.
766 (scan_reads): Rename from ...
767 (scan_reads_nospill): ... this.
768 (scan_stores_spill, scan_reads_spill): Remove.
769 (dse_step3_scan): Remove for_spills argument which is always false.
770 (dse_step3): Likewise.
771 (dse_step5): Rename from ...
772 (dse_step5_nospill): ... this. Remove alias_set handling.
773 (rest_of_handle_dse): Adjust.
774
775 2016-04-05 Jakub Jelinek <jakub@redhat.com>
776
777 PR target/70525
778 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
779 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
780 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
781 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
782
783 2016-04-05 Richard Biener <rguenther@suse.de>
784
785 PR middle-end/70499
786 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
787 non-register type temporaries into SSA.
788
789 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
790
791 PR ipa/66223
792 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
793 calls when sanitizing.
794 (possible_polymorphic_call_target_p): Fix formatting.
795
796 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
797 Jakub Jelinek <jakub@redhat.com>
798
799 PR middle-end/70457
800 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
801 to ensure a call statement is compatible with a built-in's
802 prototype.
803 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
804 Likewise.
805
806 2016-04-04 Richard Biener <rguenther@suse.de>
807
808 PR rtl-optimization/70484
809 * rtl.h (canon_output_dependence): Declare.
810 * alias.c (canon_output_dependence): New function.
811 * dse.c (record_store): Use canon_output_dependence rather
812 than canon_true_dependence.
813
814 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
815
816 PR ipa/68881
817 * cgraph.h (symtab_node::copy_visibility_from): New function.
818 * symtab.c (symtab_node::copy_visibility_from): New function.
819 * ipa-visibility.c (optimize_weakref): New function.
820 (function_and_variable_visibility): Use it.
821
822 2016-04-04 Martin Liska <mliska@suse.cz>
823
824 PR hsa/70402
825 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
826 value that is really in range handled by SBR instruction.
827 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
828 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
829 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
830
831 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
832
833 PR target/70416
834 PR target/67391
835 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
836 set, but not for SP_REG operands.
837
838 2016-04-02 Martin Sebor <msebor@redhat.com>
839
840 PR c++/67376
841 * fold-const.c (maybe_nonzero_address): New function.
842 (fold_comparison): Call it. Fold equality and relational
843 expressions involving null pointers.
844 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
845
846 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
847
848 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
849 the "Y" constraint (scalar FP 0.0 immediate).
850
851 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
852 Add the "const_double" to the list of operand constraints.
853
854 2016-04-01 Jakub Jelinek <jakub@redhat.com>
855
856 PR rtl-optimization/70467
857 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
858 If low word of the last operand is 0, just emit addition/subtraction
859 for the high word.
860
861 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
862
863 PR target/70404
864 * config/s390/s390.c (s390_expand_insv): Check for everything
865 constant instead of just VOIDmode stuff.
866
867 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
868
869 PR target/70496
870 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
871
872 2016-04-01 Nathan Sidwell <nathan@acm.org>
873
874 * tree.def (TRY_CATCH_EXPR): Correct documentation.
875
876 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
877
878 PR rtl-optimization/70461
879 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
880 is necessary.
881
882 2016-03-31 Martin Liska <mliska@suse.cz>
883
884 PR hsa/70399
885 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
886 a tree value or an immediate integer value to a buffer
887 that is eventually copied to a BRIG section.
888 (emit_immediate_operand): Call the function here.
889 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
890 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
891 of class' fields that are removed.
892 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
893 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
894 m_brig_repr_size fields.
895
896 2016-03-31 Martin Liska <mliska@suse.cz>
897
898 PR hsa/70391
899 * hsa-gen.c (hsa_function_representation::update_dominance): New
900 function.
901 (convert_addr_to_flat_segment): Likewise.
902 (gen_hsa_memory_set): New alignment argument.
903 (gen_hsa_ctor_assignment): Likewise.
904 (gen_hsa_insns_for_single_assignment): Provide alignment
905 to gen_hsa_ctor_assignment.
906 (gen_hsa_insns_for_direct_call): Add new argument.
907 (expand_lhs_of_string_op): New function.
908 (expand_string_operation_builtin): Likewise.
909 (expand_memory_copy): New function.
910 (expand_memory_set): New function.
911 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
912 (convert_switch_statements): Change signature.
913 (generate_hsa): Use a return value of the function.
914 (pass_gen_hsail::execute): Do not call
915 convert_switch_statements here.
916 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
917 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
918 (hsa_function_representation::update_dominance): New function.
919
920 2016-03-31 Martin Liska <mliska@suse.cz>
921
922 PR hsa/70391
923 * hsa-brig.c (emit_directive_variable): Emit alignment
924 according to hsa_symbol::m_align.
925 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
926 (dump_hsa_symbol): Dump alignment of HSA symbols.
927 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
928 (gen_hsa_addr_with_align): New function.
929 (hsa_bitmemref_alignment): Use newly added function.
930 (gen_hsa_insns_for_load): Likewise.
931 (gen_hsa_insns_for_store): Likewise.
932 (gen_hsa_memory_copy): New argument added.
933 (gen_hsa_insns_for_single_assignment): Respect
934 alignment for assignments processed via gen_hsa_memory_copy.
935 (gen_hsa_insns_for_direct_call): Likewise.
936 (gen_hsa_insns_for_return): Likewise.
937 (gen_function_def_parameters): Set default alignment.
938 * hsa.c (hsa_object_alignment): New function.
939 (hsa_byte_alignment): Pasted function.
940 * hsa.h (hsa_symbol::m_align): New field.
941
942 2016-03-31 Bin Cheng <bin.cheng@arm.com>
943
944 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
945 scratch field for goto case.
946
947 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
948
949 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
950
951 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
952
953 PR target/70442
954 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
955 (scalar_chain::convert_insn): Call convert_op for reg
956 moves to handle undefined registers.
957
958 2016-03-31 Nathan Sidwell <nathan@acm.org>
959
960 PR c++/70393
961 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
962 Assert we don't want to move backwards.
963
964 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
965
966 PR target/70453
967 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
968
969 2016-03-31 Jakub Jelinek <jakub@redhat.com>
970
971 PR rtl-optimization/70460
972 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
973 with operand from REG_LABEL_OPERAND, instead substitute
974 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
975 Don't do anything for REG_NON_LOCAL_GOTO jumps.
976
977 2016-03-31 Martin Liska <mliska@suse.cz>
978
979 * passes.c (execute_one_pass): Do not call
980 todo_after for a discarded function.
981
982 2016-03-31 Bin Cheng <bin.cheng@arm.com>
983
984 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
985 (no_cost, infinite_cost): Initialize the new field.
986 (get_computation_cost_at): Record setup cost.
987 (determine_use_iv_cost_address): Skip cost computation for sub
988 uses if we can estimate it without losing accuracy.
989
990 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
991
992 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
993 estimates here.
994 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
995 max_loop_iterations_int.
996 (tree_unswitch_outer_loop): Likewise.
997 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
998 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
999
1000 2016-03-30 Richard Biener <rguenther@suse.de>
1001
1002 PR middle-end/70450
1003 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
1004
1005 2016-03-30 Jakub Jelinek <jakub@redhat.com>
1006
1007 PR target/70421
1008 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
1009 in gen_blendm expander.
1010
1011 2016-03-30 Nick Clifton <nickc@redhat.com>
1012
1013 PR target/62254
1014 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
1015 case where we are already provided with an SImode SUBREG.
1016
1017 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
1018
1019 PR target/70439
1020 * config/i386/i386.c (ix86_expand_epilogue): Properly check
1021 conflict between DRAP register and __builtin_eh_return.
1022
1023 2016-03-30 Michael Matz <matz@suse.de>
1024 Richard Biener <rguenther@suse.de>
1025
1026 PR ipa/12392
1027 * ipa-polymorphic-call.c (struct type_change_info): Change
1028 speculative to an unsigned allowing to limit the work we do.
1029 (csftc_abort_walking_p): New inline function..
1030 (check_stmt_for_type_change): Limit the number of may-defs
1031 skipped for speculative devirtualization to
1032 max-speculative-devirt-maydefs.
1033 * params.def (max-speculative-devirt-maydefs): New param.
1034 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
1035
1036 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
1037
1038 PR target/63890
1039 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
1040 and TARGET_MACHO.
1041
1042 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
1043
1044 PR tree-optimization/59124
1045 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
1046 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
1047
1048 2016-03-29 Jeff Law <law@redhat.com>
1049
1050 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
1051
1052 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1053
1054 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
1055 to HOST_WIDE_INT.
1056
1057 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
1058
1059 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
1060 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
1061 gcrt0.o if linking dynamically.
1062
1063 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1064
1065 PR ipa/70283
1066 * ipa-devirt.c (methods_equal_p): New function.
1067 (compare_virtual_tables): Use it.
1068 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
1069 * cgraphclones.c (clone_function_name_1): Use
1070 symbol_table::symbol_suffix_separator.
1071 * coverage.c (build_var): Likewise.
1072 * symtab.c (symbol_table::symbol_suffix_separator): New.
1073
1074 2016-03-29 Jakub Jelinek <jakub@redhat.com>
1075
1076 PR rtl-optimization/70429
1077 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
1078 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
1079 mode != result_mode.
1080
1081 PR c++/70353
1082 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
1083
1084 PR tree-optimization/70405
1085 * ssa-iterators.h (num_imm_uses): Add missing braces.
1086
1087 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
1088
1089 PR rtl-optimization/68695
1090 * ira-color.c (allocno_copy_cost_saving): New.
1091 (improve_allocation): Use it.
1092
1093 2016-03-29 Richard Henderson <rth@redhat.com>
1094
1095 PR middle-end/70355
1096 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
1097
1098 2016-03-29 Richard Biener <rguenther@suse.de>
1099
1100 PR middle-end/70424
1101 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
1102 use alignment returned by get_pointer_alignment_1 if it is
1103 bigger than BITS_PER_UNIT.
1104 * builtins.c (get_pointer_alignment_1): Do not return true
1105 for alignment extracted from SSA info.
1106
1107 2016-03-28 James Bowman <james.bowman@ftdichip.com>
1108
1109 * config/ft32/ft32.opt (mnodiv): New.
1110 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
1111 * doc/invoke.texi (FT32 Options -mnodiv): New.
1112
1113 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
1114
1115 PR target/70406
1116 * config/i386/i386.md (define_split, andn): Fix modes.
1117
1118 2016-03-26 Richard Biener <rguenther@suse.de>
1119 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1120
1121 PR ipa/70366
1122 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
1123 instead of
1124 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
1125 as 2nd argument to cl_optimization_restore().
1126
1127 2016-03-25 Richard Henderson <rth@redhat.com>
1128
1129 PR target/70120
1130 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
1131 * config/aarch64/aarch64-protos.h: Declare it.
1132 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
1133
1134 2016-03-25 Alan Modra <amodra@gmail.com>
1135
1136 PR target/70052
1137 * config/rs6000/constraints.md (j): Simplify.
1138 * config/rs6000/predicates.md (easy_fp_constant): Exclude
1139 decimal float 0.D.
1140 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
1141 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
1142 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
1143 in all constraint alternatives.
1144 (movtd_64bit_nodm): Delete "j" constraint alternative.
1145
1146 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
1147
1148 * tree-ssa-propagate.c: Enhance docs for
1149 SSA_PROP_NOT_INTERESTING.
1150
1151 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
1152
1153 * doc/extend.texi: Fix typo in documentation to pure attribute.
1154
1155 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
1156
1157 PR target/70319
1158 * config/pa/pa.md (bswapdi2): Use a scratch register.
1159
1160 2016-03-24 Richard Henderson <rth@redhat.com>
1161
1162 PR middle-end/69845
1163 * fold-const.c (extract_muldiv_1): Correct test for multiplication
1164 overflow.
1165
1166 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
1167
1168 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
1169 using ix86_expand_binary_operator instead of gen_andsi3.
1170
1171 2016-03-24 Richard Biener <rguenther@suse.de>
1172
1173 PR tree-optimization/70396
1174 * tree-vect-stmts.c (vectorizable_comparison): Use
1175 get_vectype_for_scalar_type.
1176
1177 2016-03-24 Richard Biener <rguenther@suse.de>
1178
1179 PR middle-end/70370
1180 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
1181 with register bases.
1182
1183 2016-03-24 Richard Biener <rguenther@suse.de>
1184
1185 PR tree-optimization/70372
1186 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
1187 build_all_ones_cst to also handle vector types correctly.
1188
1189 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1190
1191 PR target/70381
1192 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
1193 -mfloat128 here.
1194
1195 2016-03-23 Marek Polacek <polacek@redhat.com>
1196
1197 PR c++/69884
1198 * doc/invoke.texi: Document -Wignored-attributes.
1199
1200 2016-03-23 Bin Cheng <bin.cheng@arm.com>
1201
1202 PR tree-optimization/69042
1203 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
1204 parameter from 30 to 40.
1205
1206 2016-03-23 Bin Cheng <bin.cheng@arm.com>
1207
1208 PR tree-optimization/69042
1209 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
1210 for use with constant offset stripped in base.
1211
1212 2016-03-23 Richard Biener <rguenther@suse.de>
1213
1214 PR middle-end/70251
1215 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
1216 mode compatibility check.
1217 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1218
1219 2016-03-23 Jeff Law <law@redhat.com>
1220
1221 PR tree-optimization/64058
1222 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
1223 CONFLICT_COUNT.
1224 (struct ssa_conflicts): Move up earlier in the file.
1225 (conflicts_, var_map_): New static variables.
1226 (initialize_conflict_count): New function to initialize the
1227 CONFLICT_COUNT field for each conflict pair.
1228 (compare_pairs): Lazily initialize the conflict count and use it
1229 as the first tie-breaker.
1230 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
1231 and wipe conflicts_ and map_ around the call to qsort. Remove
1232 special case for 2 coalesce pairs.
1233 * bitmap.c (bitmap_count_unique_bits): New function.
1234 (bitmap_count_bits_in_word): New function, extracted from
1235 bitmap_count_bits.
1236 (bitmap_count_bits): Use bitmap_count_bits_in_word.
1237 * bitmap.h (bitmap_count_unique_bits): Declare it.
1238
1239 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1240
1241 PR target/69917
1242 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
1243 transparent alias chain for decl assembler name.
1244 * config/sol2.c (solaris_assemble_visibility): Likewise.
1245
1246 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1247
1248 * config/arm/arm1020e.md (1020call_op): Reduce reservation
1249 duration.
1250 (v10_fdivs): Likewise.
1251 (v10_fdivd): Likewise.
1252
1253 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1254
1255 PR driver/70132
1256 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
1257 to not call fclose twice on file.
1258
1259 2016-03-23 Jakub Jelinek <jakub@redhat.com>
1260
1261 PR tree-optimization/70354
1262 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
1263 oprnd0 is wider than oprnd1 and there is a cast from the wider
1264 type to oprnd1, mask it with the mask of the narrower type.
1265
1266 PR target/70321
1267 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
1268 Optimize TARGET_STV splitters, if high or low word of last argument
1269 is 0 or -1.
1270
1271 2016-03-22 Jeff Law <law@redhat.com>
1272
1273 PR target/70232
1274 tree-ssa-threadbackward.c
1275 (fsm_find_control_statement_thread_paths): Correctly distinguish
1276 between old style jump threads vs FSM jump threads.
1277
1278 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
1279
1280 PR target/70302
1281 * config/i386/i386.c (scalar_chain::convert_op): Support
1282 uninitialized register usage case.
1283
1284 2016-03-22 Richard Biener <rguenther@suse.de>
1285
1286 PR middle-end/70251
1287 * genmatch.c (gen_transform): Adjust last parameter to a three-state
1288 int...
1289 (capture::gen_transform): ... to change behavior when substituting
1290 a condition into cond or not-cond expr context.
1291 (dt_simplify::gen_1): Adjust.
1292 * gimple-match-head.c: Include gimplify.h for unshare_expr.
1293 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
1294 last change and instead change to
1295 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
1296 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1297
1298 2016-03-22 Anthony Green <green@moxielogic.com>
1299
1300 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
1301 issue for moxiebox targets.
1302 (CC1PLUS_SPEC): Ditto.
1303
1304 2016-03-22 Richard Biener <rguenther@suse.de>
1305
1306 PR middle-end/70333
1307 * fold-const.c (extract_muldiv_1): Properly perform multiplication
1308 in the wide type.
1309
1310 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
1311
1312 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
1313
1314 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
1315
1316 PR target/70325
1317 * config/i386/i386.c (def_builtin): Handle
1318 OPTION_MASK_ISA_AVX512VL to be and-ed with other
1319 bits.
1320 (const struct builtin_description bdesc_special_args[]):
1321 Remove duplicate ISA bits.
1322
1323 2016-03-22 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR target/70329
1326 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
1327 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
1328 in a way that works also for AVX512BW.
1329
1330 PR target/70300
1331 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
1332 instead of source if operands[1] is xmm16 and above and
1333 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
1334 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
1335
1336 PR c++/70295
1337 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
1338 on assign if (*from_p) is a comparison, set it to
1339 TREE_NO_WARNING (*from_p).
1340
1341 2016-03-21 Jakub Jelinek <jakub@redhat.com>
1342
1343 PR middle-end/70326
1344 * lra.c (restore_scratches): Ignore deleted insns.
1345
1346 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
1347 Jakub Jelinek <jakub@redhat.com>
1348
1349 PR tree-optimization/70317
1350 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
1351 to HONOR_NANS.
1352
1353 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
1354
1355 PR target/70327
1356 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
1357 of ix86_expand_move.
1358 (movoi): Ditto.
1359 (movti): Use general_operand for operand 1 predicate.
1360
1361 2016-03-21 Martin Liska <mliska@suse.cz>
1362
1363 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
1364 insns.
1365 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
1366
1367 2016-03-21 Martin Liska <mliska@suse.cz>
1368
1369 PR ipa/70306
1370 * ipa-icf.c (sem_function::parse): Skip static
1371 constructors and destructors.
1372
1373 2016-03-21 Jakub Jelinek <jakub@redhat.com>
1374
1375 PR target/70296
1376 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
1377 function-like macro, peek following token(s) if it is followed
1378 by CPP_OPEN_PAREN token with optional padding in between, and
1379 if not, don't treat it like a macro.
1380
1381 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
1382 Alexander Monakov <amonakov@ispras.ru>
1383
1384 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
1385 for the stabs debug format.
1386
1387 2016-03-21 Richard Biener <rguenther@suse.de>
1388
1389 PR tree-optimization/70310
1390 * tree-vect-generic.c (expand_vector_condition): Fold the built
1391 condition.
1392
1393 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
1394
1395 PR target/70293
1396 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
1397 Block third alternative for AVX-512VL target,
1398
1399 2016-03-21 Martin Liska <mliska@suse.cz>
1400
1401 PR hsa/70234
1402 * hsa-brig.c (emit_function_directives): Mark unemitted
1403 global variables for emission.
1404 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
1405 (get_symbol_for_decl): Likewise.
1406 * hsa.h (struct hsa_symbol): New flag.
1407
1408 2016-03-21 Richard Biener <rguenther@suse.de>
1409
1410 PR tree-optimization/70288
1411 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
1412 we do not estimate unsimplified all-constant conditionals or
1413 switches as optimized away.
1414
1415 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
1416
1417 PR rtl-optimization/69102
1418 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
1419 when we have a readonly dependency context.
1420
1421 2016-03-18 Jeff Law <law@redhat.com>
1422
1423 PR rtl-optimization/70263
1424 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
1425 (update_equiv_regs): When trying to move a store to after the insn
1426 that sets the source of the store, make sure the store occurs after
1427 the insn that sets the source of the store. When successful note
1428 the REG_EQUIV note created in the dump file.
1429
1430 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
1431 Bernd Schmidt <bschmidt@redhat.com>
1432
1433 * doc/extend.texi: Document more potential problems with basic asms.
1434
1435 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
1436
1437 PR rtl-optimization/70278
1438 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
1439 VOIDmode.
1440
1441 2016-03-18 Jason Merrill <jason@redhat.com>
1442
1443 * calls.c (load_register_parameters): Fix zero size sibcall logic.
1444
1445 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
1446
1447 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
1448 values to 128b regs.
1449
1450 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1451
1452 PR tree-optimization/70252
1453 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
1454 boolean vector has a proper number of elements.
1455 (supportable_narrowing_operation): Likewise.
1456
1457 2016-03-18 Tom de Vries <tom@codesourcery.com>
1458
1459 PR ipa/70269
1460 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
1461
1462 2016-03-18 Jakub Jelinek <jakub@redhat.com>
1463
1464 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
1465 instead of replace_rtx for DEBUG_INSNs.
1466
1467 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1468
1469 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
1470 load type reservations.
1471
1472 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
1473
1474 PR target/70188
1475 * config/pa/constraints.md: Revert 2015-02-13 change. Use
1476 define_constraint for "Q" and "T" constraints.
1477
1478 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
1479
1480 Tweak the pipeline model for Exynos M1
1481
1482 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
1483 model.
1484
1485 2016-03-17 David Malcolm <dmalcolm@redhat.com>
1486
1487 PR c/70264
1488 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
1489 where one or both locations aren't within a line_map.
1490
1491 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
1492
1493 PR driver/70192
1494 * opts.c (finish_options): Don't set flag_pie to the default if
1495 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
1496 if it is -1.
1497
1498 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
1499
1500 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
1501 true as ALL_REGS argument to replace_rtx.
1502
1503 2016-03-17 Richard Biener <rguenther@suse.de>
1504
1505 PR debug/70271
1506 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
1507 last.
1508
1509 2016-03-17 Jakub Jelinek <jakub@redhat.com>
1510
1511 PR target/70245
1512 * rtl.h (replace_rtx): Add ALL_REGS argument.
1513 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
1514 equality and assert mode is the same, instead of just rtx pointer
1515 equality.
1516 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
1517 true as ALL_REGS argument to replace_rtx.
1518
1519 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1520
1521 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
1522 for boolean vector with vector mode only.
1523 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1524
1525 2016-03-17 Nick Clifton <nickc@redhat.com>
1526
1527 PR target/70162
1528 * config/rx/rx.c (rx_print_integer): Print negative constants in
1529 decimal.
1530
1531 2016-03-17 Jakub Jelinek <jakub@redhat.com>
1532
1533 PR target/70261
1534 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
1535
1536 2016-03-16 Richard Henderson <rth@redhat.com>
1537 Richard Biener <rguenth@suse.de>
1538
1539 PR middle-end/70240
1540 PR middle-end/68215
1541 PR tree-opt/68714
1542 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
1543 first operand as is_gimple_condexpr.
1544
1545 PR middle-end/70240
1546 PR middle-end/68215
1547 Revert r231575
1548 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
1549 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1550 Do not gimplify the result.
1551 (do_unop): Adjust call to tree_vec_extract.
1552 (do_binop): Likewise.
1553 (do_compare): Likewise.
1554 (do_plus_minus): Likewise.
1555 (do_negate): Likewise.
1556 (expand_vector_condition): Likewise.
1557 (do_cond): Likewise.
1558
1559 2016-03-16 Richard Henderson <rth@redhat.com>
1560
1561 PR target/70048
1562 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
1563 (aarch64_classify_address): Use it.
1564 (aarch64_legitimize_address): Force all subexpressions of PLUS
1565 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
1566
1567 2016-03-16 Jakub Jelinek <jakub@redhat.com>
1568 Richard Biener <rguenth@suse.de>
1569
1570 PR target/70245
1571 * rtlanal.c (replace_rtx): For REG, if from is a REG,
1572 return to even if only REGNO is equal, and assert
1573 mode is the same.
1574
1575 2016-03-11 Jeff Law <law@redhat.com>
1576
1577 PR rtl-optimization/70224
1578 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
1579
1580 2016-03-16 Richard Henderson <rth@redhat.com>
1581
1582 PR middle-end/70199
1583 * function.h (struct function): Add has_forced_label_in_static.
1584 * gimplify.c (force_labels_r): Set it.
1585 * lto-streamer-in.c (input_struct_function_base): Read it.
1586 * lto-streamer-out.c (output_struct_function_base): Write it.
1587 * tree-inline.c (has_label_address_in_static_1): Remove.
1588 (copy_forbidden): Remove fndecl parameter; test
1589 has_forced_label_in_static.
1590 (inline_forbidden_p): Update call to copy_forbidden.
1591 (tree_versionable_function_p): Likewise.
1592 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
1593 (chkp_versioning): Likewise.
1594 * tree-inline.h (copy_forbidden): Update decl.
1595
1596 2016-03-16 Marek Polacek <polacek@redhat.com>
1597
1598 PR c/70093
1599 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
1600 function being thunked if the result type doesn't have fixed size.
1601 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
1602 doesn't have fixed size.
1603
1604 2016-03-16 Bin Cheng <bin.cheng@arm.com>
1605
1606 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
1607 reporting malformed loop nest.
1608
1609 2016-03-16 Tom de Vries <tom@codesourcery.com>
1610
1611 PR lto/70187
1612 * ipa-devirt.c (possible_polymorphic_call_targets): Move
1613 nodes.length () == 1 test to before first nodes[0] access.
1614
1615 2016-03-16 Tom de Vries <tom@codesourcery.com>
1616
1617 PR tree-optimization/68715
1618 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
1619 single_pred_p test.
1620
1621 2016-03-16 Tom de Vries <tom@codesourcery.com>
1622
1623 PR tree-optimization/68809
1624 * graphite-scop-detection.c (same_close_phi_node): Test if result types
1625 are the same.
1626
1627 2016-03-16 Carlos O'Donell <carlos@redhat.com>
1628 Sandra Loosemore <sandra@codesourcery.com>
1629
1630 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
1631 on leaf attribute. Mention ELF interposition problems.
1632
1633 2016-03-16 Alan Modra <amodra@gmail.com>
1634
1635 PR rtl-optimization/69195
1636 PR rtl-optimization/47992
1637 * ira.c (indirect_jump_optimize): Ignore artificial defs.
1638 Add comments.
1639
1640 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
1641
1642 PR bootstrap/69513
1643 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
1644
1645 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1646
1647 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
1648
1649 2016-03-15 Jakub Jelinek <jakub@redhat.com>
1650
1651 PR rtl-optimization/70222
1652 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
1653 optimization if mode is different from result_mode, queue up masking
1654 of the result in outer_op. Formatting fix.
1655
1656 PR middle-end/70239
1657 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
1658 of safe_grow.
1659
1660 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1661
1662 PR rtl-optimization/69032
1663 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
1664 looping backwards over basic block insns.
1665
1666 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1667
1668 PR target/66660
1669 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
1670 to non-speculative when propagating trap bits.
1671
1672 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1673
1674 PR rtl-optimization/63384
1675 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
1676 DEBUG_INSN_P insns.
1677
1678 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1679
1680 PR target/64411
1681 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
1682 factored out from ...
1683 (sched_analyze_insn): ... here.
1684 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
1685 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
1686 get_implicit_reg_pending_clobbers in it.
1687 (setup_id_reg_sets): Use setup_id_implicit_regs.
1688 (deps_init_id): Ditto.
1689
1690 2016-03-15 Tom de Vries <tom@codesourcery.com>
1691
1692 PR ipa/70161
1693 * cgraph.c (cgraph_node::get_body): Save, reset and restore
1694 dump_file_name.
1695 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
1696 execute_function_dump.
1697 (execute_one_pass): Don't dump function if it will be dumped after ipa
1698 transform.
1699
1700 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1701
1702 * genrecog.c (match_pattern_2): If pred is NULL don't call
1703 safe_predicate_mode on it.
1704
1705 2016-03-14 Jakub Jelinek <jakub@redhat.com>
1706
1707 PR middle-end/70219
1708 * lra-constraints.c (delete_move_and_clobber): Change assertion
1709 to also allow dregno == 0.
1710
1711 2016-03-14 Richard Henderson <rth@redhat.com>
1712
1713 PR tree-opt/68714
1714 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
1715 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
1716 (reassociate_bb): Use optimize_vec_cond_expr; avoid
1717 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
1718 on vectors.
1719
1720 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
1721
1722 PR target/70083
1723 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
1724 regs.
1725 (lra_create_live_ranges_1): initialize hard register biggest_mode to
1726 VOIDmode.
1727 * lra-constraints.c (split_reg): For hard regs, try to find the
1728 biggest single-register mode used in the function.
1729
1730 2016-03-14 Richard Biener <rguenther@suse.de>
1731
1732 PR tree-optimization/56365
1733 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
1734 constants to compare against.
1735
1736 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
1737
1738 PR target/70098
1739 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1740 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
1741 (define_split for the GPR case): Use int_reg_operand instead of
1742 gpc_reg_operand for the output.
1743
1744 2016-03-14 Tom de Vries <tom@codesourcery.com>
1745
1746 PR tree-optimization/70045
1747 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
1748 create_empty_if_region_on_edge argument.
1749
1750 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
1751
1752 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
1753 (STACK_CHECK_PROTECT): Likewise.
1754 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1755 (STACK_CHECK_PROTECT): Likewise.
1756 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1757 (STACK_CHECK_PROTECT): Likewise.
1758 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
1759 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1760 (STACK_CHECK_PROTECT): Likewise.
1761
1762 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
1763
1764 PR rtl-optimization/69307
1765 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
1766 registers in modes that span more than one register.
1767
1768 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
1769
1770 PR target/69614
1771 * lra-constraints.c (delete_move_and_clobber): New.
1772 (remove_inheritance_pseudos): Use it.
1773
1774 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
1775
1776 PR ada/70017
1777 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
1778 the libcall is LCT_THROW.
1779 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
1780 for the checking routine.
1781
1782 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1783
1784 PR target/70131
1785 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
1786 optimization if we have direct move.
1787 (roundu32<mode>2_fprs): Likewise.
1788
1789 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
1790
1791 PR target/70123
1792 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
1793 be rematerialized.
1794 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
1795 Arguments swapped. All callers changed. Take reg_renumber into
1796 account, and Calculate and compare register ranges for hard regs.
1797
1798 2016-03-11 Jeff Law <law@redhat.com>
1799
1800 PR tree-optimization/70190
1801 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1802 Handle cases where we can not extract the taken edge, even though we
1803 found a constant value.
1804
1805 PR tree-optimization/64058
1806 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
1807 (num_coalesce_pairs): Move up earlier in file.
1808 (find_coalesce_pair): Initialize the INDEX field for each pair
1809 discovered.
1810 (compare_pairs): No longer sort on the elements in each pair.
1811 Instead break ties with the index of the coalesce pair.
1812
1813 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1814
1815 PR target/70002
1816 * config/aarch64/aarch64-protos.h
1817 (aarch64_save_restore_target_globals): New prototype.
1818 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
1819 Call the above when popping pragma.
1820 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
1821 New function.
1822 (aarch64_set_current_function): Rewrite using the above.
1823
1824 2016-03-11 Jakub Jelinek <jakub@redhat.com>
1825
1826 PR tree-optimization/70177
1827 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
1828 (extract_ops_from_tree): ... this. In the 2 argument
1829 overload remove _1 suffix.
1830 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
1831 (extract_ops_from_tree): ... this.
1832 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
1833 Adjust callers.
1834 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1835 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
1836 extract_ops_from_tree instead of 2 operand one.
1837
1838 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
1839
1840 PR tree-optimization/70013
1841 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
1842 for constant-pool entries.
1843
1844 2016-03-11 Jakub Jelinek <jakub@redhat.com>
1845
1846 PR rtl-optimization/70174
1847 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
1848 followed by gen_lowpart on force_reg instead of just gen_lowpart.
1849
1850 PR tree-optimization/70169
1851 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
1852 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
1853 for unknown codes.
1854
1855 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1856 Jakub Jelinek <jakub@redhat.com>
1857
1858 PR target/70160
1859 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
1860 of uninitialized values.
1861
1862 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1863
1864 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
1865 define_expand.
1866 ("*trunctddd2"): New pattern definition.
1867 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
1868 TD->DD truncation.
1869
1870 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1871
1872 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
1873 definitions for BFP and DFP rounding modes.
1874 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1875 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
1876 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
1877 ("fix_trunctf<mode>2"): Use the new constants instead of magic
1878 numbers.
1879
1880 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1881
1882 * config/s390/constraints.md: Adjust comment.
1883 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
1884 s390_decompose_addrstyle_without_index.
1885 * config/s390/predicates.md (shift_count_or_setmem_operand):
1886 Rename to setmem_operand.
1887 * config/s390/s390-protos.h
1888 (s390_decompose_shift_count): Rename to
1889 s390_decompose_addrstyle_without_index.
1890 * config/s390/s390.c (s390_decompose_shift_count)
1891 (s390_mem_constraint, print_shift_count_operand)
1892 (print_operand_address, print_operand): Rename
1893 s390_decompose_shift_count to
1894 s390_decompose_addrstyle_without_index and rename
1895 print_shift_count_operand to print_addrstyle_operand troughout the
1896 file.
1897 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
1898 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
1899 Rename shift_count_or_setmem_operand to setmem_operand.
1900 * config/s390/vx-builtins.md ("vec_insert<mode>")
1901 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
1902 nonmemory_operand.
1903
1904 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1905
1906 PR target/70168
1907 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1908 Handle overlapping retval and newval.
1909
1910 2016-03-10 Nick Clifton <nickc@redhat.com>
1911
1912 PR target/7044
1913 * config/aarch64/aarch64.c
1914 (aarch64_override_options_after_change_1): When forcing
1915 flag_omit_frame_pointer to be true, use a special value that can
1916 be detected if this function is called again, thus preventing
1917 flag_omit_leaf_frame_pointer from being forced to be false.
1918
1919 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1920
1921 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
1922 Set x_flag_omit_leaf_frame_pointer when handling
1923 -momit-leaf-frame-pointer.
1924
1925 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1926
1927 PR lto/69589
1928 * cgraph.c (cgraph_node::dump): Dump split_part and
1929 indirect_call_target.
1930 * cgraph.h (cgraph_node): Add indirect_call_target flag.
1931 * ipa.c (has_addr_references_p): Cleanup.
1932 (is_indirect_call_target_p): New.
1933 (walk_polymorphic_call_targets): Do not mark virtuals that may be
1934 called indirectly as local.
1935 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
1936
1937 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1938
1939 PR ipa/69630
1940 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1941 on cxa_pure_virtual.
1942
1943 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1944
1945 PR lto/69589
1946 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
1947
1948 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1949
1950 PR lto/69589
1951 * tree.c (need_assembler_name_p): Only record main variant type names.
1952
1953 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
1954
1955 PR target/70113.
1956 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
1957 Always define to 0 or 1.
1958 (TARGET_FIX_ERR_A53_843419): New macro.
1959 * config/aarch64/aarch64-elf-raw.h
1960 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
1961 * config/aarch64/aarch64-linux.h: Likewise.
1962 * config/aarch64/aarch64.c
1963 (aarch64_override_options_after_change_1): Do not default
1964 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
1965 843419 is on.
1966 (aarch64_attributes): Handle fix-cortex-a53-843419.
1967 (aarch64_can_inline_p): Likewise.
1968 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
1969
1970 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
1971 Jakub Jelinek <jakub@redhat.com>
1972
1973 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
1974 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
1975 DECL_COMMONS if flag_unconstrained_commons is set.
1976 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1977 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
1978 (funconstrained-commons): Document.
1979
1980 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
1981
1982 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
1983 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
1984
1985 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1986
1987 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
1988 has a proper number of elements.
1989
1990 2016-03-10 Alan Modra <amodra@gmail.com>
1991
1992 PR rtl-optimization/69195
1993 PR rtl-optimization/47992
1994 * ira.c (recorded_label_ref): Delete.
1995 (update_equiv_regs): Return void.
1996 (indirect_jump_optimize): New function.
1997 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
1998 before regstat_compute_ri. Don't rebuild_jump_labels here.
1999 Delete update_regstat.
2000
2001 2016-03-10 Richard Biener <rguenther@suse.de>
2002
2003 PR tree-optimization/70128
2004 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2005 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
2006
2007 2016-03-09 Jakub Jelinek <jakub@redhat.com>
2008
2009 PR tree-optimization/70152
2010 * tree-sra.c (replace_removed_params_ssa_names): Copy over
2011 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
2012
2013 PR target/70086
2014 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
2015 instead of gen_sse2_loadlpd.
2016 * config/i386/sse.md (*vec_concatv2df): Rename to...
2017 (vec_concatv2df): ... this.
2018
2019 PR tree-optimization/70127
2020 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
2021
2022 2016-03-09 David Malcolm <dmalcolm@redhat.com>
2023
2024 PR c/68473
2025 PR c++/70105
2026 * diagnostic-show-locus.c (compatible_locations_p): New function.
2027 (layout::layout): Sanitize ranges using compatible_locations_p.
2028
2029 2016-03-09 David Malcolm <dmalcolm@redhat.com>
2030
2031 PR c/68473
2032 PR c++/70105
2033 * diagnostic-show-locus.c (layout_range::layout_range): Replace
2034 location_range param with three const expanded_locations * and a
2035 bool.
2036 (layout::layout): Replace call to
2037 rich_location::lazily_expand_location with get_expanded_location.
2038 Extract the range and perform location expansion here, passing
2039 the results to the layout_range ctor.
2040 * diagnostic.c (source_range::debug): Delete.
2041 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
2042 of rich_location::get_expanded_location.
2043 * gcc-rich-location.c (get_range_for_expr): Delete.
2044 (gcc_rich_location::add_expr): Reimplement to avoid the
2045 rich_location::add_range overload that took a location_range,
2046 passing a location_t instead.
2047
2048 2016-03-09 Richard Biener <rguenther@suse.de>
2049 Jakub Jelinek <jakub@redhat.com>
2050
2051 PR tree-optimization/70138
2052 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2053 Also skip vect_double_reduction_def.
2054
2055 2016-03-09 Jakub Jelinek <jakub@redhat.com>
2056
2057 PR target/70049
2058 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
2059 if the operand is "m".
2060
2061 2016-03-09 Nathan Sidwell <nathan@acm.org>
2062
2063 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
2064
2065 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2066
2067 * config/i386/i386.c (processor_target_table): Fix cost table
2068 intialization order for znver1.
2069
2070 2016-03-08 Jakub Jelinek <jakub@redhat.com>
2071
2072 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
2073 - becuase -> because.
2074 * ipa-reference.c (ignore_module_statics): Likewise.
2075 * cgraph.c (cgraph_node::get_body): Likewise.
2076 * ipa-inline.c (early_inliner): Likewise.
2077 * ipa-devirt.c (types_same_for_odr): Likewise.
2078 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
2079 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
2080
2081 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2082
2083 * tree-ssa-math-opts.c: Fix typo in comment.
2084
2085 2016-03-08 Jakub Jelinek <jakub@redhat.com>
2086
2087 PR target/70110
2088 * config/i386/i386.c (scalar_chain::make_vector_copies,
2089 scalar_chain::convert_reg): Call end_sequence in between
2090 get_insns and emit_conversion_insns rather than after both
2091 calls.
2092
2093 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
2094
2095 PR target/70064
2096 * config/i386/i386.h (machine_function): Add
2097 pc_thunk_call_expanded flag.
2098 (ix86_pc_thunk_call_expanded): New define.
2099 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
2100 (*set_got): Rename insn pattern from set_got.
2101 (*set_got_labelled): Rename inst pattern from set_got_labelled.
2102 * config/i386/i386.c (ix86_compute_frame_layout): Use
2103 ix86_pc_thunk_call_expanded to prevent red-zone.
2104
2105 2016-03-07 Martin Jambor <mjambor@suse.cz>
2106
2107 * hsa.h (hsa_get_ctor_statements): Declare.
2108 (hsa_get_dtor_statements): Likewise.
2109 (hsa_get_kernel_dispatch_type): Likewise.
2110 * hsa.c (hsa_get_ctor_statements): New function.
2111 (hsa_get_dtor_statements): Likewise.
2112 (hsa_get_kernel_dispatch_type): Likewise.
2113 * hsa-brig.c (hsa_cdtor_statements): Removed.
2114 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
2115 hsa_get_dtor_statements.
2116 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
2117 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
2118
2119 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
2120
2121 * config/arm/arm-cores.def (cortex-r8): New.
2122 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
2123 * config/arm/arm-tune.md: Likewise.
2124 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
2125
2126 2016-03-07 Martin Sebor <msebor@redhat.com>
2127
2128 PR rtl-optimization/19705
2129 * doc/invoke.texi (Options That Control Optimization): Clarify
2130 -fno-branch-count-reg.
2131
2132 2016-02-26 Richard Biener <rguenther@suse.de>
2133 Jeff Law <law@redhat.com>
2134
2135 PR tree-optimization/69740
2136 * cfghooks.c (remove_edge): Request loop fixups if we delete
2137 an edge that might turn an irreducible loop into a natural
2138 loop.
2139 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
2140 Move after definition of loops_state_clear.
2141
2142 2016-03-07 Bin Cheng <bin.cheng@arm.com>
2143
2144 PR rtl-optimization/69052
2145 * rtlanal.c (commutative_operand_precedence): Set higher precedence
2146 to CONST_WIDE_INT.
2147
2148 2016-03-07 Tom de Vries <tom@codesourcery.com>
2149
2150 PR tree-optimization/70116
2151 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
2152 is_tm_ending stmts and ubsan/asan internal functions.
2153 (find_duplicate): Use it. Don't test is_tm_ending here.
2154
2155 2016-03-07 Richard Biener <rguenther@suse.de>
2156
2157 PR tree-optimization/70115
2158 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
2159 (propagate_constants_for_unrolling): Use replace_uses_by.
2160
2161 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
2162
2163 PR middle-end/69916
2164 * omp-low.c (struct oacc_loop): Add ifns.
2165 (new_oacc_loop_raw): Initialize it.
2166 (finish_oacc_loop): Clear mask & flags if no ifns.
2167 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
2168 (oacc_loop_xform_loop): Add ifns arg & adjust.
2169 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
2170
2171 2016-03-07 Richard Henderson <rth@redhat.com>
2172
2173 PR rtl-opt/70061
2174 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
2175 (insert_value_copy_on_edge): Likewise.
2176
2177 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2178
2179 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
2180
2181 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2182
2183 PR target/62281
2184 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
2185
2186 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2187
2188 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
2189
2190 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2191
2192 Fix sseimul type attribute.
2193 * config/i386/znver1.md
2194 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
2195 znver1_sseimul_avx256_load) : Fix the type attribute.
2196 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
2197 pipe usage and latency.
2198
2199 2016-03-05 Jakub Jelinek <jakub@redhat.com>
2200
2201 PR c++/70084
2202 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
2203 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
2204 to the right type.
2205
2206 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
2207
2208 PR c/69973
2209 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
2210
2211 PR rtl-optimization/69941
2212 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
2213 the reg share its mode.
2214
2215 2016-03-04 Jeff Law <law@redhat.com>
2216
2217 PR tree-optimization/69196
2218 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2219 If the both SSA_NAMEs are anonymous, then consider them unassociated
2220 and include the PHI in the statement count.
2221
2222 2016-03-05 Tom de Vries <tom@codesourcery.com>
2223
2224 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
2225 construct in oacc routine. Check for oacc region in oacc routine.
2226
2227 2016-03-04 Jakub Jelinek <jakub@redhat.com>
2228
2229 PR target/70062
2230 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
2231 2016-02-22 changes, instead don't recurse if RECUR is already true.
2232 Don't change *dynamic_check if RECUR. Adjust recursive caller
2233 to pass true to the new argument.
2234 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
2235
2236 PR target/70059
2237 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
2238 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
2239 fixes.
2240 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
2241
2242 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
2243
2244 PR rtl-optimization/57676
2245 * lra-assigns.c (lra_assign): Guard test for maximum iterations
2246 with flag_checking.
2247
2248 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2249
2250 * tree-vect-patterns.c (search_type_for_mask): Handle
2251 comparison of booleans.
2252
2253 2016-03-04 Jakub Jelinek <jakub@redhat.com>
2254
2255 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
2256 Fix @xref usage.
2257
2258 PR debug/69947
2259 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
2260 all other ops that have dw_val_class_die_ref operands,
2261 and DW_OP_GNU_entry_value.
2262
2263 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2264
2265 PR rtl-optimization/69904
2266 * config/arm/arm.c (arm_cannot_copy_insn_p):
2267 Return true for load-exclusive instructions.
2268
2269 2016-03-03 Jakub Jelinek <jakub@redhat.com>
2270
2271 PR target/70021
2272 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
2273 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
2274 the pattern no matter if it is used just by non-pattern, pattern
2275 or mix thereof.
2276 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
2277 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2278 oprnd1 def_stmt is in pattern, don't look through it.
2279
2280 2016-03-03 Marek Polacek <polacek@redhat.com>
2281
2282 PR middle-end/70050
2283 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
2284
2285 2016-03-03 Martin Liska <mliska@suse.cz>
2286
2287 PR tree-optimization/70043
2288 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
2289 previous statement if we see a debug statement.
2290
2291 2016-03-03 Richard Biener <rguenther@suse.de>
2292
2293 PR tree-optimization/55936
2294 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
2295 parameter and guard unsafe equivalence use.
2296 (vrp_evaluate_conditional_warnv_with_ops): Always use
2297 safe equivalences but not via the quadratic compare_names
2298 helper.
2299
2300 2016-03-03 Michael Collison <michael.collison@linaro.org>
2301
2302 PR target/70014
2303 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
2304 for operand 1 to s_register_operand. Change predicate for operand
2305 2 to arm_not_immediate_operand.
2306
2307 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
2308
2309 * doc/tm.texi: Regenerated.
2310
2311 2016-03-02 Richard Henderson <rth@redhat.com>
2312
2313 PR rtl-opt/67145
2314 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
2315 simplification when all args are positive non-fixed registers.
2316
2317 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2318
2319 * target.def (lra_p): Specify that new ports should use LRA.
2320
2321 2016-03-02 Jakub Jelinek <jakub@redhat.com>
2322
2323 PR libgomp/69555
2324 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
2325 gimplify_type_sizes the type they refer to.
2326 (omp_notice_variable): Handle reference vars to VLAs.
2327 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
2328 reference to VLA decls in the second pass instead of first pass.
2329
2330 2016-03-02 Tom de Vries <tom@codesourcery.com>
2331
2332 PR tree-optimization/68659
2333 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
2334 new_expr == NULL_TREE.
2335 (get_new_name): Handle ADDR_EXPR.
2336
2337 2016-03-02 Bin Cheng <bin.cheng@arm.com>
2338
2339 PR rtl-optimization/69052
2340 * loop-invariant.c (canonicalize_address): New function.
2341 (inv_can_prop_to_addr_use): Check validity of address expression
2342 which is canonicalized by above function.
2343
2344 2016-03-02 Alan Modra <amodra@gmail.com>
2345
2346 PR ipa/69990
2347 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
2348 larger alignment.
2349
2350 2016-03-02 Jakub Jelinek <jakub@redhat.com>
2351
2352 PR target/70028
2353 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
2354 (*movhi_internal): Put mask moves from and to memory separately
2355 from moves from/to GPRs.
2356
2357 2016-03-02 Richard Biener <rguenther@suse.de>
2358
2359 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
2360 GENERIC expressions in GIMPLE.
2361
2362 2016-03-02 Richard Biener <rguenther@suse.de>
2363
2364 * config/i386/i386.c (type_natural_mode): Fix typo.
2365
2366 2016-03-02 Nick Clifton <nickc@redhat.com>
2367
2368 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
2369
2370 2016-03-02 Richard Biener <rguenther@suse.de>
2371 Uros Bizjak <ubizjak@gmail.com>
2372
2373 PR target/67278
2374 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
2375
2376 2016-03-02 Richard Biener <rguenther@suse.de>
2377
2378 PR middle-end/67278
2379 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
2380
2381 2016-03-02 Marek Polacek <polacek@redhat.com>
2382
2383 PR c/67854
2384 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
2385 "is promoted to" warning.
2386
2387 2016-03-01 DJ Delorie <dj@redhat.com>
2388
2389 * config.gcc: Deprecate mep-*.
2390
2391 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
2392
2393 PR middle-end/70025
2394 * lra-constraints.c (regno_val_use_in): New.
2395 (match_reload): Use it instead of regno_use_in.
2396
2397 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
2398
2399 PR rtl-optimization/70007
2400 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
2401 references present in REG_EQUAL notes attached to non-SET patterns.
2402
2403 2016-03-01 Jeff Law <law@redhat.com>
2404
2405 PR tree-optimization/69196
2406 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2407 Appropriately clamp the number of statements to copy when the
2408 thread path does not traverse a loop backedge.
2409
2410 PR tree-optimization/69196
2411 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2412 Do count some PHIs in the thread path against the insn count. Decrease
2413 final statement count by one as the control statement in the last
2414 block will get removed. Remove special cased code for handling PHIs
2415 in the last block.
2416
2417 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
2418
2419 PR target/70027
2420 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
2421 asm dialect alternatives to explicit GOTPCREL calls.
2422
2423 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
2424
2425 PR ada/70017
2426 * ira.c (do_reload): Issue warning for generic stack checking here...
2427 * reload1.c (reload): ...instead of here and streamline it.
2428
2429 2016-03-01 Nick Clifton <nickc@redhat.com>
2430
2431 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
2432
2433 2016-03-01 Richard Biener <rguenther@suse.de>
2434
2435 PR tree-optimization/69983
2436 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
2437 types and fall back to operand_equal_p.
2438
2439 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2440
2441 Revert
2442 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2443
2444 * config/s390/constraints.md ("jm8"): New constraint.
2445 * config/s390/predicates.md ("const_int_8bitset_operand"): New
2446 predicate.
2447 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
2448 into ...
2449 ("*setmem_long<setmem_and>"): New pattern.
2450 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
2451 into ...
2452 ("*setmem_long_31z<setmem_and>"): New pattern.
2453 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
2454 New substitution rules with the required attributes.
2455
2456
2457 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2458
2459 Revert
2460 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2461
2462 * gensupport.c (process_substs_on_one_elem): Split loop to
2463 complete mark_operands_used_in_match_dup on all expressions in the
2464 vector first.
2465 (adjust_operands_numbers): Inline into process_substs_on_one_elem
2466 and remove function.
2467
2468 2016-03-01 Richard Biener <rguenther@suse.de>
2469
2470 PR middle-end/70022
2471 * fold-const.c (fold_indirect_ref_1): Fix range checking for
2472 vector BIT_FIELD_REF extract.
2473
2474 2016-03-01 Richard Biener <rguenther@suse.de>
2475
2476 PR tree-optimization/69994
2477 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
2478
2479 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2480
2481 PR tree-optimization/69956
2482 * tree-vect-stmts.c (supportable_widening_operation): Support
2483 multi-step conversion of boolean vectors.
2484 (supportable_narrowing_operation): Likewise.
2485
2486 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2487
2488 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
2489 anymore.
2490
2491 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2492
2493 * config/s390/subst.md (DSI_VI): New mode iterator.
2494 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
2495 * config/s390/vector.md ("vec_set<mode>"): Move expander before
2496 the insn definition.
2497 ("*vec_set<mode>"): Change predicate and add alternative to
2498 support only either register or const_int operands as element
2499 selector.
2500 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
2501 operands.
2502 ("vec_extract<mode>"): New expander.
2503 ("*vec_extract<mode>"): New insn definition supporting reg and
2504 const_int element selectors.
2505 ("*vec_extract<mode>_plus"): New insn definition supporting
2506 reg+const_int element selectors.
2507 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
2508 following expander+insn definition.
2509 ("<vec_shifts_name><mode>3"): New expander.
2510 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
2511
2512 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2513
2514 * config/s390/s390.md ("*tabort_1"): Change predicate to
2515 nonmemory_operand. Add a second alternative to cover
2516 register as well as const int operands.
2517 ("*tabort_1_plus"): New pattern definition.
2518
2519 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2520
2521 * config/s390/s390.md ("*ashrdi3_cc_31")
2522 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
2523 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
2524 Merge insn definitions into ...
2525 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
2526 New pattern definition.
2527 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
2528 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
2529 ("*ashr<mode>3_and"): Merge insn definitions into ...
2530 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
2531 New pattern definition.
2532 * config/s390/subst.md ("addr_style_op_cc_subst")
2533 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
2534 substitutions patterns plus attributes.
2535 Add ashiftrt to SUBST iterator.
2536
2537 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2538
2539 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
2540 op2 to nonmemory_operand.
2541 ("*<shift>di3_31", "*<shift>di3_31_and"):
2542 Merge into single pattern definition ...
2543 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
2544 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
2545 pattern definition ...
2546 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
2547 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
2548 iterator.
2549
2550 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2551
2552 * config/s390/predicates.md (const_int_6bitset_operand): New
2553 predicate.
2554 * config/s390/s390.md: Include subst.md.
2555 ("rotl<mode>3"): New expander.
2556 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
2557 ...
2558 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
2559 * config/s390/subst.md: New file.
2560
2561 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2562
2563 * config/s390/s390.md ("op_type", "atype", "length" attributes):
2564 Remove RRR type. It doesn't really exist.
2565 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
2566 attributes.
2567 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
2568 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
2569 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
2570 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
2571 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
2572 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
2573 `enabled' attribute.
2574
2575 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2576
2577 * gensupport.c (process_substs_on_one_elem): Split loop to
2578 complete mark_operands_used_in_match_dup on all expressions in the
2579 vector first.
2580 (adjust_operands_numbers): Inline into process_substs_on_one_elem
2581 and remove function.
2582
2583 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
2584
2585 PR target/69706
2586 * config/sparc/sparc.c (NWORDS_UP): Rename to...
2587 (CEIL_NWORDS): ...this. Use CEIL macro.
2588 (compute_fp_layout): Adjust to above renaming.
2589 (function_arg_union_value): Likewise.
2590 (sparc_arg_partial_bytes): Likewise.
2591 (sparc_function_arg_advance): Likewise.
2592
2593 2016-02-29 Jeff Law <law@redhat.com>
2594
2595 PR tree-optimization/70005
2596 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
2597 where an object with a boolean range is compared against a value
2598 outside [0..1].
2599
2600 PR tree-optimization/69999
2601 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
2602 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
2603 loop cleanups.
2604
2605 2016-02-29 Richard Biener <rguenther@suse.de>
2606
2607 PR tree-optimization/69994
2608 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
2609 (get_unary_op): Look through nop conversions.
2610 (ops_equal_values_p): New function, look for equality diregarding
2611 nop conversions.
2612 (eliminate_plus_minus_pair): Use ops_equal_values_p
2613 (repropagate_negates): Do not use get_unary_op here.
2614
2615 2016-02-29 Martin Liska <mliska@suse.cz>
2616
2617 * system.h: Poison ENABLE_CHECKING macro.
2618
2619 2016-02-29 Martin Liska <mliska@suse.cz>
2620
2621 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
2622 is presented in dump flags.
2623 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2624 (hsa_regalloc): Likewise.
2625
2626 2016-02-19 Richard Biener <rguenther@suse.de>
2627
2628 PR tree-optimization/69980
2629 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
2630 permutation of those we need to keep.
2631
2632 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
2633
2634 PR target/69706
2635 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
2636 (NWORDS_UP): ...this
2637 (init_cumulative_args): Minor tweaks.
2638 (sparc_promote_function_mode): Likewise.
2639 (scan_record_type): Delete.
2640 (traverse_record_type): New function template.
2641 (classify_data_t): New structure type.
2642 (classify_registers): New inline function.
2643 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
2644 exhausted. Instantiate traverse_record_type on classify_registers and
2645 deal with the case of a structure passed in slot #15 with no FP field
2646 in the first word.
2647 (assign_data_t): New structure type.
2648 (compute_int_layout): New static function.
2649 (compute_fp_layout): Likewise.
2650 (count_registers): New inline function.
2651 (assign_int_registers): New static function.
2652 (assign_fp_registers): Likewise.
2653 (assign_registers): New inline function.
2654 (function_arg_record_value_1): Delete.
2655 (function_arg_record_value_2): Likewise.
2656 (function_arg_record_value_3): Likewise.
2657 (function_arg_record_value): Adjust to above changes. Instantiate
2658 traverse_record_type on count_registers to first count the number of
2659 registers to be used and then on assign_registers to assign them.
2660 (function_arg_union_value): Adjust to above renaming.
2661 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
2662 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
2663 case of a structure passed in slot #15
2664 (sparc_function_arg_advance): Likewise.
2665 (function_arg_padding): Minor tweak.
2666
2667 2016-02-29 Richard Biener <rguenther@suse.de>
2668
2669 PR tree-optimization/69720
2670 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
2671 the adjustment_def path for possibly vectorized defs.
2672 (vect_create_epilog_for_reduction): Handle vectorized initial
2673 defs properly.
2674
2675 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
2676
2677 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
2678
2679 2016-02-27 Jeff Law <law@redhat.com>
2680
2681 Revert
2682 2016-02-26 Richard Biener <rguenther@suse.de>
2683 Jeff Law <law@redhat.com>
2684
2685 PR tree-optimization/69740
2686 * cfghooks.c (remove_edge): Request loop fixups if we delete
2687 an edge that might turn an irreducible loop into a natural
2688 loop.
2689
2690 2016-02-27 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR rtl-optimization/69896
2693 * tree-vect-generic.c (get_compute_type): Avoid single element
2694 vector types.
2695
2696 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
2697
2698 Rename the AArch64 tuning option and related functions to enable the
2699 Newton series for the reciprocal square root to reflect its
2700 approximative characteristic.
2701
2702 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
2703 function to "aarch64_emit_approx_rsqrt".
2704 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
2705 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
2706 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
2707 (xgene1_tunings): Likewise.
2708 (use_rsqrt_p): Likewise.
2709 (aarch64_emit_swrsqrt): Use new function name.
2710 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
2711 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
2712 text explaining this option.
2713 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
2714
2715 2016-02-26 Jakub Jelinek <jakub@redhat.com>
2716
2717 PR target/69969
2718 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2719 complain about -mallow-movmisalign without -mvsx if
2720 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
2721
2722 2016-02-26 Joel Sherrill <joel@rtems.org>
2723
2724 * config.gcc: Add x86_64-*-rtems*.
2725 * gcc/config/i386/rtems-64.h: New file.
2726
2727 2016-02-26 Joel Sherrill <joel@rtems.org>
2728
2729 * config.gcc: Add aarch64-*-rtems*.
2730 * gcc/config/aarch64/rtems.h: New file.
2731
2732 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
2733
2734 PR target/69946
2735 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
2736 shift amount using %h. Add comment.
2737
2738 2016-02-26 Richard Biener <rguenther@suse.de>
2739 Jeff Law <law@redhat.com>
2740
2741 PR tree-optimization/69740
2742 * cfghooks.c (remove_edge): Request loop fixups if we delete
2743 an edge that might turn an irreducible loop into a natural
2744 loop.
2745
2746 2016-02-26 Martin Jambor <mjambor@suse.cz>
2747
2748 PR middle-end/69920
2749 * tree-sra.c (sra_modify_assign): Do not remove loads of
2750 uninitialized aggregates to SSA_NAMEs.
2751
2752 2016-02-26 Richard Henderson <rth@redhat.com>
2753
2754 PR target/69709
2755 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
2756 pseudo in case the target rtx matches the source of the left
2757 shift.
2758
2759 2016-02-26 Martin Jambor <mjambor@suse.cz>
2760
2761 PR hsa/69568
2762 * hsa.h (hsa_type_packed_p): Declare.
2763 * hsa.c (hsa_type_packed_p): New function.
2764 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
2765 loads.
2766 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
2767 * hsa-brig.c (emit_basic_insn): Likewise.
2768
2769 2016-02-26 Martin Jambor <mjambor@suse.cz>
2770
2771 pr hsa/69674
2772 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
2773 pointers.
2774 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
2775
2776 2016-02-26 Martin Jambor <mjambor@suse.cz>
2777
2778 * hsa.h (is_a_helper): New overload for hsa_op_immed for
2779 hsa_op_with_type operands.
2780 (hsa_unsigned_type_for_type): Declare.
2781 * hsa.c (hsa_unsigned_type_for_type): New function.
2782 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
2783 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
2784 the finalizer. Do not emit extra move.
2785
2786 2016-02-26 Martin Jambor <mjambor@suse.cz>
2787
2788 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
2789 atomic operations in private segment.
2790
2791 2016-02-26 Martin Jambor <mjambor@suse.cz>
2792
2793 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
2794 statements to wi->info. Also disallow omp simd constructs.
2795 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
2796 for not gridifying. Dump special string for omp_for.
2797
2798 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2799
2800 PR target/69245
2801 * config/aarch64/aarch64.c (aarch64_set_current_function):
2802 Save/restore target globals when switching to
2803 target_option_default_node.
2804
2805 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2806
2807 PR target/69613
2808 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
2809 Return 0 if !SHIFT_COUNT_TRUNCATED.
2810
2811 2016-02-26 Jakub Jelinek <jakub@redhat.com>
2812 Eric Botcazou <ebotcazou@adacore.com>
2813
2814 PR rtl-optimization/69891
2815 * dse.c (scan_insn): If we can't figure out memset arguments
2816 or they are non-constant, call clear_rhs_from_active_local_stores.
2817
2818 2016-02-26 Martin Liska <mliska@suse.cz>
2819
2820 * doc/extend.texi: Mention clog10, clog10f an clog10l
2821 in Builtins section.
2822
2823 2016-02-26 Martin Liska <mliska@suse.cz>
2824
2825 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
2826 CHECKING_P.
2827 (resolve_args_picking_1): Likewise.
2828 * dwarf2out.h (struct GTY): Likewise.
2829
2830 2016-02-26 Martin Liska <mliska@suse.cz>
2831
2832 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
2833 with flag_checking.
2834 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2835
2836 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2837 Martin Liska <mliska@suse.cz>
2838
2839 * doc/install.texi: Mention --enable-valgrind-annotations.
2840
2841 2016-02-26 Richard Biener <rguenther@suse.de>
2842
2843 PR tree-optimization/69551
2844 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
2845 looking through aliases adjust DECL_PT_UID to refer to the
2846 ultimate alias target.
2847
2848 2016-02-25 Martin Liska <mliska@suse.cz>
2849
2850 PR middle-end/69919
2851 * alloc-pool.c (after_memory_report): New variable.
2852 * alloc-pool.h (base_pool_allocator ::release): Do not use
2853 the infrastructure if after_memory_report.
2854 * toplev.c (toplev::main): Mark after memory report.
2855
2856 2016-02-25 Richard Biener <rguenther@suse.de>
2857
2858 PR tree-optimization/48795
2859 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
2860
2861 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
2862
2863 PR driver/68463
2864 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
2865 offloading is enabled and -fopenacc or -fopenmp is specified.
2866 (CRTOFFLOADEND): Likewise.
2867 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
2868 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
2869 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
2870 (offload_objects_file_name): New static var.
2871 (tool_cleanup): Remove offload_objects_file_name file.
2872 (find_offloadbeginend): Replace with ...
2873 (find_crtoffloadtable): ... this.
2874 (run_gcc): Remove offload_argc and offload_argv.
2875 Get offload_objects_file_name from -foffload-objects=... option.
2876 Read names of object files with offload from this file, pass them to
2877 compile_images_for_offload_targets. Don't call find_offloadbeginend and
2878 don't pass offloadbegin and offloadend to the linker. Don't pass
2879 offload non-LTO files to the linker, because now they're not claimed.
2880
2881 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
2882
2883 PR ipa/69630
2884 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
2885 on builtin_unreachable.
2886
2887 2016-02-25 Jakub Jelinek <jakub@redhat.com>
2888
2889 PR rtl-optimization/69896
2890 * regcprop.c: Include cfgrtl.h.
2891 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
2892 than remembered mode, either delete it (if noop_move_p), or
2893 treat like copy_p but not noop_p instruction.
2894
2895 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2896
2897 PR debug/69705
2898 * dwarf2out.c (gen_variable_die): Work around buggy LTO
2899 - allow NULL decl for Fortran DW_TAG_common_block variables.
2900
2901 2016-02-24 Jason Merrill <jason@redhat.com>
2902
2903 * common.opt (flifetime-dse): Add -flifetime-dse=1.
2904
2905 2016-02-24 Richard Biener <rguenther@suse.de>
2906 Jakub Jelinek <jakub@redhat.com>
2907
2908 PR middle-end/69760
2909 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
2910 conditionally executed ops to well-defined overflow behavior.
2911
2912 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2913
2914 PR middle-end/69915
2915 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
2916 elements.
2917
2918 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2919
2920 PR rtl-optimization/69886
2921 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
2922 argument. Use it when checking validity of set instructions.
2923 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
2924 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
2925 callsite.
2926 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
2927 * store-motion.c (find_moveable_store): Update
2928 can_assign_to_reg_without_clobbers_p callsite.
2929
2930 2016-02-24 Richard Biener <rguenther@suse.de>
2931
2932 PR middle-end/68963
2933 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
2934 bogus check.
2935 (record_nonwrapping_iv): Do not fall back to the low/high bound
2936 for non-constant IV bases if the stmt is not always executed.
2937
2938 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2939
2940 * config/arm/arm-cores.def (cortex-a32): New entry.
2941 * config/arm/arm-tables.opt: Regenerate.
2942 * config/arm/arm-tune.md: Regenerate.
2943 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
2944 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
2945 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
2946 for -mcpu and -mtune.
2947
2948 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2949
2950 PR target/69875
2951 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
2952 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
2953 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
2954 (atomic_loaddi_1): Delete.
2955 (atomic_loaddi): Rewrite expander using the above changes.
2956
2957 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2958
2959 PR c/69918
2960 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
2961 2 to 3.
2962
2963 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2964 Richard Biener <rguenth@suse.de>
2965
2966 PR middle-end/69909
2967 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
2968 set_mem_attributes if tem is SSA_NAME which got expanded
2969 as a MEM.
2970
2971 2016-02-24 Richard Biener <rguenther@suse.de>
2972
2973 PR tree-optimization/69907
2974 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
2975 end of permutations for BB vectorization.
2976
2977 2016-02-24 Christian Bruel <christian.bruel@st.com>
2978
2979 * config/arm/arm-c.c (arm_option_override): Initialize
2980 target_option_current_node.
2981 * config/arm/arm.c (arm_pragma_target_parse): Replace
2982 build_target_option_node call by target_option_current_node.
2983 Set target_option_current_node.
2984 Fix comments.
2985
2986 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
2987
2988 PR target/69810
2989 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
2990 define_insn_and_split to define_insn.
2991 (zero_extendqi<mode>2_dot2): Same.
2992 (extendqi<mode>2_dot): Same.
2993 (extendqi<mode>2_dot2): Same.
2994
2995 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
2996
2997 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
2998 and add bypass for AES{D,E} and AESMC pairs.
2999 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
3000 and AESMC pairs.
3001
3002 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
3003
3004 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
3005 series for reciprocal square root in Exynos M1.
3006
3007 2016-02-23 Martin Sebor <msebor@redhat.com>
3008
3009 PR c/69759
3010 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
3011 __builtin_alloca_with_align.
3012
3013 2016-02-23 Richard Henderson <rth@redhat.com>
3014
3015 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
3016 (ix86_register_pragmas): Remove __seg_tls.
3017 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
3018 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
3019 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
3020 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
3021 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
3022 * doc/extend.texi (__seg_tls): Remove item.
3023
3024 2016-02-23 Richard Biener <rguenther@suse.de>
3025
3026 * alloc-pool.h (struct allocation_object): Make id member
3027 conditional on CHECKING_P again.
3028 (get_instance): Adjust.
3029 (base_pool_allocator): Likewise.
3030
3031 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
3032
3033 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
3034 (parallelize_loops): In OpenACC kernels mode, set n_threads to
3035 zero.
3036 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
3037 flag_openacc.
3038 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3039
3040 2016-02-23 Richard Biener <rguenther@suse.de>
3041
3042 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
3043 * bitmap.h (struct bitmap_usage): Likewise.
3044 (bitmap_move): Declare.
3045 * bitmap.c (register_overhead): Take size_t argument.
3046 (bitmap_move): New function.
3047 * df-problems.c (df_rd_transfer_function): Use bitmap_move
3048 to properly account overhead.
3049 * tree.c (free_node): Use tree_size.
3050
3051 2016-02-23 Jakub Jelinek <jakub@redhat.com>
3052
3053 PR c++/69902
3054 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
3055 when inverting comparison.
3056
3057 PR c/69900
3058 * common.opt (Wunreachable-code): Add Warning flag.
3059
3060 2016-02-23 Mark Wielaard <mjw@redhat.com>
3061 Jakub Jelinek <jakub@redhat.com>
3062
3063 PR c/69911
3064 * cgraphunit.c (check_global_declaration): Check main_input_filename
3065 and DECL_SOURCE_FILE are not NULL.
3066
3067 2016-02-23 Martin Jambor <mjambor@suse.cz>
3068
3069 PR tree-optimization/69666
3070 * tree-sra.c (sra_modify_assign): Do not attempt to create
3071 default_def replacements for unscalarizable regions.
3072
3073 2016-02-20 Mark Wielaard <mjw@redhat.com>
3074
3075 PR c/28901
3076 * cgraphunit.c (check_global_declaration): Check level of
3077 warn_unused_const_variable and main_input_filename.
3078 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
3079 (-Wunused-variable): For C implies -Wunused-const-variable=1.
3080 (-Wunused-const-variable): Explain levels 1 and 2.
3081
3082 2016-02-22 Jakub Jelinek <jakub@redhat.com>
3083
3084 PR target/69888
3085 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
3086 identical arguments. Formatting and spelling fixes.
3087
3088 PR target/69885
3089 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
3090 be specified.
3091
3092 PR target/69894
3093 PR target/69895
3094 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
3095 and m68k-devices.def.
3096 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
3097 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
3098
3099 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
3100
3101 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
3102 and HImode registers.
3103
3104 2016-02-22 Richard Biener <rguenther@suse.de>
3105
3106 PR tree-optimization/69882
3107 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
3108 preserve permutations present because of gaps.
3109 (vect_supported_load_permutation_p): Always continue checking
3110 permutations after vect_attempt_slp_rearrange_stmts.
3111
3112 2016-02-22 Bin Cheng <bin.cheng@arm.com>
3113
3114 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
3115 min_profitable_estimate, rather than min_profitable_iters.
3116
3117 2016-02-22 Jakub Jelinek <jakub@redhat.com>
3118
3119 PR target/69885
3120 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
3121 SImode for last match_operand.
3122
3123 2016-02-22 Martin Liska <mliska@suse.cz>
3124
3125 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
3126 return bitsize - 1 as the return value.
3127
3128 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
3129
3130 PR target/69806
3131 PR target/54089
3132 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
3133 Handle negative shift counts.
3134 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
3135 force_reg on the shift constant.
3136 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
3137 (lshrsi3_d): Handle negative shift counts.
3138
3139 2016-02-22 Richard Biener <rguenther@suse.de>
3140 Tom de Vries <tom@codesourcery.com>
3141
3142 * graph.c: Include dumpfile.h.
3143 (print_graph_cfg): Split into three overloads.
3144 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
3145
3146 2016-02-22 Tom de Vries <tom@codesourcery.com>
3147
3148 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
3149 dump-fn.
3150
3151 2016-02-22 Richard Biener <rguenther@suse.de>
3152
3153 PR ipa/37448
3154 * ipa-inline-transform.c (inline_call): When not updating
3155 overall summaries adjust self size by the growth estimate.
3156 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
3157 hash-set, do not update overall summaries here. Renamed from ...
3158 (inline_to_all_callers): ... this which is now wrapping the
3159 above and performing delayed overall summary update.
3160 (early_inline_small_functions): Delay updating of the overall
3161 summary.
3162
3163 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3164
3165 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
3166 variable.
3167
3168 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3169
3170 PR driver/69805
3171 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
3172 :%* in %:gt() argument.
3173 (greater_than_spec_func): Adjust for expecting only numbers,
3174 if there are more than two numbers, compare the last two.
3175
3176 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
3177
3178 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
3179 -Wnarrowing with -std.
3180
3181 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3182
3183 PR c++/69851
3184 * expr.c (store_field): Don't use bit-field path if exp is
3185 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
3186 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
3187 and the assignment can be performed by bitwise copy. Formatting
3188 fix.
3189
3190 PR middle-end/69838
3191 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
3192 call copy_reg_eh_region_note_forward on before and/or after sequences
3193 and remove note from insn if it no longer can throw.
3194
3195 PR target/69820
3196 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
3197 if TARGET_AVX512BW.
3198
3199 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3200
3201 * config/s390/vector.md: Add missing commutative operand markers
3202 to the patterns which qualify for one.
3203 * config/s390/vx-builtins.md: Likewise.
3204
3205 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3206
3207 * config/s390/vector.md (VI, VI_QHS): Add single element vector
3208 types to mode iterators.
3209 (vec_double): ... and mode attribute.
3210 * config/s390/vx-builtins.md (non_vec_int): Likewise.
3211
3212 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3213
3214 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
3215 Change the predicate of op2 from nonimmediate to general and let
3216 reload fix it if necessary.
3217
3218 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3219
3220 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
3221
3222 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3223
3224 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
3225 mode.
3226
3227 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3228
3229 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
3230 * config/s390/s390.c (s390_expand_vec_movstr): New function.
3231 * config/s390/s390.md ("movstr<P:mode>"): Call
3232 s390_expand_vec_movstr.
3233
3234 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3235
3236 * config/s390/s390.md: Add missing output modifier for operand 1
3237 to print it as address properly.
3238
3239 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3240
3241 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
3242 * config/s390/2964.md: New file.
3243 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
3244 of insn grouping attributes depending on the CPU level.
3245 (s390_get_unit_mask): New function.
3246 (s390_sched_score): Remove the OOO from the scheduling macros.
3247 Add loop to calculate a score for the instruction mix.
3248 (s390_sched_reorder): Likewise plus improve debug output.
3249 (s390_sched_variable_issue): Rename macros as above. Calculate
3250 the unit distances after actually scheduling an insn. Improve
3251 debug output.
3252 (s390_sched_init): Clear last_scheduled_unit_distance array.
3253 * config/s390/s390.md: Include 2964.md.
3254
3255 2016-02-18 Jakub Jelinek <jakub@redhat.com>
3256
3257 PR target/69671
3258 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
3259 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
3260 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
3261 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
3262 *avx512f_<code>v8div16qi2_mask_1): New insns.
3263
3264 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3265
3266 PR target/68404
3267 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
3268 2016-02-09 change.
3269
3270 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
3271 earlyclobber from target. Use wF constraint for fused memory
3272 address.
3273 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3274
3275 2016-02-18 Jakub Jelinek <jakub@redhat.com>
3276 Martin Liska <mliska@suse.cz>
3277
3278 PR sanitizer/69863
3279 * cfgexpand.c (asan_sanitize_stack_p): New function.
3280 (partition_stack_vars): Use the function.
3281 (expand_stack_vars): Likewise.
3282 (defer_stack_allocation): Likewise.
3283 (expand_used_vars): Likewise.
3284
3285 2016-02-18 Richard Biener <rguenther@suse.de>
3286
3287 PR middle-end/69553
3288 * fold-const.c (operand_equal_p): Properly compare offsets for
3289 IMAGPART_EXPR and ARRAY_REF.
3290
3291 2016-02-18 Nick Clifton <nickc@redhat.com>
3292
3293 PR target/62254
3294 PR target/69610
3295 * config/arm/arm.c (arm_option_override_internal): Disable
3296 interworking if the target does not support thumb instructions.
3297 (arm_reload_in_hi): Handle the case where a register to register
3298 move needs reloading because there is no simple pattern to handle
3299 it.
3300 (arm_reload_out_hi): Likewise.
3301
3302 2016-02-18 Richard Biener <rguenther@suse.de>
3303
3304 PR middle-end/69854
3305 * match.pd: Don't use fold_binary or fold_unary for folding
3306 constants.
3307
3308 2016-02-17 Jakub Jelinek <jakub@redhat.com>
3309
3310 PR c++/69850
3311 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
3312 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
3313 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
3314 warn on gimple_no_warning_p statements.
3315
3316 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
3317
3318 * doc/extend.texi (C++ Attributes): Correct description of
3319 warn_unused type attribute.
3320
3321 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3322
3323 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
3324 correct instruction.
3325
3326 2016-02-17 Richard Biener <rguenther@suse.de>
3327
3328 PR rtl-optimization/69609
3329 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
3330 (find_traces_1_round): When ending a trace update cached priority
3331 of successors.
3332 (bb_to_key): Use cached priority when available.
3333 (copy_bb): Initialize cached priority.
3334 (reorder_basic_blocks_software_trace_cache): Likewise.
3335
3336 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3337
3338 PR target/69161
3339 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
3340 New predicate.
3341 (aarch64_comparison_operator): Break overly long line into two.
3342 (aarch64_comparison_operation): Likewise.
3343 * config/aarch64/aarch64.md (cstorecc4): Use
3344 aarch64_comparison_operator_mode instead of
3345 aarch64_comparison_operator.
3346 (cstore<mode>4): Likewise.
3347 (aarch64_cstore<mode>): Likewise.
3348 (*cstoresi_insn_uxtw): Likewise.
3349 (cstore<mode>_neg): Likewise.
3350 (*cstoresi_neg_uxtw): Likewise.
3351
3352 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3353
3354 PR target/69161
3355 * config/arm/predicates.md (arm_comparison_operator_mode):
3356 New predicate.
3357 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
3358 instead of arm_comparison_operator.
3359 (*mov_negscc): Likewise.
3360 (*mov_notscc): Likewise.
3361 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
3362 (*thumb2_mov_negscc): Likewise.
3363 (*thumb2_mov_negscc_strict_it): Likewise.
3364 (*thumb2_mov_notscc): Likewise.
3365 (*thumb2_mov_notscc_strict_it): Likewise.
3366
3367 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
3368
3369 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
3370 Add missing return.
3371
3372 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
3373
3374 * config/visium/visium.c (machine_libfunc_index): New enum.
3375 (machine_libfuncs): New structure.
3376 (visium_libfuncs): New static variable.
3377 (TARGET_INIT_LIBFUNCS): Define to...
3378 (visium_init_libfuncs): ...this. New function.
3379 (expand_block_move_4): Use the appropriate libfunc.
3380 (expand_block_move_2): Likewise.
3381 (expand_block_move_1): Likewise.
3382 (expand_block_set_4): Likewise.
3383 (expand_block_set_2): Likewise.
3384 (expand_block_set_1): Likewise.
3385 (visium_trampoline_init): Likewise.
3386
3387 2016-02-17 Nick Clifton <nickc@redhat.com>
3388
3389 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
3390 TI's devices.csv file as of March 2016.
3391
3392 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
3393
3394 PR Target/48344
3395 * opts-global.c (handle_common_deferred_options): Introduce and
3396 initialize two global variables to remember command-line options
3397 specifying a stack-limiting register.
3398 * opts.h: Add extern declarations of the two new global variables.
3399 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
3400 variable based on the values of the two new global variables.
3401
3402 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3403
3404 PR c/69835
3405 * common.opt (Wnonnull-compare): New warning.
3406 * doc/invoke.texi (-Wnonnull): Remove text about comparison
3407 of arguments against NULL.
3408 (-Wnonnull-compare): Document.
3409 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
3410 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
3411 * passes.def (pass_warn_nonnull_compare): Add.
3412 * gimple-ssa-nonnull-compare.c: New file.
3413
3414 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3415
3416 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
3417 AARCH64_EXTRA_TUNE_RECIP_SQRT.
3418
3419 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3420
3421 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
3422 reciprocal sqrt for -mlow-precision-recip-sqrt.
3423
3424 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3425 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3426
3427 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
3428 always use lane loads to construct non-constant vectors.
3429
3430 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3431
3432 * config/aarch64/aarch64.md
3433 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
3434 constraints for operand 3.
3435 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
3436
3437 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3438 Richard Biener <rguenther@suse.de>
3439
3440 PR tree-optimization/69820
3441 * tree-vect-patterns.c (type_conversion_p): Return false if
3442 *orig_type is unsigned single precision or boolean.
3443 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
3444 Formatting fix.
3445
3446 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3447
3448 PR rtl-optimization/69764
3449 PR rtl-optimization/69771
3450 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
3451 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
3452
3453 2016-02-16 Richard Biener <rguenther@suse.de>
3454
3455 PR tree-optimization/69776
3456 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
3457 sets from caller.
3458 (indirect_refs_may_alias_p): Likewise.
3459 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
3460 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
3461 according to tbaa_p.
3462 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
3463 (optimize_stmt): For redundant store discovery do not allow tbaa.
3464
3465 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
3466
3467 PR tree-optimization/69714
3468 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
3469 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
3470
3471 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
3472
3473 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
3474 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
3475 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
3476 * config/arc/arc.c (arc_init): Check FPU options.
3477 (get_arc_condition_code): Handle new CC_FPU* modes.
3478 (arc_select_cc_mode): Likewise.
3479 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
3480 register pair only. Allow access for ARCv2 accumulator.
3481 (gen_compare_reg): Whenever we have FPU support use FPU compare
3482 instructions.
3483 (arc_reorg): Don't generate brcc insns when FPU compare
3484 instructions are involved.
3485 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
3486 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
3487 floating point emulation.
3488 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
3489 (REVERSE_CONDITION): Add new CC_FPU* modes.
3490 (TARGET_FP_SP_BASE): Define.
3491 (TARGET_FP_DP_BASE): Likewise.
3492 (TARGET_FP_SP_FUSED): Likewise.
3493 (TARGET_FP_DP_FUSED): Likewise.
3494 (TARGET_FP_SP_CONV): Likewise.
3495 (TARGET_FP_DP_CONV): Likewise.
3496 (TARGET_FP_SP_SQRT): Likewise.
3497 (TARGET_FP_DP_SQRT): Likewise.
3498 (TARGET_FP_DP_AX): Likewise.
3499 * config/arc/arc.md (ARCV2_ACC): New constant.
3500 (type): New fpu type attribute.
3501 (SDF): Conditional iterator.
3502 (cstore<mode>, cbranch<mode>): Change expand condition.
3503 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
3504 handles FPU/FPX cases as well.
3505 * config/arc/arc.opt (mfpu): New option.
3506 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
3507 Renamed.
3508 (adddf3, muldf3, subdf3): Removed.
3509 * config/arc/predicates.md (proper_comparison_operator): Recognize
3510 CC_FPU* modes.
3511 * config/arc/fpu.md: New file.
3512 * doc/invoke.texi (ARC Options): Document mfpu option.
3513
3514 2016-02-16 Richard Biener <rguenther@suse.de>
3515
3516 PR rtl-optimization/69291
3517 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
3518 noce_operand_ok check.
3519
3520 2016-02-16 Tom de Vries <tom@codesourcery.com>
3521
3522 PR lto/67709
3523 * omp-low.c (simd_clone_create): Remove call to
3524 symtab->call_cgraph_insertion_hooks.
3525
3526 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3527
3528 PR tree-optimization/69802
3529 * tree-ssa-reassoc.c (update_range_test): If op is
3530 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
3531 op == 1 test of precision 1 integral op, otherwise handle
3532 that case as op itself. Fix up formatting.
3533 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
3534 up formatting.
3535
3536 2016-02-16 Richard Biener <rguenther@suse.de>
3537
3538 PR tree-optimization/69586
3539 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
3540 types for conversion sources.
3541
3542 2016-02-16 Richard Biener <rguenther@suse.de>
3543
3544 PR middle-end/69801
3545 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
3546 mask OEP_ADDRESS_OF.
3547
3548 2016-02-16 Alan Modra <amodra@gmail.com>
3549
3550 PR target/68973
3551 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
3552 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
3553 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
3554 (p8_mtvsrwz): New.
3555 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
3556 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
3557 (p8_fmrgow_<mode>): Likewise.
3558 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
3559 changes.
3560 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
3561 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
3562 to use movdi_internal64. Remove op0_di.
3563 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
3564
3565 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
3566
3567 Add support for the FCCMP insn types
3568
3569 * config/aarch64/aarch64.md (fccmp): Change insn type.
3570 (fccmpe): Likewise.
3571 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
3572 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
3573 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
3574 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
3575 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
3576 * config/arm/types.md (fccmps): Add new insn type.
3577 (fccmpd): Likewise.
3578
3579 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
3580
3581 * alias.c (get_alias_set): Fix a typo in comment.
3582
3583 2016-02-15 Richard Biener <rguenther@suse.de>
3584
3585 PR tree-optimization/69595
3586 * match.pd: Complete range test simplification to true.
3587
3588 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
3589
3590 PR rtl-optimization/69648
3591 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
3592 pic_offset_table_rtx.
3593
3594 PR rtl-optimization/69752
3595 * ira.c (update_equiv_regs): When looking for more than a single SET,
3596 also take other side effects into account.
3597
3598 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
3599
3600 * config/s390/s390.c (s390_function_profiler): Add a new sequence
3601 for z900+ CPUs in 31-bit mode.
3602
3603 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
3604
3605 * common/config/s390/s390-common.c (s390_supports_split_stack):
3606 New function.
3607 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
3608 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
3609 * config/s390/s390.c (struct machine_function): New field
3610 split_stack_varargs_pointer.
3611 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
3612 in s390_emit_prologue.
3613 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
3614 vararg pointer.
3615 (morestack_ref): New global.
3616 (SPLIT_STACK_AVAILABLE): New macro.
3617 (s390_expand_split_stack_prologue): New function.
3618 (s390_live_on_entry): New function.
3619 (s390_va_start): Use split-stack vararg pointer if appropriate.
3620 (s390_asm_file_end): Emit the split-stack note sections.
3621 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
3622 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
3623 (UNSPECV_SPLIT_STACK_CALL): New unspec.
3624 (UNSPECV_SPLIT_STACK_DATA): New unspec.
3625 (split_stack_prologue): New expand.
3626 (split_stack_space_check): New expand.
3627 (split_stack_data): New insn.
3628 (split_stack_call): New expand.
3629 (split_stack_call_*): New insn.
3630 (split_stack_cond_call): New expand.
3631 (split_stack_cond_call_*): New insn.
3632
3633 2016-02-15 Richard Biener <rguenther@suse.de>
3634
3635 PR tree-optimization/69783
3636 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3637 Add trivially correct cases.
3638
3639 2016-02-15 Tom de Vries <tom@codesourcery.com>
3640
3641 PR lto/69655
3642 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
3643 do_force_output.
3644 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
3645
3646 2016-02-15 Richard Biener <rguenther@suse.de>
3647
3648 PR tree-optimization/69776
3649 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3650 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
3651 indicate whether we can use TBAA to disambiguate against stores.
3652 Use alias-set zero if not.
3653 (visit_reference_op_store): Do not use TBAA when looking up
3654 redundant stores.
3655 * tree-ssa-pre.c (compute_avail): Use TBAA here.
3656 (eliminate_dom_walker::before_dom_children): But not when looking
3657 up redundant stores.
3658
3659 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
3660
3661 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
3662
3663 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3664
3665 * config/i386/znver1.md
3666 (znver1_pop, znver1_pop_mem,
3667 znver1_load_imov_double_store,
3668 znver1_load_imov_direct_store,
3669 znver1_load_imov_direct_load,
3670 znver1_load_imov_double_load): Add new.
3671 (znver1_insn, znver1_insn_load): Add icmov type.
3672 (znver1_sseavx_fma,
3673 znver1_sseavx_fma_load,
3674 znver1_avx256_fma,
3675 znver1_avx256_fma_load): Fix pipe usage.
3676
3677 2016-02-14 Alan Modra <amodra@gmail.com>
3678
3679 PR target/68973
3680 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
3681 with an invalid hard reg, reload just the reg not the entire
3682 pre/post-inc/dec address expression.
3683
3684 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
3685
3686 PR target/67260
3687 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
3688 fixed R1_REG scratch reg.
3689 (sibcall_value_pcrel_fdpic): Likewise.
3690
3691 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
3692
3693 PR target/67636
3694 PR target/64345
3695 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
3696
3697 2016-02-12 Walter Lee <walt@tilera.com>
3698
3699 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
3700 * config/tilegx/t-tilegx: Likewise.
3701
3702 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3703
3704 PR other/69554
3705 * diagnostic-show-locus.c (struct line_span): New struct.
3706 (layout::get_first_line): Delete.
3707 (layout::get_last_line): Delete.
3708 (layout::get_num_line_spans): New member function.
3709 (layout::get_line_span): Likewise.
3710 (layout::print_heading_for_line_span_index_p): Likewise.
3711 (layout::get_expanded_location): Likewise.
3712 (layout::calculate_line_spans): Likewise.
3713 (layout::m_first_line): Delete.
3714 (layout::m_last_line): Delete.
3715 (layout::m_line_spans): New field.
3716 (layout::layout): Update comment. Replace m_first_line and
3717 m_last_line with m_line_spans, replacing their initialization
3718 with a call to calculate_line_spans.
3719 (diagnostic_show_locus): When printing source lines and
3720 annotations, rather than looping over a single span
3721 of lines, instead loop over each line_span within
3722 the layout, with an inner loop over the lines within them.
3723 Call the context's start_span callback when changing line spans.
3724 * diagnostic.c (diagnostic_initialize): Initialize start_span.
3725 (diagnostic_build_prefix): Break out the building of the location
3726 part of the string into...
3727 (diagnostic_get_location_text): ...this new function, rewriting
3728 it from nested ternary expressions to a sequence of "if"
3729 statements.
3730 (default_diagnostic_start_span_fn): New function.
3731 * diagnostic.h (diagnostic_start_span_fn): New typedef.
3732 (diagnostic_context::start_span): New field.
3733 (default_diagnostic_start_span_fn): New prototype.
3734
3735 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3736
3737 PR driver/69779
3738 * gcc.c (driver::finalize): Fix cleanup of "specs".
3739
3740 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3741
3742 PR driver/69265
3743 PR driver/69453
3744 * gcc.c (driver::driver): Initialize m_option_suggestions.
3745 (driver::~driver): Clean up m_option_suggestions.
3746 (suggest_option): Convert to...
3747 (driver::suggest_option): ...this, and split out into
3748 driver::build_option_suggestions and find_closest_string.
3749 (driver::build_option_suggestions): New function, from
3750 first half of suggest_option. Special-case
3751 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
3752 the sanitizer_opts array. For options of enum types, add the
3753 various enum values to the candidate strings.
3754 (driver::handle_unrecognized_options): Remove "const".
3755 * gcc.h (driver::handle_unrecognized_options): Likewise.
3756 (driver::build_option_suggestions): New decl.
3757 (driver::suggest_option): New decl.
3758 (driver::m_option_suggestions): New field.
3759 * opts-common.c (add_misspelling_candidates): New function.
3760 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
3761 and make non-static.
3762 * opts.h (sanitizer_opts): New array decl.
3763 (add_misspelling_candidates): New function decl.
3764 * spellcheck.c (find_closest_string): New function.
3765 * spellcheck.h (find_closest_string): New function decl.
3766
3767 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3768
3769 PR rtl-optimization/69764
3770 PR rtl-optimization/69771
3771 * optabs.c (expand_binop_directly): For shift_optab_p, force
3772 convert_modes with VOIDmode if xop1 has VOIDmode.
3773
3774 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3775
3776 PR target/69729
3777 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
3778 to correctly determine instrumentation thunks.
3779
3780 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3781
3782 PR ipa/69241
3783 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
3784 type by reference, force lhs on the call.
3785
3786 PR ipa/68672
3787 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
3788 Compute retval and retbnd early in all cases if split_part_return_p
3789 and return_bb is not EXIT. Remove all clobber stmts and reset
3790 all debug stmts that refer to SSA_NAMEs defined in split part,
3791 except if it is retval, in that case replace the old retval with the
3792 lhs of the call to the split part.
3793
3794 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3795
3796 revert:
3797 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3798
3799 PR middle-end/66726
3800 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3801 whose result is used in PHI.
3802 (maybe_optimize_range_tests): Likewise.
3803 (final_range_test_p): Likweise.
3804
3805 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3806
3807 PR middle-end/66726
3808 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3809 whose result is used in PHI.
3810 (maybe_optimize_range_tests): Likewise.
3811 (final_range_test_p): Likweise.
3812
3813 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3814
3815 * cgraph.c: Spelling fixes - behaviour -> behavior and
3816 neighbour -> neighbor.
3817 * target.def: Likewise.
3818 * sel-sched.c: Likewise.
3819 * config/mips/mips.c: Likewise.
3820 * config/arc/arc.md: Likewise.
3821 * config/arm/cortex-a57.md: Likewise.
3822 * config/arm/arm.c: Likewise.
3823 * config/arm/neon.md: Likewise.
3824 * config/arm/arm-c.c: Likewise.
3825 * config/vms/vms-c.c: Likewise.
3826 * config/s390/s390.c: Likewise.
3827 * config/i386/znver1.md: Likewise.
3828 * config/i386/i386.c: Likewise.
3829 * config/ia64/hpux-unix2003.h: Likewise.
3830 * config/msp430/msp430.md: Likewise.
3831 * config/rx/rx.c: Likewise.
3832 * config/rx/rx.md: Likewise.
3833 * config/aarch64/aarch64-simd.md: Likewise.
3834 * config/aarch64/aarch64.c: Likewise.
3835 * config/nvptx/nvptx.c: Likewise.
3836 * config/bfin/bfin.c: Likewise.
3837 * config/cris/cris.opt: Likewise.
3838 * config/rs6000/rs6000.c: Likewise.
3839 * target.h: Likewise.
3840 * spellcheck.c: Likewise.
3841 * ira-build.c: Likewise.
3842 * tree-inline.c: Likewise.
3843 * builtins.c: Likewise.
3844 * lra-constraints.c: Likewise.
3845 * explow.c: Likewise.
3846 * hwint.h: Likewise.
3847 * targhooks.c: Likewise.
3848 * tree-vect-data-refs.c: Likewise.
3849 * expr.c: Likewise.
3850 * doc/tm.texi: Likewise.
3851 * doc/extend.texi: Likewise.
3852 * doc/install.texi: Likewise.
3853 * doc/md.texi: Likewise.
3854 * tree-ssa-tail-merge.c: Likewise.
3855 * sched-int.h: Likewise.
3856 * match.pd: Likewise.
3857 * sched-ebb.c: Likewise.
3858 * target.def (omit_struct_return_reg): Likewise.
3859 * gimple-ssa-isolate-paths.c: Likewise.
3860 (find_implicit_erroneous_behaviour): Renamed to...
3861 (find_implicit_erroneous_behavior): ... this.
3862 (find_explicit_erroneous_behaviour): Renamed to...
3863 (find_explicit_erroneous_behavior): ... this.
3864 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
3865
3866 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
3867
3868 PR rtl-optimization/64682
3869 PR rtl-optimization/69567
3870 PR rtl-optimization/69737
3871 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
3872 in I2 as well, just lose it.
3873
3874 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3875
3876 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
3877 New variable.
3878 (aarch64_last_printed_tune_string): Likewise.
3879 (aarch64_declare_function_name): Only output .arch assembler
3880 directive if it will be different from the previously output
3881 directive. Same for .tune comment but only if -dA is set.
3882 (aarch64_start_file): New function.
3883 (TARGET_ASM_FILE_START): Define.
3884
3885 2016-02-11 David Malcolm <dmalcolm@redhat.com>
3886
3887 PR plugins/69758
3888 * Makefile.in (PLUGIN_HEADERS): Add params.list.
3889
3890 2016-02-11 Jakub Jelinek <jakub@redhat.com>
3891
3892 PR target/65313
3893 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
3894 -Wmaybe-uninitialized warning.
3895
3896 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
3897
3898 PR target/69713
3899 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
3900
3901 2016-02-11 Richard Biener <rguenther@suse.de>
3902
3903 PR rtl-optimization/69291
3904 * ifcvt.c (noce_try_store_flag_constants): Do not allow
3905 subexpressions affected by changing the result.
3906
3907 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
3908
3909 PR target/69148
3910 * lra-constraints.c (curr_insn_transform): Find in/out operands
3911 for secondary memory moves. Update dups.
3912
3913 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
3914
3915 PR tree-optimization/69652
3916 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
3917 to nested loop, did source re-formatting, skip debug statements,
3918 add check on statement with volatile operand, remove dead scalar
3919 statements.
3920
3921 2016-02-10 Jakub Jelinek <jakub@redhat.com>
3922 Patrick Palka <ppalka@gcc.gnu.org>
3923
3924 PR ipa/69241
3925 PR c++/69649
3926 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
3927 calls if the return type is TREE_ADDRESSABLE.
3928 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
3929 * ipa-split.c (split_function): Fix doubled "we" in comment.
3930 Use void return type for the split part even if
3931 !split_point->split_part_set_retval.
3932
3933 2016-02-10 Bin Cheng <bin.cheng@arm.com>
3934
3935 PR tree-optimization/68021
3936 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
3937 when computing the value of biv cand by itself.
3938
3939 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
3940
3941 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
3942 (cortexa57_tunings): Likewise.
3943 (cortexa72_tunings): Likewise.
3944 (arch_macro_fusion_pair_p): Add support for AES fusion.
3945 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
3946 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3947 Allow virtual registers before reload so early scheduling works.
3948 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
3949 correct latency and pipeline.
3950 (cortex_a57_crypto_complex): Likewise.
3951 (cortex_a57_crypto_xor): Likewise.
3952 (define_bypass): Add AES bypass.
3953
3954 2016-02-10 Richard Biener <rguenther@suse.de>
3955
3956 PR tree-optimization/69726
3957 * passes.def: Add DCE pass before late uninit.
3958 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
3959 really fixup if-conversions job.
3960
3961 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
3962
3963 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
3964 (arm_cortex_a57_tune): Likewise.
3965 (aarch_macro_fusion_pair_p): Add support for AES fusion.
3966 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
3967
3968 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
3969
3970 * timevar.def (TV_PHASE_DBGINFO): Delete.
3971 (TV_PHASE_CHECK_DBGINFO): Likewise.
3972 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
3973
3974 2016-02-10 Richard Biener <rguenther@suse.de>
3975
3976 PR tree-optimization/69719
3977 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3978 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
3979
3980 2016-02-09 Andrew Pinski <apinski@cavium.com>
3981
3982 PR tree-opt/69282
3983 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
3984 get_vcond_mask_icode returns false.
3985
3986 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3987
3988 PR target/68404
3989 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
3990 an ADDIS that adds a pointer to a large constant that sets the
3991 upper16 bits with a load operation.
3992
3993 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
3994
3995 PR target/68532
3996 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
3997 order.
3998 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
3999 endian.
4000 (vzipq_s16): Likewise.
4001 (vzipq_s32): Likewise.
4002 (vzipq_f32): Likewise.
4003 (vzipq_u8): Likewise.
4004 (vzipq_u16): Likewise.
4005 (vzipq_u32): Likewise.
4006 (vzipq_p8): Likewise.
4007 (vzipq_p16): Likewise.
4008
4009 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
4010
4011 PR target/68532
4012 * config/arm/arm.c (neon_endian_lane_map): New function.
4013 (neon_vector_pair_endian_lane_map): New function.
4014 (arm_evpc_neon_vuzp): Allow for big endian lane order.
4015 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
4016 endian.
4017 (vuzpq_s16): Likewise.
4018 (vuzpq_s32): Likewise.
4019 (vuzpq_f32): Likewise.
4020 (vuzpq_u8): Likewise.
4021 (vuzpq_u16): Likewise.
4022 (vuzpq_u32): Likewise.
4023 (vuzpq_p8): Likewise.
4024 (vuzpq_p16): Likewise.
4025
4026 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
4027
4028 PR target/69634
4029 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
4030 debug insns.
4031
4032 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
4033
4034 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
4035 truncate const_int operand 1 to QImode.
4036
4037 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
4038
4039 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
4040 corresponding to an abnormal edge.
4041
4042 2016-02-09 Tom de Vries <tom@codesourcery.com>
4043
4044 PR tree-optimization/69599
4045 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
4046 function.
4047 (find_func_aliases_for_builtin_call, find_func_clobbers)
4048 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
4049 partition.
4050
4051 2016-02-09 Richard Biener <rguenther@suse.de>
4052
4053 PR tree-optimization/69715
4054 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
4055 LHS on calls as non-rewritable.
4056
4057 2016-02-09 Tom de Vries <tom@codesourcery.com>
4058
4059 PR lto/69707
4060 * lto-wrapper.c (append_diag_options): New function.
4061 (compile_offload_image): Call append_diag_options.
4062
4063 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
4064
4065 PR other/69722
4066 * doc/extend.texi (Flag Output Operands): Correct sectioning.
4067 Minor copy-edit to fix verb tenses.
4068
4069 2016-02-08 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR tree-optimization/69209
4072 * ipa-split.c (split_function): If split part is not
4073 returning retval, retval has gimple type but is not
4074 gimple value, force it into a SSA_NAME first.
4075
4076 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
4077
4078 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
4079 outdated section.
4080
4081 2016-02-08 Jason Merrill <jason@redhat.com>
4082
4083 PR c++/69631
4084 * convert.c (convert_to_integer_1): Check dofold on truncation
4085 distribution.
4086 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
4087 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
4088 Rename from *_nofold.
4089 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
4090 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
4091
4092 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
4093
4094 PR target/60410
4095 * tree.c (build_common_tree_nodes): Remove short_double argument.
4096 All callers changed.
4097 * tree.h (build_common_tree_nodes): Adjust declaration.
4098 * doc/invoke.texi (-fshort-double): Remove documentation.
4099 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4100 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
4101 * lto-wrapper.c (merge_and_complain, append_compiler_options)
4102 (append_linker_options): Don't handle OPT_fshort_double.
4103
4104 PR rtl-optimization/68730
4105 * lra-remat.c (insn_to_cand_activation): New static variable.
4106 (lra_remat): Allocate and free it.
4107 (create_cand): New arg activation. Initialize a field in
4108 insn_to_cand_activation if it is nonnull.
4109 (create_cands): Pass the activation insn to create_cand when making
4110 a candidate involving an output reload. Reorganize code a little.
4111 (do_remat): Keep track of active status of candidates in a separate
4112 bitmap.
4113
4114 2016-02-08 Richard Biener <rguenther@suse.de>
4115
4116 PR tree-optimization/69719
4117 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4118 Properly use absolute of the difference of the two offsets to
4119 compare or adjust the segment length.
4120
4121 2016-02-08 Richard Biener <rguenther@suse.de>
4122 Jeff Law <law@redhat.com>
4123
4124 PR target/68273
4125 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
4126 types for anonymous SSA names.
4127
4128 2016-02-08 Richard Biener <rguenther@suse.de>
4129
4130 PR rtl-optimization/69274
4131 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
4132
4133 2016-02-08 Jeff Law <law@redhat.com>
4134
4135 PR tree-optimization/65917
4136 * tree-ssa-dom.c (record_temporary_equivalences): Record both
4137 equivalences from if (x == y) style conditionals.
4138 (loop_depth_of_name): Remove.
4139 (record_equality): Remove loop depth check.
4140 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
4141 (const_and_copies::record_const_or_copy_raw): New member function.
4142 * tree-ssa-scopedtables.c
4143 (const_and_copies::record_const_or_copy_raw): New, factored out of
4144 (const_and_copies::record_const_or_copy): Call new member function.
4145
4146 2016-02-05 Jeff Law <law@redhat.com>
4147
4148 PR tree-optimization/68541
4149 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
4150 (count_stmts_in_block): New function.
4151 (poor_ifcvt_candidate_code): Likewise.
4152 (is_feasible_trace): Add some heuristics to determine when path
4153 splitting is profitable.
4154 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
4155 is a diamond with a single exit.
4156
4157 2016-02-05 Martin Sebor <msebor@redhat.com>
4158
4159 PR c++/69662
4160 * doc/invoke.texi: Update -Wplacement-new to take an optional
4161 argument.
4162
4163 2016-02-06 Richard Henderson <rth@redhat.com>
4164
4165 PR c/69643
4166 * tree.c (tree_nop_conversion_p): Do not strip casts into or
4167 out of non-standard address spaces.
4168
4169 2016-02-05 Jakub Jelinek <jakub@redhat.com>
4170
4171 PR rtl-optimization/69691
4172 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
4173
4174 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
4175
4176 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
4177 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
4178 (*ieee128_mfvsrd_64bit): Likewise.
4179 (*ieee128_mfvsrd_32bit): Likewise.
4180
4181 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4182
4183 PR target/69369
4184 Revert r232560:
4185 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4186
4187 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4188 instrumented_version.
4189
4190 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
4191
4192 * doc/invoke.texi (Optimize Options): In table of --param options
4193 rename second occurrence of tracer-min-branch-ratio to
4194 tracer-min-branch-probability, rename
4195 tracer-min-branch-ratio-feedback to
4196 tracer-min-branch-probability-feedback and clarify description,
4197 rename sched-spec-state-edge-prob-cutoff to
4198 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
4199 to selsched-insns-to-rename, rename lto-minpartition to
4200 lto-min-partition, delete reorder-blocks-duplicate and
4201 reorder-blocks-duplicate-feedback.
4202
4203 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4204
4205 * config/s390/s390.c (s390_register_info_set_ranges): Remove
4206 superfluous loops.
4207
4208 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
4209
4210 * doc/extend.texi: S/390: Correct some typos.
4211
4212 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4213
4214 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
4215
4216 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4217
4218 PR target/69625
4219 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
4220 (s390_register_info_gprtofpr): Use new macros above.
4221 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
4222 its name.
4223 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
4224 its name. Adjust restore and save gpr ranges.
4225 (s390_register_info_set_ranges): New function.
4226 (s390_register_info): Use new macros above. Call
4227 s390_register_info_set_ranges.
4228 (s390_optimize_register_info): Likewise.
4229 (s390_hard_regno_rename_ok): Use new macros.
4230 (s390_hard_regno_scratch_ok): Likewise.
4231 (s390_emit_epilogue): Likewise.
4232 (s390_can_use_return_insn): Likewise.
4233 (s390_optimize_prologue): Likewise.
4234 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
4235
4236 2016-02-05 Jakub Jelinek <jakub@redhat.com>
4237
4238 PR bootstrap/69677
4239 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
4240 alignment fixes.
4241 (ix86_option_override_internal): Disable TARGET_STV even for
4242 -m{incoming,preferred}-stack-boundary=3.
4243
4244 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4245
4246 * config.gcc: Mark deprecated rtems targets as obsolete.
4247
4248 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
4249
4250 PR rtl-optimization/64682
4251 PR rtl-optimization/69567
4252 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
4253 before I2 only if the register is both used and set in I2.
4254
4255 2016-02-04 DJ Delorie <dj@redhat.com>
4256
4257 * config/msp430/msp430.c (msp430_start_function): Add function type.
4258
4259 2016-02-04 Jakub Jelinek <jakub@redhat.com>
4260
4261 PR fortran/69368
4262 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
4263
4264 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
4265
4266 PR rtl-optimization/69577
4267 Revert:
4268 2015-10-29 Richard Henderson <rth@redhat.com>
4269
4270 PR target/68124
4271 PR rtl-opt/67609
4272 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4273 sse check to the exact conditions of PR 67609.
4274
4275 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4276
4277 PR target/69667
4278 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
4279 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
4280 not allowed into the traditional Altivec registers.
4281 (movtd_64bit_nodm): Likewise.
4282 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
4283
4284 2016-02-04 David Malcolm <dmalcolm@redhat.com>
4285
4286 * config/aarch64/cortex-a57-fma-steering.c
4287 (aarch64_register_fma_steering): Remove "static" from arguments
4288 to register_pass.
4289
4290 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
4291
4292 PR target/69619
4293 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
4294 twice when complex.
4295
4296 2016-02-04 Mike Frysinger <vapier@gentoo.org>
4297
4298 * doc/invoke.texi: Delete -mno-fma4.
4299
4300 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
4301
4302 PR rtl-optimization/69577
4303 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
4304 (find_subregs_of_mode): Update accordingly. Iterate over partial
4305 definitions.
4306
4307 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
4308
4309 * config/arm/arm-protos.h (neon_reinterpret): Remove.
4310 * config/arm/arm.c (neon_reinterpret): Remove.
4311 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
4312 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
4313 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
4314 vreinterpretti): Remove.
4315 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
4316 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
4317 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
4318 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
4319 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
4320 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
4321 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
4322 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
4323 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
4324 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
4325 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
4326 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
4327 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
4328 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
4329 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
4330 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
4331 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
4332 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
4333 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
4334 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
4335 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
4336 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
4337 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
4338 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
4339 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
4340 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
4341 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
4342 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
4343 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
4344 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
4345 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
4346 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
4347 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
4348 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
4349 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
4350 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
4351 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
4352 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
4353 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
4354 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
4355 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
4356 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
4357 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
4358 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
4359 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
4360 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
4361 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
4362 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
4363 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
4364 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
4365 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
4366 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
4367 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
4368 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
4369 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
4370 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
4371 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
4372 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
4373 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
4374 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
4375 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
4376 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
4377 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
4378 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
4379 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
4380 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
4381 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
4382 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
4383 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
4384 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
4385 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
4386 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
4387 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
4388 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
4389 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
4390 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
4391 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
4392 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
4393 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
4394 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
4395 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
4396 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
4397 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
4398 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
4399 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
4400 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
4401 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
4402 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
4403 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
4404 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
4405 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
4406 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
4407 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
4408 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
4409 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
4410 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
4411 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
4412 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
4413 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
4414 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
4415 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
4416 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
4417 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
4418
4419 2016-02-04 Martin Liska <mliska@suse.cz>
4420
4421 PR sanitizer/69276
4422 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
4423 that are gimple_store_p.
4424 (maybe_instrument_call): Likewise.
4425
4426 2016-02-04 Bin Cheng <bin.cheng@arm.com>
4427
4428 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
4429 register scaling out of memory reference and comment why.
4430
4431 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4432
4433 PR target/65932
4434 PR target/67714
4435 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
4436 folding the source of a SET.
4437
4438 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4439
4440 PR target/65932
4441 PR target/67714
4442 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
4443 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
4444
4445 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
4446
4447 PR target/65932
4448 PR target/67714
4449 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
4450 HImode.
4451
4452 2016-02-04 Christian Bruel <christian.bruel@st.com>
4453
4454 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
4455 * config/arm/arm.c (arm_set_current_function): Likewise.
4456
4457 2016-02-04 Jakub Jelinek <jakub@redhat.com>
4458 Ilya Enkovich <enkovich.gnu@gmail.com>
4459 H.J. Lu <hongjiu.lu@intel.com>
4460
4461 PR target/69454
4462 * config/i386/i386.c (convert_scalars_to_vector): Remove
4463 stack alignment fixes.
4464 (ix86_option_override_internal): Disable TARGET_STV if stack
4465 might not be aligned enough.
4466 (ix86_minimum_alignment): Assert that TARGET_STV is false.
4467
4468 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
4469
4470 * gcc/config/i386/x86-tune.def: Disable default prefetching
4471 for -march=znver1.
4472
4473 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4474 Vladimir Makarov <vmakarov@redhat.com>
4475
4476 PR target/69461
4477 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
4478 in validating fused toc addresses.
4479
4480 2016-02-03 Jakub Jelinek <jakub@redhat.com>
4481
4482 PR c/69627
4483 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
4484 range->m_caret fields if range->m_show_caret_p is false.
4485
4486 PR target/69644
4487 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4488 Force oldval into register if it does not satisfy reg_or_short_operand
4489 predicate. Fix up formatting.
4490
4491 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
4492 Alexandre Oliva <aoliva@redhat.com>
4493
4494 PR target/69461
4495 * lra-constraints.c (simplify_operand_subreg): Check additionally
4496 address validity after potential reloading.
4497 (process_address_1): Check insns validity. In case of failure do
4498 nothing.
4499
4500 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
4501
4502 PR target/69118
4503 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
4504 Fix target.
4505
4506 2016-02-02 Jakub Jelinek <jakub@redhat.com>
4507
4508 * wide-int.cc (canonize_uhwi): New function.
4509 (wi::divmod_internal): Use it.
4510
4511 2016-02-02 James Norris <jnorris@codesourcery.com
4512
4513 * gimplify.c (omp_notice_variable): Add usage check.
4514
4515 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4516
4517 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
4518 like LE, GE, LT, GT when emitting relational operator.
4519
4520 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
4521
4522 * ira-costs.c (find_costs_and_classes): Add extra argument.
4523 * target.def (ira_change_pseudo_allocno_class): Add parameter.
4524 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
4525 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
4526 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
4527 Add best_class parameter, and return it if not ALL_REGS.
4528 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
4529 Add parameter.
4530 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
4531 Update target hook.
4532
4533 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
4534
4535 * config/aarch64/aarch64.c
4536 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
4537 (aarch64_ira_change_pseudo_allocno_class): New function.
4538
4539 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
4540
4541 PR target/67032
4542 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
4543
4544 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4545
4546 * config/avr/avr.c (avr_option_override): Set
4547 PARAM_ALLOW_STORE_DATA_RACES to 1.
4548
4549 2016-02-02 Richard Biener <rguenther@suse.de>
4550
4551 PR tree-optimization/69595
4552 * match.pd: Add range test simplifications to true/false.
4553
4554 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4555
4556 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
4557 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
4558 instead.
4559
4560 2016-02-02 Richard Biener <rguenther@suse.de>
4561
4562 PR tree-optimization/69606
4563 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
4564 info on the result before moving a stmt.
4565
4566 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
4567
4568 PR middle-end/68542
4569 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
4570 branch with vector comparison.
4571 * config/i386/sse.md (VI48_AVX): New mode iterator.
4572 (define_expand "cbranch<mode>4): Add support for conditional branch
4573 with vector comparison.
4574 * tree-vect-loop.c (optimize_mask_stores): New function.
4575 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
4576 has_mask_store field of vect_info.
4577 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
4578 vectorized loops having masked stores after vec_info destroy.
4579 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
4580 correspondent macros.
4581 (optimize_mask_stores): Add prototype.
4582
4583 2016-02-02 Alan Modra <amodra@gmail.com>
4584
4585 PR target/69548
4586 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
4587 allow subregs.
4588
4589 2016-02-02 Alan Modra <amodra@gmail.com>
4590
4591 PR target/68662
4592 * config/rs6000/rs6000.c (need_toc_init): New var, set it
4593 whenever toc_label_name used.
4594 (rs6000_file_start): Don't set up toc section here,
4595 (rs6000_output_function_epilogue): do so here instead,
4596 (rs6000_xcoff_file_start): and here.
4597 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
4598 (load_toc_aix_di): Likewise.
4599
4600 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4601
4602 PR rtl-optimization/69592
4603 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
4604 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
4605 (num_sign_bit_copies_binary_arith_p): New inline function.
4606 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
4607
4608 2016-02-01 Jeff Law <law@redhat.com>
4609
4610 PR tree-optimization/69580
4611 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
4612 * tree-ssa-threadbackward.c
4613 (fsm_find_control_statement_thread_paths): Do not try to walk
4614 through large PHI nodes.
4615
4616 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4617
4618 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
4619 when count is incremented above limit, don't analyze further
4620 insns afterwards.
4621
4622 * omp-low.c (oacc_parse_default_dims): Avoid
4623 -Wsign-compare warning, make sure value fits into int
4624 rather than just unsigned int.
4625
4626 2016-02-01 Bin Cheng <bin.cheng@arm.com>
4627
4628 PR tree-optimization/67921
4629 * fold-const.c (split_tree): New parameters. Convert pointer
4630 type variable part to proper type before negating.
4631 (fold_binary_loc): Pass new arguments to split_tree.
4632
4633 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4634
4635 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
4636 (nvptx_goacc_validate_dims): Extend to handle global defaults.
4637 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
4638 * doc/tm.texti: Rebuilt.
4639 * doc/invoke.texi (fopenacc-dim): Document.
4640 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
4641 (append_compiler_options): Likewise.
4642 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
4643 (oacc_parse_default_dims): New.
4644 (oacc_validate_dims): Add USED arg. Select non-unity default when
4645 possible.
4646 (oacc_loop_fixed_partitions): Return mask of used partitions.
4647 (oacc_loop_auto_partitions): Emit dump info.
4648 (oacc_loop_partition): Return mask of used partitions.
4649 (execute_oacc_device_lower): Parse default dimension arg. Adjust
4650 loop partitioning and validation calls.
4651
4652 2016-02-01 Richard Biener <rguenther@suse.de>
4653
4654 PR middle-end/69556
4655 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
4656
4657 2016-02-01 Richard Biener <rguenther@suse.de>
4658
4659 PR tree-optimization/69574
4660 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
4661 of asserting return chrec_dont_know.
4662
4663 2016-02-01 Martin Liska <mliska@suse.cz>
4664
4665 * mem-stats-traits.h: Add copyright header.
4666 * mem-stats.h: Likewise.
4667
4668 2016-02-01 Richard Biener <rguenther@suse.de>
4669
4670 PR tree-optimization/69579
4671 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
4672 Do not propagate through abnormal PHI results.
4673
4674 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
4675
4676 * postreload.c (reload_cse_simplify): Remove dead code.
4677
4678 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4679
4680 PR rtl-optimization/69570
4681 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
4682 if there is more than one set, not if there is a single set.
4683
4684 2016-02-01 Richard Henderson <rth@redhat.com>
4685
4686 PR rtl-opt/69535
4687 * combine.c (make_compound_operation): When looking through a
4688 subreg, make sure to re-extend to the width of the outer mode.
4689
4690 2016-01-30 Jakub Jelinek <jakub@redhat.com>
4691
4692 PR tree-optimization/69546
4693 * wide-int.cc (wi::divmod_internal): For unsigned division
4694 where both operands fit into uhwi, if o1 is 1 and o0 has
4695 msb set, if divident_prec is larger than bits per hwi,
4696 clear another quotient word and return 2 instead of 1.
4697 Similarly for remainder with msb in HWI set, if dividend_prec
4698 is larger than bits per hwi.
4699
4700 2016-01-29 Martin Jambor <mjambor@suse.cz>
4701
4702 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
4703 Use short lowercase names.
4704 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
4705 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
4706 acq_rel one. Protect warning agains segfaults if
4707 get_memory_order_name returns NULL.
4708 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
4709 with release semantics. Do not warn if get_memory_order already did.
4710 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
4711 semantics. Fix check for relaxed or acquire semantics. Do not warn
4712 if get_memory_order already did.
4713
4714 2016-01-29 Sebastian Pop <s.pop@samsung.com>
4715
4716 * doc/install.texi: Document that isl-0.16 is supported.
4717
4718 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
4719
4720 PR target/69299
4721 * config/i386/constraints.md (Bm): Describe as special memory
4722 constraint.
4723 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
4724 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4725 * genpreds.c (struct constraint_data): Add is_special_memory.
4726 (have_special_memory_constraints, special_memory_start): New
4727 static vars.
4728 (special_memory_end): Ditto.
4729 (add_constraint): Add new arg is_special_memory. Add code to
4730 process its true value. Update have_special_memory_constraints.
4731 (process_define_constraint): Pass the new arg.
4732 (process_define_register_constraint): Ditto.
4733 (choose_enum_order): Process special memory.
4734 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
4735 function insn_extra_special_memory_constraint.
4736 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4737 * gensupport.c (process_rtx): Process
4738 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4739 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
4740 * ira-lives.c (single_reg_class): Use
4741 insn_extra_special_memory_constraint.
4742 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
4743 * lra-constraints.c (process_alt_operands): Ditto.
4744 (curr_insn_transform): Use insn_extra_special_memory_constraint.
4745 * recog.c (asm_operand_ok, preprocess_constraints): Process
4746 CT_SPECIAL_MEMORY.
4747 * reload.c (find_reloads): Ditto.
4748 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
4749 * stmt.c (parse_input_constraint): Use
4750 insn_extra_special_memory_constraint.
4751
4752 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
4753
4754 PR target/69530
4755 * lra-splill.c (lra_final_code_change): Revert r229087 by
4756 removing all sub-registers.
4757
4758 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
4759
4760 PR target/65604
4761 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
4762
4763 2016-01-29 Jakub Jelinek <jakub@redhat.com>
4764
4765 PR target/69551
4766 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
4767 SSE1, copy target into the temporary reg first before recursing
4768 on it.
4769
4770 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
4771
4772 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
4773 with vm.
4774
4775 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
4776
4777 * ginclude/stdarg.h: Test __cplusplus instead of
4778 __GXX_EXPERIMENTAL_CXX0X__.
4779
4780 2016-01-29 Richard Biener <rguenther@suse.de>
4781
4782 PR tree-optimization/69547
4783 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
4784 Do not mark clobbers necessary.
4785 (mark_all_reaching_defs_necessary_1): Likewise.
4786
4787 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4788
4789 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
4790 declaration name with %qs and print it in both error messages.
4791 Also fix indentation.
4792
4793 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4794
4795 PR other/69006
4796 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
4797 trailing blank line from error message.
4798
4799 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
4800
4801 PR c++/69462
4802 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
4803 for C++-11.
4804
4805 2016-01-29 Richard Biener <rguenther@suse.de>
4806
4807 PR middle-end/69537
4808 * match.pd: Allow all integral types when simplifying a
4809 widening or sign-changing conversion.
4810
4811 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4812
4813 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
4814 back to setting codegen_error to fail codegen.
4815
4816 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
4817
4818 PR target/69459
4819 * config/i386/constraints.md (C): Only accept constant zero operand.
4820 (BC): New constraint.
4821 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
4822 instead of C constraint.
4823 * doc/md.texi (Machine Constraints): Update description
4824 of C constraint.
4825
4826 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
4827
4828 PR target/68400
4829 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
4830
4831 2016-01-28 Jakub Jelinek <jakub@redhat.com>
4832
4833 PR middle-end/69542
4834 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
4835 non-debug insns.
4836
4837 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
4838
4839 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
4840 branches if using guessed profile.
4841
4842 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
4843
4844 * graphite-optimize-isl.c (optimize_isl): Fix dump.
4845
4846 2016-01-28 Richard Henderson <rth@redhat.com>
4847
4848 PR target/69305
4849 * config/aarch64/aarch64-modes.def (CC_Cmode): New
4850 * config/aarch64/aarch64-protos.h: Update.
4851 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
4852 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
4853 (aarch64_get_condition_code_1): Handle CC_Cmode.
4854 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
4855 (*add<mode>3_compareC_cconly_imm): New.
4856 (*add<mode>3_compareC_cconly): New.
4857 (*add<mode>3_compareC_imm): New.
4858 (add<mode>3_compareC): New.
4859 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
4860 to be first. Use aarch64_carry_operation.
4861 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
4862 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
4863 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
4864 (subti3): Use subdi3_compare1.
4865 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
4866 (sub<mode>3_compare1): New.
4867 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
4868 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
4869 (*subsi3_carryin_uxtw): Likewise.
4870 (*ngc<mode>, *ngcsi_uxtw): Likewise.
4871 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
4872 * config/aarch64/iterators.md (DWI): New.
4873 * config/aarch64/predicates.md (aarch64_carry_operation): New.
4874 (aarch64_borrow_operation): New.
4875
4876 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4877
4878 * graphite-optimize-isl.c (optimize_isl): Print a different debug
4879 message when isl does not return a valid schedule.
4880
4881 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4882
4883 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4884 Remove comments from class declarations: they are already in the code
4885 close by the defs.
4886
4887 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4888
4889 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
4890 codegen_error_p.
4891 (ternary_op_to_tree): Same.
4892 (unary_op_to_tree): Same.
4893 (nary_op_to_tree): Same.
4894 (gcc_expression_from_isl_expr_op): Same.
4895 (gcc_expression_from_isl_expression): Same.
4896 (graphite_create_new_loop): Same.
4897 (graphite_create_new_loop_guard): Same.
4898 (build_iv_mapping): Same.
4899 (graphite_create_new_guard): Same.
4900 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
4901 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
4902
4903 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4904
4905 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
4906 instead of setting codegen_error to fail codegen.
4907
4908 2016-01-28 Jason Merrill <jason@redhat.com>
4909
4910 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
4911
4912 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4913
4914 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4915 Remove CONST_INT_P check in CCMP cost calculation.
4916
4917 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4918
4919 * config/aarch64/aarch64.c (generic_vector_cost):
4920 Set vec_permute_cost.
4921 (cortexa57_vector_cost): Likewise.
4922 (exynosm1_vector_cost): Likewise.
4923 (xgene1_vector_cost): Likewise.
4924 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
4925 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
4926 Add vec_permute_cost entry.
4927
4928 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4929
4930 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
4931 immediate as %1.
4932 (add<mode>3_compare0): Likewise.
4933 (addsi3_compare0_uxtw): Likewise.
4934 (add<mode>3nr_compare0): Likewise.
4935 (compare_neg<mode>): Likewise.
4936 (<optab><mode>3): Likewise.
4937
4938 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
4939
4940 * tree-vect-stmts.c (vectorizable_comparison): Add
4941 NULL check for vectype.
4942
4943 2016-01-28 Richard Biener <rguenther@suse.de>
4944
4945 PR tree-optimization/69466
4946 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4947 Account for PHIs we couldn't duplicate.
4948
4949 2016-01-28 Martin Liska <mliska@suse.cz>
4950
4951 PR pch/68758
4952 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
4953 instead of ENABLE_VALGRIND_CHECKING.
4954
4955 2016-01-27 Richard Henderson <rth@redhat.com>
4956
4957 PR rtl-opt/69447
4958 * lra-remat.c (subreg_regs): New.
4959 (dump_candidates_and_remat_bb_data): Dump it.
4960 (operand_to_remat): Reject if operand in subreg_regs.
4961 (set_bb_regs): Collect subreg_regs.
4962 (lra_remat): Init and free subreg_regs. Compute
4963 calculate_local_reg_remat_bb_data before create_cands.
4964
4965 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
4966
4967 PR target/68986
4968 * config/i386/i386.c (ix86_update_stack_boundary): Don't
4969 change stack_alignment_needed for __tls_get_addr call.
4970
4971 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
4972
4973 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
4974
4975 2016-01-27 Jeff Law <law@redhat.com>
4976
4977 PR tree-optimization/68398
4978 PR tree-optimization/69196
4979 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
4980 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
4981 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4982 Only count PHIs in the last block in the path. The others will
4983 const/copy propagate away. Add heuristic to allow more irreducible
4984 subloops to be created when it is likely profitable to do so.
4985
4986 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4987 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
4988 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
4989
4990 2016-01-27 Jakub Jelinek <jakub@redhat.com>
4991
4992 PR lto/69254
4993 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
4994 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
4995 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
4996 * tree-streamer-in.c: Include asan.h.
4997 (streamer_get_builtin_tree): For builtins in sanitizer
4998 range call initialize_sanitizer_builtins and retry.
4999
5000 2016-01-27 Ian Lance Taylor <iant@google.com>
5001
5002 * common.opt (fkeep-gc-roots-live): New undocumented option.
5003 * tree-ssa-loop-ivopts.c (add_candidate_1): If
5004 -fkeep-gc-roots-live, skip pointers.
5005 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
5006 NULL.
5007
5008 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
5009
5010 PR target/69512
5011 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
5012 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
5013
5014 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
5015
5016 PR target/68380
5017 * configure.ac: NetBSD provides SSP in its C library.
5018 * configure: Updated.
5019
5020 2016-01-27 Richard Biener <rguenther@suse.de>
5021
5022 PR tree-optimization/69166
5023 * tree-vect-loop.c (vect_is_simple_reduction): Always check
5024 reduction code for commutativity / associativity.
5025
5026 2016-01-27 Martin Jambor <mjambor@suse.cz>
5027
5028 PR tree-optimization/69355
5029 * tree-sra.c (analyze_access_subtree): Correct hole detection when
5030 total_scalarization fails.
5031
5032 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
5033
5034 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
5035 power9.
5036
5037 2016-01-27 Christian Bruel <christian.bruel@st.com>
5038
5039 PR target/69245
5040 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
5041 Move arm_reset_previous_fndecl and set_target_option_current_node in
5042 the conditional part. Call save_restore_target_globals.
5043 * config/arm/arm.c (arm_set_current_function):
5044 Refactor to better support #pragma target and attribute mix.
5045 Call save_restore_target_globals.
5046 * config/arm/arm-protos.h (save_restore_target_globals): New function.
5047
5048 2016-01-27 Martin Liska <mliska@suse.cz>
5049
5050 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
5051 reference for an HSA kernel and its host function.
5052
5053 2016-01-27 Jakub Jelinek <jakub@redhat.com>
5054
5055 PR tree-optimization/69399
5056 * wide-int.h (wi::lrshift): For larger precisions, only
5057 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
5058
5059 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
5060
5061 * config/arc/predicates.md (proper_comparison_operator): Reject
5062 constant-constant comparison.
5063
5064 2016-01-26 Tom de Vries <tom@codesourcery.com>
5065
5066 PR tree-optimization/69110
5067 * tree-data-ref.c (initialize_data_dependence_relation): Handle
5068 DR_NUM_DIMENSIONS == 0.
5069
5070 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5071 Sebastian Pop <s.pop@samsung.com>
5072
5073 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
5074 isl_ast_op_cond and isl_ast_op_select.
5075 (gcc_expression_from_isl_expr_op): Same.
5076
5077 2016-01-26 Jason Merrill <jason@redhat.com>
5078
5079 PR c++/68782
5080 * tree.c (recompute_constructor_flags): Split out from
5081 build_constructor.
5082 (verify_constructor_flags): New.
5083 * tree.h: Declare them.
5084
5085 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
5086
5087 PR rtl-optimization/69217
5088 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
5089 are no TYPE_FIELDS set for the record type.
5090
5091 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5092
5093 PR target/68662
5094 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
5095 toc_label_name unconditionally.
5096 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
5097 SYMBOL_REF string. Use toc_label_name instead of constructing
5098 LCTOC1.
5099 (rs6000_elf_declare_function_name): Use toc_label_name instead of
5100 constructing LCTOC1.
5101
5102 2016-01-26 Martin Sebor <msebor@redhat.com>
5103
5104 PR other/69477
5105 * doc/extend.texi (Common Type Attributes): Move text that talks about
5106 attribute packed from attribute aligned to the section discussing
5107 the former attribute for clarity.
5108
5109 2016-01-26 Richard Henderson <rth@redhat.com>
5110
5111 PR middle-end/60908
5112 * trans-mem.c (tm_region_init): Mark entry block as visited.
5113
5114 2016-01-26 David Malcolm <dmalcolm@redhat.com>
5115
5116 PR other/69006
5117 * diagnostic-show-locus.c (layout::print_source_line): Replace
5118 call to pp_newline with call to layout::print_newline.
5119 (layout::print_annotation_line): Likewise.
5120 (layout::move_to_column): Likewise.
5121 (layout::print_any_fixits): After printing any fixits, print a
5122 trailing newline, if necessary.
5123 (layout::print_newline): New method, resetting any colorization
5124 before a newline.
5125 (diagnostic_show_locus): Move the pp_newline to before the
5126 early bailout. Remove dummy block enclosing the layout instance.
5127 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
5128 of pp_newline_and_flush with pp_flush.
5129 (diagnostic_append_note): Delete use of pp_newline.
5130 (diagnostic_append_note_at_rich_loc): Delete.
5131 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
5132 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
5133 when newline characters are added to the buffer.
5134
5135 2016-01-26 Michael Matz <matz@suse.de>
5136
5137 * configure.ac (ac_cv_std_swap_in_utility): New test.
5138 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
5139 * configure: Regenerate.
5140 * config.in: Regenerate.
5141
5142 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
5143
5144 * config/arc/arc.md (cstoresi4): Force operand into register.
5145 (arcset<code>): Fix predicate.
5146 (arcsetltu): Likewise.
5147 (arcsetgeu): Likewise.
5148 (arcsethi): Likewise.
5149 (arcsetls): Likewise.
5150
5151 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR tree-optimization/69483
5154 * gimple-fold.c (canonicalize_constructor_val): Return NULL
5155 if base has error_mark_node type.
5156
5157 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
5158
5159 PR target/68620
5160 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
5161 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
5162 New helper macros.
5163 (vget_lane_f16): Handle big-endian.
5164 (vgetq_lane_f16): Likewise.
5165 (vset_lane_f16): Likewise.
5166 (vsetq_lane_f16): Likewise.
5167 * config/arm/iterators.md (VQXMOV): Add V8HF.
5168 (VDQ): Add V4HF and V8HF.
5169 (V_reg): Handle V4HF and V8HF.
5170 (Is_float_mode): Likewise.
5171 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
5172 neon_vdup_nv8hf): New patterns.
5173 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
5174 Use VD_LANE iterator.
5175 (neon_vld1_dup<mode>): Use VQ2 iterator.
5176
5177 2016-01-26 Nathan Sidwell <nathan@acm.org>
5178
5179 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
5180 (set_oacc_fn_attrib): Add IS_KERNEL arg.
5181 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
5182 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
5183 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
5184 (oacc_validate_dims): Add LEVEL arg, don't return level.
5185 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
5186 oacc_validate_dims.
5187 (execute_oacc_device_lower): Adjust, add more dump output.
5188 * tree-ssa-loop.c (gate_oacc_kernels): Use
5189 oacc_fn_attrib_kernels_p.
5190 * tree-parloops.c (create_parallel_loop): Adjust
5191 set_oacc_fn_attrib call.
5192
5193 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5194
5195 PR lto/69254
5196 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
5197 (append_compiler_options): Handle -fcilkplus.
5198 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
5199
5200 2016-01-26 Nick Clifton <nickc@redhat.com>
5201
5202 PR target/66655
5203 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
5204 been marked as DECL_ONE_ONLY but we do not the means to make it
5205 so, then do not allow it to bind locally.
5206
5207 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5208
5209 PR lto/69254
5210 * opts.h (parse_sanitizer_options): New prototype.
5211 * opts.c (sanitizer_opts): New array.
5212 (parse_sanitizer_options): New function.
5213 (common_handle_option): Use parse_sanitizer_options.
5214
5215 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
5216
5217 PR target/68986
5218 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
5219 alignment adjustment to ...
5220 (ix86_update_stack_boundary): Here. Don't over-align stack for
5221 __tls_get_addr.
5222 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
5223 if __tls_get_addr is called.
5224
5225 2016-01-26 Christian Bruel <christian.bruel@st.com>
5226
5227 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
5228
5229 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
5230
5231 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
5232
5233 2016-01-26 Richard Biener <rguenther@suse.de>
5234
5235 PR middle-end/69467
5236 * match.pd: Guard X * CST CMP 0 pattern with single_use.
5237
5238 2016-01-26 Richard Biener <rguenther@suse.de>
5239
5240 PR tree-optimization/69452
5241 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
5242 (move_computations_dom_walker::before_dom_children): Rename
5243 to ...
5244 (move_computations_worker): This.
5245 (move_computations): Perform an RPO rather than a DOM walk.
5246
5247 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5248
5249 PR target/69442
5250 * combine.c (combine_instructions): For REG_EQUAL note with
5251 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
5252 to the underlying register.
5253 * doc/rtl.texi (REG_EQUAL): Document the behavior of
5254 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
5255
5256 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
5257
5258 PR target/67896
5259 * config/aarch64/aarch64-builtins.c
5260 (aarch64_init_simd_builtin_types): Do not set structural
5261 equality to __Poly{8,16,64,128}_t types.
5262
5263 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
5264
5265 PR tree-optimization/69400
5266 * wide-int.cc (wi_pack): Take the precision as argument and
5267 perform canonicalization here rather than in the callers.
5268 Use the main loop to handle all full-width HWIs. Add a
5269 zero HWI if in_len isn't a full result.
5270 (wi::divmod_internal): Update accordingly.
5271 (wi::mul_internal): Likewise. Simplify.
5272
5273 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
5274 Sebastian Pop <s.pop@samsung.com>
5275
5276 * graphite-poly.c (apply_poly_transforms): Simplify.
5277 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
5278 (print_isl_map): Same.
5279 (print_isl_union_map): Same.
5280 (print_isl_schedule): New.
5281 (debug_isl_schedule): New.
5282 * graphite-dependences.c (scop_get_reads): Do not call
5283 isl_union_map_add_map that is undocumented isl functionality.
5284 (scop_get_must_writes): Same.
5285 (scop_get_may_writes): Same.
5286 (scop_get_original_schedule): Remove.
5287 (scop_get_dependences): Do not call isl_union_map_compute_flow that
5288 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
5289 (compute_deps): Remove.
5290 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
5291 (debug_schedule_ast): New.
5292 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
5293 set_separate_option.
5294 (graphite_regenerate_ast_isl): Add dump.
5295 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
5296 from scop->transformed_schedule.
5297 (graphite_regenerate_ast_isl): Add more dump.
5298 * graphite-optimize-isl.c (optimize_isl): Set
5299 scop->transformed_schedule. Check whether schedules are equal.
5300 (apply_poly_transforms): Move here.
5301 * graphite-poly.c (apply_poly_transforms): ... from here.
5302 (free_poly_bb): Static.
5303 (free_scop): Static.
5304 (pbb_number_of_iterations_at_time): Remove.
5305 (print_isl_ast): New.
5306 (debug_isl_ast): New.
5307 (debug_scop_pbb): New.
5308 * graphite-scop-detection.c (print_edge): Move.
5309 (print_sese): Move.
5310 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5311 (build_scop_scattering): Remove.
5312 (create_pw_aff_from_tree): Assert instead of bailing out.
5313 (add_condition_to_pbb): Remove unused code, do not fail.
5314 (add_conditions_to_domain): Same.
5315 (add_conditions_to_constraints): Remove.
5316 (build_scop_context): New.
5317 (add_iter_domain_dimension): New.
5318 (build_iteration_domains): Initialize pbb->iterators.
5319 Call add_conditions_to_domain.
5320 (nested_in): New.
5321 (loop_at): New.
5322 (index_outermost_in_loop): New.
5323 (index_pbb_in_loop): New.
5324 (outermost_pbb_in): New.
5325 (add_in_sequence): New.
5326 (add_outer_projection): New.
5327 (outer_projection_mupa): New.
5328 (add_loop_schedule): New.
5329 (build_schedule_pbb): New.
5330 (build_schedule_loop): New.
5331 (embed_in_surrounding_loops): New.
5332 (build_schedule_loop_nest): New.
5333 (build_original_schedule): New.
5334 (build_poly_scop): Call build_original_schedule.
5335 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
5336 (free_poly_dr): Remove.
5337 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
5338 (free_poly_bb): Remove.
5339 (debug_loop_vec): Remove.
5340 (print_isl_ast): Declare.
5341 (debug_isl_ast): Declare.
5342 (scop_do_interchange): Remove.
5343 (scop_do_strip_mine): Remove.
5344 (scop_do_block): Remove.
5345 (flatten_all_loops): Remove.
5346 (optimize_isl): Remove.
5347 (pbb_number_of_iterations_at_time): Remove.
5348 (debug_scop_pbb): Declare.
5349 (print_schedule_ast): Declare.
5350 (debug_schedule_ast): Declare.
5351 (struct scop): Remove schedule. Add original_schedule,
5352 transformed_schedule.
5353 (free_gimple_poly_bb): Remove.
5354 (print_generated_program): Remove.
5355 (debug_generated_program): Remove.
5356 (unify_scattering_dimensions): Remove.
5357 * sese.c (print_edge): ... here.
5358 (print_sese): ... here.
5359 (debug_edge): ... here.
5360 (debug_sese): ... here.
5361 * sese.h (print_edge): Declare.
5362 (print_sese): Declare.
5363 (dump_edge): Declare.
5364 (dump_sese): Declare.
5365
5366 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
5367 Sebastian Pop <s.pop@samsung.com>
5368
5369 * Makefile.in: Set ISLVER in site.exp.
5370
5371 2016-01-25 Jakub Jelinek <jakub@redhat.com>
5372
5373 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
5374 DECL_VALUE_EXPR of new_var even for the non-array case. Look
5375 through DECL_VALUE_EXPR for expansion.
5376
5377 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5378
5379 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
5380 the frame info after reload completed.
5381
5382 2016-01-25 Jeff Law <law@redhat.com>
5383
5384 PR tree-optimization/69196
5385 PR tree-optimization/68398
5386 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
5387 tree-ssa-threadupdate.c.
5388 (determine_bb_domination_status): Prototype
5389 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
5390 (determine_bb_domination_status): No longer static.
5391 (valid_jump_thread_path): Remove code to detect characteristics
5392 of the jump thread path not associated with correctness.
5393 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
5394 Correct test for thread path length. Count PHIs for real operands as
5395 statements that need to be copied. Do not count ASSERT_EXPRs.
5396 Look at all the blocks in the thread path. Compute and selectively
5397 filter thread paths based on threading through the latch, threading
5398 a multiway branch or crossing a multiway branch.
5399
5400 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5401
5402 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
5403 decl with __attribute__ ((unused)) annotation.
5404
5405 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
5406
5407 PR target/69421
5408 * tree-vect-stmts.c (vectorizable_condition): Check vectype
5409 of operands is compatible with a statement vectype.
5410
5411 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
5412
5413 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
5414 improve wording for mixed storage order support.
5415
5416 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
5417
5418 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
5419 (vcvt_u64_f64): Likewise.
5420 (vcvta_s64_f64): Likewise.
5421 (vcvta_u64_f64): Likewise.
5422 (vcvtm_s64_f64): Likewise.
5423 (vcvtm_u64_f64): Likewise.
5424 (vcvtn_s64_f64): Likewise.
5425 (vcvtn_u64_f64): Likewise.
5426 (vcvtp_s64_f64): Likewise.
5427 (vcvtp_u64_f64): Likewise.
5428
5429 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
5430
5431 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
5432 (arc_init): Check validity mll64 option.
5433 (arc_save_restore): Use double load/store instruction.
5434 (arc_expand_movmem): Likewise.
5435 (arc_split_move): Don't split if we have double load/store
5436 instructions. Returns a boolean.
5437 (arc_process_double_reg_moves): Change function to return boolean
5438 instead of a sequence of instructions.
5439 (arc_dwarf_register_span): New function.
5440 * config/arc/arc-protos.h (arc_split_move): Change prototype.
5441 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
5442 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
5443 (*movdf_insn): Likewise.
5444 * config/arc/arc.opt (mll64): New option.
5445 * config/arc/predicates.md (even_register_operand): New predicate.
5446 * doc/invoke.texi (ARC Options): Add mll64 documentation.
5447
5448 2016-01-25 Richard Biener <rguenther@suse.de>
5449
5450 PR lto/69393
5451 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
5452 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
5453 DECL_NAMELESS.
5454 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
5455
5456 2016-01-25 Richard Biener <rguenther@suse.de>
5457
5458 PR tree-optimization/69376
5459 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
5460 flag.
5461 (VN_INFO_ANTI_RANGE_P): New inline.
5462 (VN_INFO_RANGE_TYPE): Likewise.
5463 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
5464 SSA_NAME_ANTI_RANGE_P.
5465 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
5466 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5467 Properly query VN_INFO_RANGE_TYPE.
5468
5469 2016-01-25 Nick Clifton <nickc@redhat.com>
5470
5471 PR target/66655
5472 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
5473
5474 2016-01-23 Tom de Vries <tom@codesourcery.com>
5475
5476 PR tree-optimization/69426
5477 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
5478 removed clobber.
5479
5480 2016-01-23 Jakub Jelinek <jakub@redhat.com>
5481
5482 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
5483 "the the" with "the" in the comments.
5484 * ipa-devirt.c (build_type_inheritance_graph,
5485 update_type_inheritance_graph): Likewise.
5486 * tree.c (build_function_type_list_1): Likewise.
5487 * cfgloopmanip.c (scale_loop_profile): Likewise.
5488 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
5489 * gimple-ssa-split-paths.c
5490 (find_block_to_duplicate_for_splitting_paths): Likewise.
5491 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
5492 * expr.c (convert_move): Likewise.
5493 * var-tracking.c (vt_stack_adjustments): Likewise.
5494 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5495 * tree-vrp.c (test_for_singularity): Likewise.
5496
5497 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
5498 directly instead of building a temporary tree.
5499
5500 PR bootstrap/69434
5501 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
5502 remove <algorithm> include.
5503
5504 2016-01-22 Jakub Jelinek <jakub@redhat.com>
5505
5506 PR target/69432
5507 * config/i386/i386.c: Include dojump.h.
5508 (expand_small_movmem_or_setmem,
5509 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
5510 fixes.
5511 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
5512 if dynamic_check != -1.
5513
5514 2016-01-21 Jeff Law <law@redhat.com>
5515
5516 PR middle-end/69347
5517 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
5518 record_temporary_equivalences. Rewritten to avoid unnecessary calls
5519 into dominated_by_p.
5520 (cprop_into_successor_phis): Avoid unnecessary tests.
5521
5522 2016-01-22 Richard Henderson <rth@redhat.com>
5523
5524 PR target/69416
5525 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
5526 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
5527
5528 2016-01-22 Michael Matz <matz@suse.de>
5529
5530 * system.h (string, algorithm): Include only conditionally.
5531 (new): Include always under C++.
5532 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
5533 * final.c (toplevel): Ditto.
5534 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
5535 * genconditions.c (write_header): Make gencondmd.c define
5536 INCLUDE_STRING.
5537 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
5538
5539 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
5540 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
5541
5542 2016-01-22 Christian Bruel <christian.bruel@st.com>
5543
5544 PR target/68674
5545 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
5546
5547 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5548
5549 PR target/69403
5550 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
5551 define_insn_and_split. Ensure operands[1] and operands[0] do not
5552 get assigned the same register.
5553
5554 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
5555
5556 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
5557
5558 2016-01-22 Christian Bruel <christian.bruel@st.com>
5559
5560 * config/arm/arm-c.c (arm_pragma_target_parse):
5561 Remove warn_builtin_macro_redefined overwrite.
5562
5563 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
5564
5565 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
5566 flag_non_call_exceptions compatibility.
5567
5568 2016-01-22 Jakub Jelinek <jakub@redhat.com>
5569
5570 PR debug/66668
5571 * dwarf2out.c (add_child_die_after): New function.
5572 (dwarf_qual_info_t): New type.
5573 (dwarf_qual_info): New variable.
5574 (qualified_die_p): New function.
5575 (modified_type_die): For -fdebug-types-section, ensure
5576 canonical order of qualifiers. Put qualified DIEs adjacent
5577 to the corresponding non-qualified type DIE and search there
5578 for existing qualified DIEs.
5579
5580 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
5581
5582 * doc/extend.texi (scalar_storage_order type attribute): Document
5583 restriction on type punning and aliasing, and remove future tense.
5584
5585 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
5586
5587 PR target/69252
5588 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
5589 first stage.
5590
5591 2016-01-21 Jeff Law <law@redhat.com>
5592
5593 PR middle-end/69347
5594 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
5595 useless call to record_temporary_equivalences.
5596 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
5597 allocate 10 slots in the bb_path vector and let it grow as needed.
5598 (fsm_find_control_statement_thread_paths): Similarly for the next_path
5599 vector.
5600
5601 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
5602
5603 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
5604 Detangle.
5605 * configure: Regenerate.
5606
5607 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
5608
5609 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
5610 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
5611
5612 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
5613
5614 PR middle-end/66178
5615 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
5616 drop EXPAND_INITIALIZER.
5617 * rtl.h (contains_symbolic_reference_p): Declare.
5618 * rtlanal.c (contains_symbolic_reference_p): New function.
5619 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
5620 a subtraction into a NOT if symbolic constants are involved.
5621
5622 2016-01-21 Anton Blanchard <anton@samba.org>
5623 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5624
5625 PR target/63354
5626 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
5627 #define.
5628 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
5629 function.
5630
5631 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5632
5633 * config/microblaze/microblaze.c
5634 (get_branch_target): New.
5635 (insert_wic_for_ilb_runout): New.
5636 (insert_wic): New.
5637 (microblaze_machine_dependent_reorg): New.
5638 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
5639 * config/microblaze/microblaze.md
5640 (UNSPEC_IPREFETCH): Define.
5641 (iprefetch): New pattern
5642 * config/microblaze/microblaze.opt
5643 (mxl-prefetch): New flag.
5644
5645 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5646
5647 * config/microblaze/microblaze.h
5648 (FIXED_REGISTERS): Update in macro.
5649 (CALL_USED_REGISTERS): Update in macro.
5650
5651 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
5652
5653 PR rtl-optimization/68920
5654 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
5655 moves.
5656
5657 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
5658
5659 PR rtl-optimization/68990
5660 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
5661 pseudo instead of inheritance ones.
5662
5663 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5664 Nick Clifton <nickc@redhat.com>
5665
5666 PR target/69129
5667 PR target/69012
5668 * config/mips/mips.c (mips_compute_frame_info): Initialise
5669 args_size and hard_frame_pointer_offset fields of the frame
5670 structure before calling mips_global_pointer.
5671
5672 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
5673
5674 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
5675 label reference.
5676 * configure: Regenerate.
5677
5678 2016-01-21 Richard Biener <rguenther@suse.de>
5679
5680 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
5681
5682 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5683
5684 * config/s390/s390.c (s390_asm_declare_function_size): Add code
5685 to actually emit the .size directive.
5686
5687 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
5688 Jakub Jelinek <jakub@redhat.com>
5689
5690 PR target/69187
5691 PR target/65624
5692 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
5693 args array size by one to avoid buffer overflow.
5694
5695 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5696
5697 * config/s390/s390.md (pool_section_start): Use switch_to_section
5698 to select proper read-only data section instead of hardcoding
5699 .rodata.
5700 (pool_section_end): Use switch_to_section to match the above.
5701
5702 2016-01-21 Richard Biener <rguenther@suse.de>
5703
5704 PR tree-optimization/69378
5705 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
5706 (set_ssa_val_to): Use it for dominance checks taking into
5707 account not executable edges.
5708
5709 2016-01-21 Jakub Jelinek <jakub@redhat.com>
5710
5711 PR c++/69355
5712 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
5713 for bitsize instead of GET_MODE_PRECISION (mode).
5714
5715 2016-01-20 Martin Sebor <msebor@redhat.com>
5716
5717 PR c/52291
5718 * extend.texi (__sync Builtins): Clarify the semantics of
5719 __sync_fetch_and_OP built-ins on pointers.
5720 (__atomic Builtins): Same.
5721
5722 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5723 Sebastian Pop <s.pop@samsung.com>
5724
5725 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
5726 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
5727 (is_valid_rename): Same.
5728 (translate_isl_ast_to_gimple::get_rename): Same.
5729 (translate_isl_ast_to_gimple::rename_all_uses): Same.
5730 (translate_isl_ast_to_gimple::rename_uses): Same.
5731 (get_new_name): Check for close_phi nodes.
5732 (copy_loop_phi_args): Use phi_node_kind.
5733 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
5734 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
5735
5736 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5737 Sebastian Pop <s.pop@samsung.com>
5738
5739 Revert commit r229783.
5740 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5741 Remove use of parameter_rename_map.
5742 (copy_def): Remove.
5743 (copy_internal_parameters): Remove.
5744 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5745 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5746 (free_sese_info): Do not free parameter_rename_map.
5747 (set_rename): Do not use parameter_rename_map.
5748 (rename_uses): Update call to set_rename.
5749 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5750 * sese.h (parameter_rename_map_t): Remove.
5751 (struct sese_info_t): Remove field parameter_rename_map.
5752
5753 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5754 Sebastian Pop <s.pop@samsung.com>
5755
5756 * graphite-isl-ast-to-gimple.c: Fix comment.
5757 * graphite-scop-detection.c (defined_in_loop_p): New.
5758 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
5759 names defined in loop.
5760
5761 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5762 Sebastian Pop <s.pop@samsung.com>
5763
5764 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
5765 Discard unstructured if-then-else regions.
5766
5767 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5768 Sebastian Pop <s.pop@samsung.com>
5769
5770 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
5771 (cleanup_loop_iter_dom): Remove.
5772 (build_loop_iteration_domains): Remove.
5773 (build_scop_context): Remove.
5774 (build_scop_iteration_domain): Remove.
5775 (add_loop_constraints): New.
5776 (build_iteration_domains): New.
5777 (build_poly_scop): Call build_iteration_domains.
5778
5779 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5780 Sebastian Pop <s.pop@samsung.com>
5781
5782 * graphite-scop-detection.c
5783 (scop_detection::harmful_loop_in_region): Free dom and loops.
5784 (scop_detection::loop_body_is_valid_scop): Free bbs.
5785
5786 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5787 Sebastian Pop <s.pop@samsung.com>
5788
5789 * graphite-scop-detection.c (record_loop_in_sese): New.
5790 (gather_bbs::before_dom_children): Call record_loop_in_sese.
5791 (build_scops): Remove call to build_sese_loop_nests.
5792 * sese.c (sese_record_loop): Remove.
5793 (build_sese_loop_nests): Remove.
5794 (new_sese_info): Remove region->loops.
5795 (free_sese_info): Same.
5796 * sese.h (sese_contains_loop): Same.
5797 (build_sese_loop_nests): Remove.
5798 (sese_contains_loop): Remove.
5799
5800 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5801 Sebastian Pop <s.pop@samsung.com>
5802
5803 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
5804 loop_is_valid_in_scop.
5805 (scop_detection::harmful_stmt_in_region): Renamed
5806 harmful_loop_in_region.
5807 Call loop_is_valid_in_scop.
5808
5809 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5810 Sebastian Pop <s.pop@samsung.com>
5811
5812 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
5813 isl_ast_node_mark.
5814
5815 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5816 Sebastian Pop <s.pop@samsung.com>
5817
5818 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
5819 * graphite.h (struct poly_bb): Remove field is_reduction.
5820 (PBB_IS_REDUCTION): Remove.
5821
5822 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5823 Sebastian Pop <s.pop@samsung.com>
5824
5825 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
5826 (add_pdr_constraints): Same.
5827 (scop_get_reads): Same.
5828 (scop_get_must_writes): Same.
5829 (scop_get_may_writes): Same.
5830 (scop_get_original_schedule): Same.
5831 (extend_schedule): Same.
5832 (apply_schedule_on_deps): Same.
5833 (carries_deps): Same.
5834 (compute_deps): Same.
5835 (scop_get_dependences): Same.
5836 * graphite-isl-ast-to-gimple.c
5837 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
5838 * graphite-optimize-isl.c (get_schedule_for_band): Same.
5839 (get_schedule_for_band_list): Same.
5840 (get_schedule_map): Same.
5841 (apply_schedule_map_to_scop): Same.
5842 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5843 (build_loop_iteration_domains): Same.
5844 (add_condition_to_pbb): Same.
5845 (add_param_constraints): Same.
5846 (pdr_add_memory_accesses): Same.
5847 (pdr_add_data_dimensions): Same.
5848
5849 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
5850
5851 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
5852 requirements.
5853
5854 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
5855
5856 * common.opt (feliminate-dwarf2-dups): Replace references to
5857 "DWARF 2" with just "DWARF".
5858 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
5859 * doc/extend.texi: Likewise.
5860 * doc/cpp.texi: Likewise.
5861 * doc/invoke.texi: Likewise.
5862 (Option Summary): Add -gdwarf to list of Debugging Options.
5863 (Debugging Options): Document -gdwarf.
5864 * doc/contrib.texi: Spell "DWARF" like that.
5865
5866 2016-01-21 Jakub Jelinek <jakub@redhat.com>
5867
5868 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
5869 warning. Fix up formatting.
5870
5871 PR middle-end/67653
5872 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
5873 attempt to mark memory input operand addressable and
5874 call prepare_gimple_addressable in that case. Don't adjust
5875 input_location for diagnostics, use error_at instead.
5876
5877 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
5878
5879 * config/rs6000/ppc-auxv.h: New file.
5880 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
5881 (cpu_is): Likewise.
5882 (cpu_supports): Likewise.
5883 * config/rs6000/rs6000.c: include "ppc-auxv.h".
5884 (cpu_is_info): New variable.
5885 (cpu_supports_info): Likewise.
5886 (tcb_verification_symbol): Likewise.
5887 (cpu_builtin_p): Likewise.
5888 (cpu_expand_builtin): New function.
5889 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
5890 (rs6000_init_builtins): Likewise.
5891 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
5892 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
5893 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
5894 * configure: Regenerate.
5895 * config.in: Likewise.
5896 * doc/extend.texi (PowerPC Built-in Functions): Document
5897 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
5898
5899 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
5900
5901 PR target/68609
5902 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
5903 domain check.
5904 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
5905 for V4SFmode.
5906
5907 2016-01-20 Richard Henderson <rth@redhat.com>
5908
5909 PR bootstrap/69343
5910 PR bootstrap/69339
5911 PR tree-opt/68964
5912 Revert:
5913 * tree.c (tm_define_builtin): New.
5914 (find_tm_vector_type): New.
5915 (build_tm_vector_builtins): New.
5916 (build_common_builtin_nodes): Call it.
5917
5918 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
5919
5920 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
5921 (arm_fp_ok): Likewise.
5922 (arm_fp): Likewise.
5923 (arm_crypto): Likewise.
5924
5925 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
5926 Richard Biener <rguenther@suse.de>
5927
5928 PR tree-optimization/69328
5929 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
5930 vectors have same number of elements.
5931 (vectorizable_condition): Fix masked version recognition.
5932
5933 2016-01-20 Richard Biener <rguenther@suse.de>
5934
5935 PR tree-optimization/69345
5936 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
5937 (VN_INFO_PTR_INFO): Likewise.
5938 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
5939 info when it is equal between non-dominating SSA names.
5940 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5941 Make sure to look at original SSA infos.
5942
5943 2016-01-20 Jeff Law <law@redhat.com>
5944
5945 PR target/25114
5946 * config/m68k/predicates.md (pow2_m1_operand): New predicate
5947 extracted from ...
5948 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
5949 (pc_or_label_operand): New predicate.
5950 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
5951 tests for small integers that are 2^n - 1.
5952
5953 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
5954
5955 * doc/invoke.texi (Options Summary): Add '.' after @xref.
5956
5957 2016-01-19 Jeff Law <law@redhat.com>
5958
5959 PR middle-end/69347
5960 * tree-ssa-threadbackwards.c
5961 (fsm_find_control_statement_thread_paths): Do not try to lookup
5962 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
5963
5964 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5965
5966 * doc/lto.texi: Remove text that says only Gold has linker plugin
5967 support.
5968
5969 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
5970
5971 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
5972 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
5973 the DIE accordingly.
5974 (modified_type_die): Add REVERSE parameter and pass it recursively,
5975 as well as to base_type_die. Adjust presence check accordingly.
5976 (base_type_for_mode): Adjust call to modified_type_die.
5977 (add_type_attribute): Add REVERSE parameter and pass it to
5978 modified_type_die.
5979 (generic_parameter_die): Adjust call to add_type_attribute.
5980 (add_scalar_info): Likewise.
5981 (add_subscript_info): Likewise.
5982 (gen_array_type_die): Likewise.
5983 (gen_descr_array_type_die): Likewise.
5984 (gen_entry_point_die): Likewise.
5985 (gen_enumeration_type_die): Likewise.
5986 (gen_formal_parameter_die): Likewise.
5987 (gen_subprogram_die): Likewise.
5988 (gen_variable_die ): Likewise.
5989 (gen_const_die): Likewise.
5990 (gen_field_die): Likewise.
5991 (gen_pointer_type_die): Likewise.
5992 (gen_reference_type_die): Likewise.
5993 (gen_ptr_to_mbr_type_die): Likewise.
5994 (gen_inheritance_die): Likewise.
5995 (gen_subroutine_type_die): Likewise.
5996 (gen_typedef_die): Likewise.
5997 (force_type_die): Adjust call to modified_type_die.
5998
5999 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
6000
6001 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
6002 flow throughout the file. Fix broken link to Objective-C 2.0
6003 documentation.
6004 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
6005 errors.
6006
6007 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6008
6009 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
6010
6011 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6012
6013 PR ipa/66223
6014 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
6015 (maybe_record_node): Record cxa_pure_virtual as the only possible
6016 target if there are not ohter candidates.
6017 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
6018
6019 2016-01-19 Richard Biener <rguenther@suse.de>
6020
6021 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
6022 (get_memory_order): Likewise.
6023
6024 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
6025
6026 * tree-vect-stmts.c (vectorizable_store): Check
6027 rhs vectype.
6028
6029 2016-01-19 David Malcolm <dmalcolm@redhat.com>
6030
6031 PR jit/68446
6032 * gcc.c (driver::decode_argv): Add call to
6033 init_opts_obstack before init_options_struct.
6034 * opts.c (init_opts_obstack): Remove idempotency.
6035 (init_options_struct): Replace call to init_opts_obstack
6036 with a gcc_assert to verify that it has already been called.
6037 * toplev.c (toplev::main): Add call to init_opts_obstack before
6038 calls to init_options_struct.
6039 (toplev::finalize): Move cleanup of opts_obstack next to
6040 cleanup of save_decoded_options, clearing the latter, and
6041 save_decoded_options_count.
6042
6043 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6044
6045 PR target/69135
6046 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
6047 attribute to unconditional. Remove %? from output template.
6048
6049 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6050 Jiong Wang <jiong.wang@arm.com>
6051
6052 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
6053 generated from different expand order.
6054
6055 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6056
6057 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6058 Add support for CCMP costing.
6059
6060 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6061
6062 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
6063 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
6064 (fccmpe<mode>): Likewise.
6065 (fcmp): Rename to fcmp and globalize pattern.
6066 (fcmpe): Likewise.
6067 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
6068 (aarch64_gen_ccmp_next): Add FP support.
6069
6070 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6071
6072 * target.def (gen_ccmp_first): Update documentation.
6073 (gen_ccmp_next): Likewise.
6074 * doc/tm.texi (gen_ccmp_first): Update documentation.
6075 (gen_ccmp_next): Likewise.
6076 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
6077 expand_ccmp_expr_1. Improve comments.
6078 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
6079 (ccmp_ior<mode>): Remove pattern.
6080 (cmp<mode>): Remove expand.
6081 (cmp): Globalize pattern.
6082 (cstorecc4): Use cc_register.
6083 (mov<mode>cc): Remove ccmp_cc_register check.
6084 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
6085 Simplify after removal of CC_DNE/* modes.
6086 (aarch64_ccmp_mode_to_code): Remove.
6087 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
6088 In 'k' case use integer as condition.
6089 (aarch64_nzcv_codes): Remove inverted cases.
6090 (aarch64_code_to_ccmode): Remove.
6091 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
6092 comparison with CC register to be used in folowing CCMP/branch/CSEL.
6093 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
6094 pattern. Return the comparison with CC register. Invert conditions
6095 when bitcode is OR.
6096 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
6097 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
6098
6099 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6100
6101 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6102 instrumented_version.
6103
6104 2016-01-19 Richard Biener <rguenther@suse.de>
6105
6106 PR tree-optimization/69336
6107 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
6108 handled components with get_ref_base_and_extent.
6109 (equal_mem_array_ref_p): Adjust.
6110
6111 2016-01-19 Jakub Jelinek <jakub@redhat.com>
6112
6113 PR debug/65779
6114 * shrink-wrap.c: Include valtrack.h.
6115 (move_insn_for_shrink_wrap): Add DEBUG argument. If
6116 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
6117 in between insn and where it will be moved to. Call
6118 dead_debug_insert_temp.
6119 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
6120 first and dead_debug_local_finish at the end.
6121 For uses and defs bitmap, handle all regs in between REGNO and
6122 END_REGNO, not just the first one.
6123
6124 2016-01-19 Richard Biener <rguenther@suse.de>
6125
6126 PR tree-optimization/69352
6127 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
6128 (equal_mem_array_ref_p): Constrain size and max size properly.
6129 Compare the reverse flag.
6130
6131 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
6132
6133 * ira.c (ira): Update regstat data if we deleted insns.
6134
6135 2016-01-19 Jakub Jelinek <jakub@redhat.com>
6136
6137 PR rtl-optimization/68955
6138 PR rtl-optimization/64557
6139 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
6140 here. Fix up formatting.
6141 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
6142
6143 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6144
6145 PR lto/69133
6146 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
6147 assume that the node has body.
6148 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
6149 check.
6150
6151 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6152
6153 * lto-streamer-out.c (lto_output): Do not stream instrumentation
6154 thunks.
6155
6156 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6157
6158 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
6159 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
6160
6161 2016-01-19 Martin Jambor <mjambor@suse.cz>
6162 Martin Liska <mliska@suse.cz>
6163 Michael Matz <matz@suse.de>
6164
6165 * Makefile.in (OBJS): Add new source files.
6166 (GTFILES): Add hsa.c.
6167 * common.opt (disable_hsa): New variable.
6168 (-Whsa): New warning.
6169 * config.in (ENABLE_HSA): New.
6170 * configure.ac: Treat hsa differently from other accelerators.
6171 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
6172 $enable_offloading.
6173 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
6174 * doc/install.texi (Configuration): Document --with-hsa-runtime,
6175 --with-hsa-runtime-include, --with-hsa-runtime-lib and
6176 --with-hsa-kmt-lib.
6177 * doc/invoke.texi (-Whsa): Document.
6178 (hsa-gen-debug-stores): Likewise.
6179 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
6180 to invoke offload compiler for hsa acclerator.
6181 * opts.c (common_handle_option): Determine whether HSA offloading
6182 should be performed.
6183 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
6184 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
6185 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
6186 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
6187 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
6188 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
6189 GF_OMP_FOR_KIND_GRID_LOOP.
6190 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
6191 (pp_gimple_stmt_1): Likewise.
6192 * gimple-walk.c (walk_gimple_stmt): Likewise.
6193 * gimple.c (gimple_build_omp_grid_body): New function.
6194 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
6195 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
6196 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
6197 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
6198 GF_OMP_TEAMS_GRID_PHONY.
6199 (gimple_statement_omp_single_layout): Updated comments.
6200 (gimple_build_omp_grid_body): New function.
6201 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
6202 (gimple_omp_for_grid_phony): New function.
6203 (gimple_omp_for_set_grid_phony): Likewise.
6204 (gimple_omp_parallel_grid_phony): Likewise.
6205 (gimple_omp_parallel_set_grid_phony): Likewise.
6206 (gimple_omp_teams_grid_phony): Likewise.
6207 (gimple_omp_teams_set_grid_phony): Likewise.
6208 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
6209 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
6210 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
6211 (BUILT_IN_GOMP_TARGET): Updated type.
6212 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
6213 (adjust_for_condition): New function.
6214 (get_omp_for_step_from_incr): Likewise.
6215 (extract_omp_for_data): Moved parts to adjust_for_condition and
6216 get_omp_for_step_from_incr.
6217 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
6218 (fixup_child_record_type): Bail out if receiver_decl is NULL.
6219 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
6220 (scan_omp_parallel): Do not create child functions for phony
6221 constructs.
6222 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
6223 (scan_omp_1_op): Checking assert we are not remapping to
6224 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
6225 (parallel_needs_hsa_kernel_p): New function.
6226 (expand_parallel_call): Register apprpriate parallel child
6227 functions as HSA kernels.
6228 (grid_launch_attributes_trees): New type.
6229 (grid_attr_trees): New variable.
6230 (grid_create_kernel_launch_attr_types): New function.
6231 (grid_insert_store_range_dim): Likewise.
6232 (grid_get_kernel_launch_attributes): Likewise.
6233 (get_target_argument_identifier_1): Likewise.
6234 (get_target_argument_identifier): Likewise.
6235 (get_target_argument_value): Likewise.
6236 (push_target_argument_according_to_value): Likewise.
6237 (get_target_arguments): Likewise.
6238 (expand_omp_target): Call get_target_arguments instead of looking
6239 up for teams and thread limit.
6240 (grid_expand_omp_for_loop): New function.
6241 (grid_arg_decl_map): New type.
6242 (grid_remap_kernel_arg_accesses): New function.
6243 (grid_expand_target_kernel_body): New function.
6244 (expand_omp): Call it.
6245 (lower_omp_for): Do not emit phony constructs.
6246 (lower_omp_taskreg): Do not emit phony constructs but create for them
6247 a temporary variable receiver_decl.
6248 (lower_omp_taskreg): Do not emit phony constructs.
6249 (lower_omp_teams): Likewise.
6250 (lower_omp_grid_body): New function.
6251 (lower_omp_1): Call it.
6252 (grid_reg_assignment_to_local_var_p): New function.
6253 (grid_seq_only_contains_local_assignments): Likewise.
6254 (grid_find_single_omp_among_assignments_1): Likewise.
6255 (grid_find_single_omp_among_assignments): Likewise.
6256 (grid_find_ungridifiable_statement): Likewise.
6257 (grid_target_follows_gridifiable_pattern): Likewise.
6258 (grid_remap_prebody_decls): Likewise.
6259 (grid_copy_leading_local_assignments): Likewise.
6260 (grid_process_kernel_body_copy): Likewise.
6261 (grid_attempt_target_gridification): Likewise.
6262 (grid_gridify_all_targets_stmt): Likewise.
6263 (grid_gridify_all_targets): Likewise.
6264 (execute_lower_omp): Call grid_gridify_all_targets.
6265 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
6266 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
6267 (tree_omp_clause): Added union field dimension.
6268 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
6269 * tree.c (omp_clause_num_ops): Added number of arguments of
6270 OMP_CLAUSE__GRIDDIM_.
6271 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
6272 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
6273 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
6274 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
6275 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
6276 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
6277 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
6278 * tree-pass.h (make_pass_gen_hsail): Declare.
6279 (make_pass_ipa_hsa): Likewise.
6280 * ipa-hsa.c: New file.
6281 * lto-section-in.c (lto_section_name): Add hsa section name.
6282 * lto-streamer.h (lto_section_type): Add hsa section.
6283 * timevar.def (TV_IPA_HSA): New.
6284 * hsa-brig-format.h: New file.
6285 * hsa-brig.c: New file.
6286 * hsa-dump.c: Likewise.
6287 * hsa-gen.c: Likewise.
6288 * hsa.c: Likewise.
6289 * hsa.h: Likewise.
6290 * toplev.c (compile_file): Call hsa_output_brig.
6291 * hsa-regalloc.c: New file.
6292
6293 2016-01-18 Jeff Law <law@redhat.com>
6294
6295 PR tree-optimization/69320
6296 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
6297 ranged object, do nothing if the RHS constant is not [0..1].
6298 (optimize_stmt): Comparing a boolean ranged object against a
6299 constant outside [0..1] results in a compile-time constant.
6300
6301 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
6302 test.
6303
6304 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
6305
6306 * doc/invoke.texi (Invoking GCC): Add new section to menu.
6307 (Option Summary): Update to reflect new section and moved options.
6308 (C++ Dialect Options): Move -fstats to new section.
6309 (Debugging Options): Move all dump, statistics, and other GCC
6310 developer options to new section. Rewrite section introduction
6311 and re-order remaining options to put the more basic ones first.
6312 (Optimization Options): Move -fira-verbose and -flto-report* to
6313 new section.
6314 (Developer Options): New section incorporating moved options.
6315 * doc/cppopts.texi (-dM): Update cross-reference.
6316
6317 2016-01-18 Richard Henderson <rth@redhat.com>
6318
6319 PR target/69176
6320 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
6321 operands to pseudo only if CSE is expected. Split long immediate
6322 operands only after reload, and for the stack pointer.
6323 (*add<GPI>3_pluslong): Remove.
6324 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
6325 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
6326 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
6327 (*add<GPI>3 peepholes): New.
6328 (*add<GPI>3 splitters): New.
6329 * config/aarch64/constraints.md (Upl): New.
6330 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
6331
6332 2016-01-18 Richard Biener <rguenther@suse.de>
6333
6334 PR tree-optimization/69297
6335 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
6336 stmt at most once.
6337 (vect_bb_vectorization_profitable_p): Clear visited flag again.
6338
6339 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6340
6341 PR middle-end/68542
6342 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
6343 of mixind vector and scalar types.
6344 (fold_relational_const): Add handling of vector
6345 comparison with boolean result.
6346 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
6347 comparison of vector operands with boolean result for EQ/NE only.
6348 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
6349 (verify_gimple_cond): Likewise.
6350 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
6351 valid type of VAL.
6352
6353 2016-01-18 Joseph Myers <joseph@codesourcery.com>
6354
6355 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
6356 !TARGET_OCTEON.
6357
6358 2016-01-18 Richard Biener <rguenther@suse.de>
6359
6360 PR middle-end/69308
6361 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
6362
6363 2016-01-18 Tom de Vries <tom@codesourcery.com>
6364
6365 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
6366
6367 2016-01-18 Tom de Vries <tom@codesourcery.com>
6368
6369 * omp-low.c (set_oacc_fn_attrib): Make extern.
6370 * omp-low.h (set_oacc_fn_attrib): Declare.
6371 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
6372 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
6373 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
6374 Add and handle function parameter oacc_kernels_p.
6375 (find_reduc_addr, get_omp_data_i_param): New function.
6376 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
6377 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
6378 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
6379 Calculate dominance info. Skip loops that are not in a kernels region
6380 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
6381 (pass_parallelize_loops::execute): Call parallelize_loops with
6382 oacc_kernels_p argument.
6383 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
6384 New member function.
6385 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
6386 * passes.def: Add argument to pass_parallelize_loops instantation.
6387
6388 2016-01-18 Tom de Vries <tom@codesourcery.com>
6389
6390 * tree-parloops.c (pass_parallelize_loops::execute): Allow
6391 pass_parallelize_loops to be run outside the loop pipeline.
6392
6393 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
6394
6395 * tree-scalar-evolution.c (follow_copies_to_constant): New.
6396 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
6397
6398 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
6399
6400 PR target/63679
6401 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
6402 using get_ref_base_and_extent.
6403 (equal_mem_array_ref_p): New.
6404 (hashable_expr_equal_p): Add call to previous.
6405
6406 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
6407
6408 PR target/63679
6409 * tree-sra.c (disqualified_constants, constant_decl_p): New.
6410 (sra_initialize): Allocate disqualified_constants.
6411 (sra_deinitialize): Free disqualified_constants.
6412 (disqualify_candidate): Update disqualified_constants when appropriate.
6413 (create_access): Scan for constant-pool entries as we go along.
6414 (scalarizable_type_p): Add check against type_contains_placeholder_p.
6415 (maybe_add_sra_candidate): Allow constant-pool entries.
6416 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
6417 (initialize_constant_pool_replacements): New.
6418 (sra_modify_assign): Avoid mangling assignments created by previous,
6419 and don't generate writes into constant pool.
6420 (sra_modify_function_body): Call initialize_constant_pool_replacements.
6421
6422 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
6423
6424 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
6425 andnot instruction.
6426 (scalar_chain::convert_op): Likewise.
6427 * config/i386/i386.md (*andndi3_doubleword): New.
6428
6429 2016-01-18 Richard Biener <rguenther@suse.de>
6430
6431 PR tree-optimization/69170
6432 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
6433 building a vector from scalar results of a pattern stmt.
6434
6435 2016-01-18 Jakub Jelinek <jakub@redhat.com>
6436
6437 * haifa-sched.c (autopref_multipass_init): Work around
6438 -Wmaybe-uninitialized warning.
6439
6440 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6441
6442 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
6443 against the constant 0.
6444
6445 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6446
6447 PR tree-optimization/68799
6448 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
6449 look up phi candidates in the statement-candidate map.
6450 (phi_add_costs): Likewise.
6451 (record_phi_increments): Likewise.
6452 (phi_incr_cost): Likewise.
6453 (ncd_with_phi): Likewise.
6454 (all_phi_incrs_profitable): Likewise.
6455
6456 2016-01-17 Jakub Jelinek <jakub@redhat.com>
6457
6458 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
6459 -Wmaybe-uninitialized warning.
6460
6461 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
6462
6463 * doc/invoke.texi (Invoking GCC): Add new section to menu.
6464 (Option Summary): Update to reflect new section and moved options.
6465 (C++ Dialect Options): Move -fvtable-verify and related options.
6466 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
6467 and profiling-related options.
6468 (Optimization Options): Move profile generation options and
6469 -fstack-protector and related options.
6470 (Instrumentation Options): New section incorporating moved options.
6471 (Code Generation Options): Move -finstrument-functions and
6472 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
6473
6474 2016-01-16 Tom de Vries <tom@codesourcery.com>
6475
6476 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
6477
6478 2016-01-16 Tom de Vries <tom@codesourcery.com>
6479
6480 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
6481
6482 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
6483
6484 * hash-table.h (hash_table::empty): Turn into an inline wrapper
6485 that checks whether the table is already empty. Rename the
6486 original implementation to...
6487 (hash_table::empty_slot): ...this new private function.
6488
6489 2016-01-15 David Malcolm <dmalcolm@redhat.com>
6490
6491 PR diagnostic/68899
6492 * diagnostic-show-locus.c (layout::print_source_line): Move x
6493 offset of line until after call to
6494 get_line_width_without_trailing_whitespace.
6495
6496 2016-01-15 Jeff Law <law@redhat.com>
6497
6498 PR tree-optimization/69270
6499 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
6500 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
6501 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
6502 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
6503 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
6504 ssa_name_has_boolean_range and constant_boolean_node.
6505
6506 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
6507
6508 PR rtl-optimization/69030
6509 * lra-spills.c (remove_pseudos): Check nrefs and make the function
6510 returning bool.
6511 (spill_pseudos): Delete debug insn for dead pseudo.
6512 (lra_spill): Initiate spill_hard_reg and slots memory separately.
6513
6514 2016-01-15 Jiong Wang <jiong.wang@arm.com>
6515
6516 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
6517 New.
6518 (TYPES_UNOPUS): Likewise.
6519 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
6520 builtin type, from UNOP to UNOPUS.
6521 (lbtruncuv4sf): Likewise.
6522 (lbtruncuv2df): Likewise.
6523 (lrounduv2sf): Likewise.
6524 (lrounduv4sf): Likewise.
6525 (lrounduv2df): Likewise.
6526 (lroundusf): Likewise.
6527 (lroundusf): Likewise.
6528 (lceiluv2sf): Likewise.
6529 (lceiluv4sf): Likewise.
6530 (lceiluv2df): Likewise.
6531 (lceilusf): Likewise.
6532 (lceiludf): Likewise.
6533 (lflooruv2sf): Likewise.
6534 (lflooruv4sf): Likewise.
6535 (lflooruv2df): Likewise.
6536 (lfloorusf): Likewise.
6537 (lfloorudf): Likewise.
6538 (lfrintnuv2sf): Likewise.
6539 (lfrintnuv4sf): Likewise.
6540 (lfrintnuv2df): Likewise.
6541 (lfrintnusf): Likewise.
6542 (lfrintnudf): Likewise.
6543 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
6544 conversion.
6545 (vcvtq_u32_f32): Likewise.
6546 (vcvtq_u64_f64): Likewise.
6547 (vcvta_u32_f32): Likewise.
6548 (vcvtaq_u32_f32): Likewise.
6549 (vcvtaq_u64_f64): Likewise.
6550 (vcvtm_u32_f32): Likewise.
6551 (vcvtmq_u32_f32): Likewise.
6552 (vcvtmq_u64_f64): Likewise.
6553 (vcvtn_u32_f32): Likwise.
6554 (vcvtnq_u32_f32): Likewise.
6555 (vcvtnq_u64_f64): Likewise.
6556 (vcvtp_u32_f32): Likewise.
6557 (vcvtpq_u32_f32): Likewise.
6558 (vcvtpq_u64_f64): Likewise.
6559 (vcvtmd_u64_f64): Likewise.
6560 (vcvtms_u32_f32): Likewise.
6561 (vcvtad_u64_f64): Likewise.
6562 (vcvtas_u32_f32): Likewise.
6563 (vcvtnd_u64_f64): Likewise.
6564 (vcvtns_u32_f32): Likewise.
6565 (vcvtpd_u64_f64): Likewise.
6566 (vcvtps_u32_f32): Likewise.
6567
6568 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6569
6570 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
6571 CSEL of zero_extended registers.
6572
6573 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6574
6575 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
6576 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
6577
6578 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6579
6580 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
6581 false when argument string is not found in the attributes table
6582 at all.
6583
6584 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
6585
6586 PR target/68609
6587 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
6588 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
6589 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
6590 precision estimate.
6591
6592 2016-01-15 Richard Biener <rguenther@suse.de>
6593
6594 PR tree-optimization/66856
6595 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
6596 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
6597 (vect_create_new_slp_node): Increment stmt reference count.
6598 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
6599 an SLP tree before swapping operands.
6600 (vect_build_slp_tree): Likewise.
6601 (destroy_bb_vec_info): Free stmt info after SLP instances.
6602 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
6603 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
6604 (STMT_VINFO_NUM_SLP_USES): New macro.
6605
6606 2016-01-15 Richard Biener <rguenther@suse.de>
6607
6608 PR debug/69137
6609 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
6610 (add_linkage_name): ... here.
6611 (gen_typedef_die): Use add_linkage_name_raw instead of
6612 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
6613 if necessary.
6614
6615 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6616
6617 * gimplify.c (oacc_default_clause): Decode reference and pointer
6618 types for both kernels and parallel regions.
6619
6620 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
6621
6622 PR middle-end/69246
6623 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
6624
6625 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6626
6627 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
6628 (convert_scalars_to_vector): Likewise.
6629
6630 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
6631
6632 * doc/extend.texi (Type Traits): Fix grammar.
6633
6634 2016-01-15 Martin Jambor <mjambor@suse.cz>
6635
6636 * tree-inline.c (remap_decl): Use existing dclarations if
6637 remapping a type and prevent_decl_creation_for_types.
6638 (replace_locals_stmt): Do an initial remapping of non-VLA typed
6639 decls first. Do real remapping with
6640 prevent_decl_creation_for_types set.
6641 * tree-inline.h (copy_body_data): New field
6642 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
6643 padding.
6644
6645 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6646
6647 * config/s390/s390.opt (mmvcle): More verbose help text.
6648
6649 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6650
6651 * config/s390/s390.opt: Add period to -mzvector option text.
6652
6653 2016-01-15 Richard Biener <rguenther@suse.de>
6654
6655 PR tree-optimization/68961
6656 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
6657 of invariants in stores again.
6658
6659 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6660
6661 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
6662
6663 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6664
6665 * config/i386/i386.c (ix86_expand_branch): Don't split
6666 DI mode xor instruction to SI mode.
6667
6668 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
6669
6670 PR ipa/68148
6671 * ipa-icf.c (sem_function::merge): Virtual functions may become
6672 reachable even if they address is not taken and there are no
6673 idrect calls.
6674
6675 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
6676
6677 * lto-streamer-out.c (subtract_estimated_size): New function.
6678 (get_symbol_initial_value): Use it.
6679
6680 2016-01-15 Christian Bruel <christian.bruel@st.com>
6681
6682 PR target/65837
6683 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
6684 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
6685 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
6686 use add_builtin_function_ext_scope instead of add_builtin_function.
6687 (neon_set_p, neon_crypto_set_p): Remove.
6688 (arm_init_builtins): Always call arm_init_neon_builtins and
6689 arm_init_crypto_builtins.
6690 (arm_expand_builtin): Check that builtins are allowed for the arch.
6691 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
6692 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
6693 arm_init_neon_builtins call.
6694
6695 2016-01-15 Richard Biener <rguenther@suse.de>
6696
6697 PR tree-optimization/69117
6698 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
6699 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
6700 of the leader conservatively.
6701 (free_scc_vn): Restore original SSA name infos.
6702
6703 2016-01-14 Jeff Law <law@redhat.com>
6704
6705 PR tree-optimization/69270
6706 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
6707 single bit of precision, verify it's also unsigned.
6708 (record_edge_info): Use constant_boolean_node rather than fold_convert
6709 to convert boolean_true/boolean_false to the right type.
6710
6711 2016-01-14 Richard Henderson <rth@redhat.com>
6712
6713 PR rtl-opt/69014
6714 * loop-doloop.c (record_reg_sets): New.
6715 (doloop_optimize): Reject the transform if the sequence
6716 clobbers registers live at the end of the loop block.
6717 (doloop_optimize_loops): Enable df_live if needed.
6718
6719 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6720
6721 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
6722 * gcc/config/rs6000/rs6000.c: Likewise.
6723 * gcc/config/rs6000/rs6000.h: Likewise.
6724 * gcc/config/rs6000/rs6000.md: Likewise.
6725 * gcc/doc/extend.texi: Likewsie.
6726
6727 2016-01-14 Jeff Law <law@redhat.com>
6728
6729 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
6730 typo.
6731
6732 2016-01-14 Richard Henderson <rth@redhat.com>
6733
6734 PR c/69272
6735 PR tree-opt/68964
6736 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
6737 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
6738 instead of builtin_decl_declared_p to test for declaration.
6739
6740 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
6741
6742 * doc/loop.texi (Loop Analysis and Representation): Document
6743 loop_depth function.
6744
6745 2016-01-14 Tom de Vries <tom@codesourcery.com>
6746
6747 PR tree-optimization/68773
6748 * omp-low.c (expand_omp_target): Don't set force_output.
6749 * varpool.c (varpool_node::get_create): Same.
6750 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
6751 offload_funcs with force_output.
6752
6753 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6754
6755 PR debug/69244
6756 * lra-eliminations.c (move_plus_up): Don't change anything if either
6757 the outer or inner subreg mode is not MODE_INT.
6758 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
6759 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
6760
6761 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
6762
6763 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
6764 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
6765 reduc_uplus_@var{m}): Remove.
6766 * expr.c (expand_expr_real_2): Remove expansion path for
6767 reduc_[us](min|max|plus) optabs.
6768 * optabs-tree.c (scalar_reduc_to_vector): Remove.
6769 * optabs-tree.h (scalar_reduc_to_vector): Remove.
6770 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
6771 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
6772 * tree-vect-loop.c (vectorizable_reduction): Remove test for
6773 reduc_[us](min|max|plus) optabs.
6774
6775 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
6776
6777 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
6778 (reduc_plus_scal_v2sf): New.
6779 (reduc_smax_v2sf): Rename to...
6780 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
6781 (reduc_smin_v2sf): Rename to...
6782 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
6783
6784 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
6785
6786 * alias.c (compare_base_symbol_refs): New function.
6787 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
6788 it.
6789
6790 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6791
6792 PR middle-end/68146
6793 PR tree-optimization/69155
6794 * tree-complex.c: Include cfganal.h.
6795 (phis_to_revisit): New variable.
6796 (extract_component): Add phiarg_p argument. Assert that returned
6797 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
6798 (update_phi_components): Partly rewrite to use loop over real/imag
6799 components instead of code duplication. If extract_component returns
6800 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
6801 create_tmp_reg into the PHI node instead, and mention the phi triplet
6802 in phis_to_revisit.
6803 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
6804 in phis_to_revisit at the end.
6805
6806 2016-01-14 Richard Biener <rguenther@suse.de>
6807
6808 PR tree-optimization/68060
6809 * tree-vect-loop.c (vect_is_simple_reduction): Check the
6810 outer loop reduction is only used in the inner loop before
6811 detecting a double reduction.
6812
6813 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6814
6815 PR target/68269
6816 * combine.c (expand_field_assignment): Punt if compute_mode is
6817 unsupported scalar mode.
6818
6819 2016-01-14 Richard Biener <rguenther@suse.de>
6820
6821 PR tree-optimization/66856
6822 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
6823 SLP node only if it built successfully.
6824 (vect_analyze_slp_instance): Adjust.
6825
6826 2016-01-14 Jeff Law <law@redhat.com>
6827
6828 PR tree-optimization/69270
6829 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
6830 (record_edge_info): Use it. Convert boolean_{true,false}_node
6831 to the type of op0.
6832
6833 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
6834
6835 PR ipa/66487
6836 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
6837 use block_ultimate_origin
6838 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
6839
6840 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
6841
6842 * doc/invoke.texi (Submodel Options): Rename section to
6843 "Machine-Dependent Options" to better reflect its content.
6844 Rewrite introductory text to remove archaic CPU names.
6845 Update references.
6846
6847 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
6848
6849 * doc/invoke.texi (Code Gen Options): Move section up in file,
6850 before target-specific options. Update menu and option summary
6851 to reflect the new section ordering.
6852
6853 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
6854
6855 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
6856 (C++ Dialect Options): Add cross-reference to -std option.
6857 * doc/standards.texi (C++ Language): Document C++14 support.
6858
6859 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6860
6861 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
6862 for pack/unpack functions for __ibm128.
6863 (PACK_IF): Likewise.
6864 (UNPACK_IF): Likewise.
6865
6866 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
6867 support for __ibm128 pack/unpack functions.
6868 (rs6000_invalid_builtin): Likewise.
6869 (rs6000_init_builtins): Likewise.
6870 (rs6000_opt_masks): Likewise.
6871
6872 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
6873 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
6874 functions
6875 (RS6000_BTM_COMMON): Likewise.
6876
6877 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
6878 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
6879 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
6880 128-bit floating point. Add support for the double values to be
6881 in Altivec registers for TF/IF packing and unpacking, but restrict
6882 TD packing sub-fields to be FPR registers. Don't allow overlapped
6883 register support for packing. Allow pack inputs to be memory
6884 locations. Don't build generator functions for unpack<mode>_dm
6885 and unpack<mode>_nodm.
6886 (unpack<mode>_dm): Likewise.
6887 (unpack<mode>_nodm): Likewise.
6888 (pack<mode>): Likewise.
6889
6890 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
6891 built-in functions to pack/unpack explicit __ibm128 values.
6892 (__builtin_unpack_ibm128): Likewise.
6893
6894 * doc/extend.texi (PowerPC Built-in Functions): Document
6895 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
6896
6897 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
6898
6899 PR c/66208
6900 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
6901 Add new arg loc and pass it down as context.
6902 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
6903 to the location to use for the warning.
6904 (check_function_arguments): New arg loc. All callers changed. Pass
6905 it to check_function_nonnull.
6906 * c-common.h (check_function_arguments): Adjust declaration.
6907
6908 2016-01-13 Jakub Jelinek <jakub@redhat.com>
6909
6910 PR tree-optimization/69156
6911 * gimple.c (validate_type): Removed.
6912 (gimple_builtin_call_types_compatible_p): Use
6913 useless_type_conversion_p instead of validate_type.
6914 * value-prof.c (gimple_stringop_fixed_value): Fold
6915 icall_size to correct type.
6916
6917 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
6918
6919 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
6920 effects.
6921
6922 2016-01-13 Richard Henderson <rth@redhat.com>
6923
6924 PR tree-opt/68964
6925 * target.def (builtin_tm_load, builtin_tm_store): Remove.
6926 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
6927 (ix86_builtin_tm_store): Remove.
6928 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6929 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6930 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6931 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6932 * doc/tm.texi: Rebuild.
6933
6934 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
6935 (BUILT_IN_TM_MEMCPY_RTWN): New.
6936 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
6937 fallback from vector to integer helpers.
6938 (build_tm_load): Handle vector types directly, instead of
6939 via target hook.
6940 (build_tm_store): Likewise.
6941 (expand_assign_tm): Prepare for register types not handled by
6942 the above. Copy them to memory and use memcpy.
6943 * tree.c (tm_define_builtin): New.
6944 (find_tm_vector_type): New.
6945 (build_tm_vector_builtins): New.
6946 (build_common_builtin_nodes): Call it.
6947
6948 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
6949
6950 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
6951 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
6952
6953 2016-01-13 Tom de Vries <tom@codesourcery.com>
6954
6955 PR tree-optimization/69169
6956 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
6957 handled_struct_type param.
6958 (create_variable_info_for, intra_create_variable_infos): Call
6959 create_variable_info_for_1 with extra arg.
6960
6961 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
6962
6963 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
6964 and "armv8.1-a+crc" entries.
6965
6966 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
6967
6968 PR target/69228
6969 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
6970 Change first operand predicate from register_or_constm1_operand
6971 to register_operand.
6972 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
6973 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
6974 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
6975 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
6976 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
6977 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
6978 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
6979 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
6980 comparison with constm1_rtx from vec_prefetch_gen part.
6981
6982 2016-01-13 Richard Biener <rguenther@suse.de>
6983
6984 PR tree-optimization/69013
6985 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
6986 Exchange assert for a test.
6987
6988 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6989
6990 PR target/69247
6991 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
6992
6993 2016-01-13 Richard Biener <rguenther@suse.de>
6994
6995 PR tree-optimization/69242
6996 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
6997 assert with a check.
6998
6999 2016-01-13 Richard Biener <rguenther@suse.de>
7000
7001 PR tree-optimization/69186
7002 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7003 Properly guard vect_update_misalignment_for_peel call.
7004
7005 2016-01-12 Jeff Law <law@redhat.com>
7006
7007 PR tree-optimization/pr67755
7008 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
7009 "need_profile_correction".
7010 (thread_block_1): Initialize new field to false by default. If we
7011 have multiple thread paths through a common joiner to different
7012 final targets, then set new field to true.
7013 (compute_path_counts): Only do count adjustment when it's really
7014 needed.
7015
7016 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7017
7018 * doc/invoke.texi (Spec Files): Move section down in file, past
7019 all command-line option descriptions.
7020
7021 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7022
7023 PR middle-end/54809
7024 * doc/gty.texi: Remove documentation of mark_hook.
7025 * gengtype.c (struct write_types_data): Remove code to support
7026 mark_hook attribute.
7027 (walk_type): Likewise.
7028 (write_func_for_structure): Likewise.
7029
7030 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7031
7032 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
7033 Directory Options, and -specs= to Overall Options.
7034 (Overall Options): Adjust similarly. Reorder to group related
7035 options together. Make -specs= cross-reference the spec file details.
7036 (Directory Options): Adjust similarly.
7037
7038 2016-01-12 Jeff Law <law@redhat.com>
7039
7040 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
7041
7042 2016-01-12 Olivier Hainque <hainque@adacore.com>
7043
7044 * gcc.c (spec_undefvar_allowed): New global.
7045 (process_command): Set to true when running for --version or --help,
7046 alone or together.
7047 (getenv_spec_function): When the variable is not defined, use the
7048 variable name as the variable value if we're allowed not to issue
7049 a fatal error.
7050
7051 2016-01-12 Bin Cheng <bin.cheng@arm.com>
7052
7053 PR tree-optimization/68911
7054 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
7055 information computed for expression "init + nit * step".
7056
7057 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7058
7059 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
7060 about name of GCC executable. Remove deleted node from menu.
7061 (Directory Options) <-B>: Remove cross-reference to deleted node.
7062 (Target Options): Delete section.
7063
7064 2016-01-12 Christian Bruel <christian.bruel@st.com>
7065
7066 PR target/69180
7067 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
7068 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
7069
7070 2016-01-12 Jakub Jelinek <jakub@redhat.com>
7071
7072 PR target/69198
7073 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
7074 aligned_mem is properly set for AVX512-VL floating point masked
7075 stores.
7076
7077 PR target/69175
7078 * ifcvt.c (cond_exec_process_if_block): When removing the last
7079 insn from then_bb, remove also any possible barriers that follow it.
7080
7081 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
7082
7083 PR target/68456
7084 PR target/69226
7085 * config/i386/iamcu.h (SIZE_TYPE): New macro.
7086 (PTRDIFF_TYPE): Likewise.
7087 (WCHAR_TYPE): Likewise.
7088 (WCHAR_TYPE_SIZE): Likewise.
7089 (STDINT_LONG32): Likewise.
7090
7091 2016-01-12 Richard Biener <rguenther@suse.de>
7092
7093 PR tree-optimization/69053
7094 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
7095 convert initial value for cond reductions.
7096
7097 2016-01-12 Richard Biener <rguenther@suse.de>
7098
7099 PR tree-optimization/69007
7100 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
7101 widen_sum after dot_prod and sad.
7102
7103 2016-01-12 Richard Biener <rguenther@suse.de>
7104
7105 PR tree-optimization/69168
7106 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
7107 pattern stmt SLP type.
7108 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
7109 end up unused so cope with that case.
7110
7111 2016-01-12 Richard Biener <rguenther@suse.de>
7112
7113 PR tree-optimization/69157
7114 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
7115 stmts def type only during analyze phase.
7116 (vectorizable_call): Likewise.
7117 (vectorizable_simd_clone_call): Likewise.
7118 (vectorizable_conversion): Likewise.
7119 (vectorizable_assignment): Likewise.
7120 (vectorizable_shift): Likewise.
7121 (vectorizable_operation): Likewise.
7122 (vectorizable_store): Likewise.
7123 (vectorizable_load): Likewise.
7124
7125 2016-01-12 Richard Biener <rguenther@suse.de>
7126
7127 PR tree-optimization/69174
7128 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
7129 space.
7130 (vectorizable_load): Properly compute the number of loads needed
7131 for permuted strided SLP loads and do not spuriously assign
7132 to SLP_TREE_VEC_STMTS.
7133
7134 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
7135
7136 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
7137 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
7138 (MD_EXEC_PREFIX): Remove.
7139 (MD_STARTFILE_PREFIX) Removee.
7140 (FILE_NAME_ABSOLUTE_P): Remove.
7141 (CPP_SPEC): Do not read macros from sys/version.h.
7142 (LINK_COMMAND_SPEC): Remove.
7143 (LOCAL_INCLUDE_DIR): Remove.
7144 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
7145 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
7146 (POST_LINK_SPEC): Define to invoke stubify after linker
7147 (LIBSTDCXX): Remove define
7148 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
7149 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
7150 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
7151 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
7152 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
7153 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
7154 (i386_djgpp_asm_named_section): Add propotype of new procedure
7155
7156 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
7157 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
7158 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
7159 in config/i386/djgpp.h).
7160 (STANDARD_STARTFILE_PREFIX_2): Define identical to
7161 STANDARD_STARTFILE_PREFIX_1.
7162 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
7163 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
7164 installation errors.
7165 (MAX_OFILE_ALIGNMENT): Define to 128.
7166 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
7167
7168 * config/i386/djgpp.c: New file. Add implementation of
7169 i386_djgpp_asm_named_section.
7170
7171 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
7172
7173 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
7174 Add rule for building djgpp.o.
7175
7176 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7177
7178 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
7179 (rtx_is_swappable_p): Reductions are swappable.
7180 (insn_is_swappable_p): V2DF reductions are swappable.
7181
7182 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
7183
7184 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
7185 reloads for other unsupported memory operands.
7186
7187 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7188 Jim Wilson <jim.wilson@linaro.org>
7189
7190 PR target/69194
7191 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
7192 copy_to_mode_reg instead of force_reg.
7193
7194 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
7195
7196 PR target/69225
7197 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
7198 TARGET_80387 is true.
7199
7200 2016-01-11 Jakub Jelinek <jakub@redhat.com>
7201
7202 PR target/69071
7203 * lra-eliminations.c (move_plus_up): Only move plus up
7204 if subreg of the constant can be simplified into constant
7205 and use the simplified subreg of the constant instead of
7206 the original constant.
7207
7208 * fold-const.c (fold_convertible_p): Don't return true
7209 for conversion of VECTOR_TYPE to same sized integral type.
7210 (fold_convert_loc): Fix up formatting. Fold conversion of
7211 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
7212 instead of NOP_EXPR.
7213
7214 PR tree-optimization/69214
7215 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
7216 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7217 Formatting fix.
7218
7219 PR tree-optimization/69207
7220 * tree-vect-slp.c (vect_get_constant_vectors): For
7221 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
7222 fold_convertible_p to vector_type's element type, and always
7223 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
7224
7225 2016-01-11 Richard Biener <rguenther@suse.de>
7226
7227 PR tree-optimization/69173
7228 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
7229 fixup the cycle if all stmts are in a pattern.
7230
7231 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
7232
7233 PR middle-end/68999
7234 * alias.c (base_alias_check): Move check for addresses with
7235 alignment ANDs before the call for compare_base_decls.
7236 (memrefs_conflict_p): Return -1 for different decls
7237 that went through alignment adjustments.
7238
7239 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7240
7241 PR rtl-optimization/68796
7242 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
7243 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
7244 and QImode comparisons against zero with CC_NZmode.
7245 * config/aarch64/iterators.md (short_mask): New mode_attr.
7246
7247 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
7248
7249 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
7250 (<avx512>_store<mode>_mask): Likewise.
7251
7252 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
7253 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7254
7255 PR rtl-optimization/68841
7256 * ifcvt.c (struct noce_if_info): Add orig_x field.
7257 (bbs_ok_for_cmove_arith): Add to_rename parameter.
7258 Don't record conflicts on to_rename if it's present.
7259 Allow memory destinations in sets.
7260 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
7261 blocks, passing orig_x to the checks.
7262 (noce_process_if_block): Set if_info->orig_x appropriately.
7263
7264 2016-01-11 Tom de Vries <tom@codesourcery.com>
7265
7266 PR tree-optimization/69069
7267 * tree-parloops.c (create_parallel_loop): Add missing phi args.
7268
7269 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
7270
7271 PR rtl-optimization/68920
7272 * config/i386/i386.c (ix86_option_override_internal): Restrict number
7273 of conditional moves for RTL if-conversion to 1 for
7274 TARGET_ONE_IF_CONV_INSN.
7275 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
7276 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
7277 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
7278 parameter to restirct number of conditional moves for
7279 RTL if-conversion.
7280 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
7281 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
7282 conditionl moves.
7283
7284 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
7285
7286 PR bootstrap/69123
7287 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
7288 onepart vars. Fix typo in comment. Fix reversed condition in
7289 unshare test.
7290 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
7291
7292 PR bootstrap/69123
7293 * var-tracking.c (dump_onepart_variable_differences): New.
7294 (dataflow_set_different): If a detailed dump is requested,
7295 delay early returns and dump differences between onepart
7296 variables present before and after, and added variables.
7297
7298 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
7299
7300 PR target/69010
7301 * expr.c (expand_expr_real_1): For boolean vector constants
7302 with a scalar mode use const_scalar_mask_from_tree.
7303 (const_scalar_mask_from_tree): New.
7304 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
7305 assigned to a mask type to handle constants.
7306
7307 2016-01-11 Martin Jambor <mjambor@suse.cz>
7308
7309 PR ipa/69044
7310 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
7311 useless parameters if we cannot change function signature.
7312
7313 2016-01-11 Martin Jambor <mjambor@suse.cz>
7314
7315 PR ipa/66616
7316 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
7317 flag.
7318
7319 2016-01-11 Tom de Vries <tom@codesourcery.com>
7320
7321 PR tree-optimization/69109
7322 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
7323 latch with phi.
7324
7325 2016-01-11 Tom de Vries <tom@codesourcery.com>
7326
7327 PR tree-optimization/69108
7328 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
7329 res is not used in a phi.
7330
7331 2016-01-11 Yury Gribov <y.gribov@samsung.com>
7332
7333 PR 67425
7334 * common.opt (frandom-seed): Fix parameter name.
7335 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
7336
7337 2016-01-11 Tom de Vries <tom@codesourcery.com>
7338
7339 PR tree-optimization/69058
7340 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
7341 not supported.
7342
7343 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
7344
7345 * config/arc/arc.opt (mdiv-rem): Add period to the end.
7346 (mcode-density): Likewise.
7347
7348 2016-01-10 Tom de Vries <tom@codesourcery.com>
7349
7350 PR tree-optimization/69062
7351 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
7352 (parallelize_loops): Don't paralelize loop that has phi with address
7353 arg.
7354
7355 2016-01-10 Tom de Vries <tom@codesourcery.com>
7356
7357 PR tree-optimization/69039
7358 * tree-parloops.c (try_create_reduction_list): Only allow single exit
7359 phi for reduction.
7360
7361 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
7362
7363 PR middle-end/68743
7364 * match.pd: Require target has function_c99_misc before doing
7365 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
7366
7367 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
7368
7369 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
7370 use GMPINC.
7371 * configure: Regenerate.
7372
7373 2016-01-09 Jakub Jelinek <jakub@redhat.com>
7374
7375 PR middle-end/50865
7376 PR tree-optimization/69097
7377 * fold-const.h (expr_not_equal_to): New prototype.
7378 * fold-const.c: Include stringpool.h and tree-ssanames.h.
7379 (expr_not_equal_to): New function.
7380 * match.pd (X % -Y is the same as X % Y): Don't optimize
7381 unless X is known not to be equal to minimum or Y is known
7382 not to be equal to -1.
7383 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
7384 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
7385 (simplify_stmt_using_ranges): Adjust caller.
7386 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
7387 substitute_and_fold.
7388
7389 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
7390
7391 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
7392 w/o DECL_NAME.
7393
7394 2016-01-08 Jakub Jelinek <jakub@redhat.com>
7395
7396 PR tree-optimization/69167
7397 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
7398 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
7399 ops[0] comparison.
7400 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
7401
7402 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
7403 Richard Biener <rguenther@suse.de>
7404
7405 PR tree-optimization/68707
7406 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
7407 instances that can be handled via vect_load_lanes.
7408
7409 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
7410
7411 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
7412 if we can't determine address equivalence.
7413 * alias.c (compare_base_decl): Update for changed return value of
7414 symtab_node::equal_address_to.
7415
7416 2016-01-08 Jason Merrill <jason@redhat.com>
7417
7418 PR c++/68983
7419 PR c++/67557
7420 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
7421 * expr.c (store_field): Not here.
7422 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
7423 call with TREE_ADDRESSABLE type.
7424 * tree-cfg.c (verify_gimple_call): Adjust.
7425
7426 2016-01-08 Olivier Hainque <hainque@adacore.com>
7427
7428 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
7429 libc_internal.
7430
7431 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
7432
7433 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
7434 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
7435 (reduc_smin_v2sf): Rename to...
7436 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
7437 (reduc_splus_v2sf): Rename to...
7438 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
7439
7440 2016-01-08 Jakub Jelinek <jakub@redhat.com>
7441
7442 PR tree-optimization/69162
7443 * gimplify.c (gimplify_va_arg_expr): Encode original type of
7444 valist argument in another argument.
7445 (gimplify_modify_expr): Adjust for the above change. Cleanup.
7446 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
7447 to determine the va_list type, build a MEM_REF instead of
7448 build_fold_indirect_ref.
7449
7450 PR tree-optimization/69172
7451 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
7452 gimple_build.
7453
7454 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
7455
7456 PR tree-optimization/67781
7457 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
7458 and cmpnop in two steps: first the ones not accessed in original
7459 gimple expression in a endian independent way and then the ones not
7460 accessed in the final result in an endian-specific way.
7461
7462 2016-01-08 Jakub Jelinek <jakub@redhat.com>
7463
7464 PR tree-optimization/69083
7465 * tree-vect-slp.c (vect_get_constant_vectors): For
7466 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
7467 element type. If op is fold_convertible_p to vector_type's element
7468 type, use NOP_EXPR instead of VCE.
7469
7470 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
7471
7472 PR rtl-optimization/67778
7473 PR rtl-optimization/68634
7474 PR rtl-optimization/68909
7475 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
7476 block from the stack until done with it. Remove a superfluous
7477 bitmap set. Remove a superfluous bitmap test.
7478
7479 2016-01-07 Martin Sebor <msebor@redhat.com>
7480
7481 PR c/68966
7482 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
7483 constraint on the type of arguments.
7484
7485 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
7486
7487 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
7488 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
7489 unaligned_access on the gcc_options set.
7490 * config/arm/arm.c (arm_option_override_internal): Use
7491 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
7492
7493 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
7494
7495 PR target/69140
7496 * config/i386/i386.c (ix86_frame_pointer_required): Enable
7497 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
7498
7499 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
7500
7501 Revert
7502 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
7503
7504 PR target/69140
7505 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
7506 depending on frame_pointer_needed before remaining integer and SSE
7507 registers are saved.
7508
7509 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
7510
7511 PR 1078
7512 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
7513
7514 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
7515
7516 PR target/69171
7517 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
7518 Use the "xBm" constraint.
7519 (float<sseintvecmodelower><mode>2<mask_name><round_name):
7520 Likewise.
7521 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
7522 (sse_cvtsi2ssq<round_name>): Likewise.
7523 (sse_cvtss2si<round_name>): Likewise.
7524 (sse_cvtss2siq<round_name>): Likewise.
7525 (sse2_cvtsi2sdq<round_name>): Likewise.
7526 (sse2_cvtsd2si<round_name>): Likewise.
7527 (sse2_cvtsd2siq<round_name>): Likewise.
7528 * config/i386/subst.md (round_nimm_scalar_predicate): New
7529 predicate.
7530
7531 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
7532
7533 PR middle-end/67639
7534 * varasm.c (make_decl_rtl): Mark invalid register vars as
7535 DECL_EXTERNAL.
7536
7537 PR rtl-optimization/66206
7538 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
7539 All callers changed.
7540
7541 2016-01-07 Jakub Jelinek <jakub@redhat.com>
7542
7543 PR tree-optimization/69141
7544 * tree-ssa-pre.c: Include langhooks.h.
7545 (eliminate_dom_walker::before_dom_children): Use
7546 lang_hooks.decl_printable_name instead of
7547 cgraph_node::get ()->name ().
7548
7549 PR middle-end/68960
7550 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
7551 it and DECL_ALIGN too.
7552
7553 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
7554
7555 * config/mips/mips-ftypes.def: Sort to lexicographical order.
7556
7557 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
7558
7559 PR target/69140
7560 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
7561 depending on frame_pointer_needed before remaining integer and SSE
7562 registers are saved.
7563
7564 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7565
7566 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
7567 mode iterator with VSX_M2.
7568 (*p9_vecstore_<mode>): Likewise.
7569 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
7570 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
7571 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
7572 (define_split for VSX_LE128 stores): Likewise.
7573 (define_peephole2 for TImode LE swaps): Likewise.
7574 (define_split for VSX_LE128 post-reload stores): Likewise.
7575
7576 2016-01-06 Marek Polacek <polacek@redhat.com>
7577
7578 PR sanitizer/69099
7579 * convert.c (convert_to_integer_1): Adjust call to
7580 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
7581 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
7582 EXPR instead of ARG.
7583 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
7584
7585 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7586
7587 PR 1078
7588 * doc/extend.texi (RL78 Variable Attributes): New section.
7589
7590 2016-01-05 Marek Polacek <polacek@redhat.com>
7591
7592 PR c/69104
7593 * builtins.c (get_memmodel): Use expansion point location rather than
7594 the input location. Call warning_at rather than warning.
7595 (expand_builtin_atomic_compare_exchange): Likewise.
7596 (expand_builtin_atomic_load): Likewise.
7597 (expand_builtin_atomic_store): Likewise.
7598 (expand_builtin_atomic_clear): Likewise.
7599
7600 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
7601
7602 PR target/68991
7603 * config/i386/i386.c (ix86_expand_vector_logical_operator):
7604 Replace nonimmediate_operand with vector_operand.
7605 * config/i386/predicates.md (vector_operand): New predicate.
7606 (general_vector_operand): Replace nonimmediate_operand with
7607 vector_operand.
7608 * config/i386/sse.md: Replace nonimmediate_operand with
7609 vector_operand and m constraint with Bm constraint on SSE
7610 patterns with 16-byte memory operand.
7611 * config/i386/subst.md (round_nimm_predicate): Replace
7612 nonimmediate_operand with vector_operand.
7613 (round_saeonly_nimm_predicate): Likewise.
7614 (round_saeonly_nimm_scalar_predicate): New.
7615
7616 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
7617
7618 PR target/68991
7619 * config/i386/constraints.md (Bm): New constraint.
7620 * config/i386/predicates.md (vector_memory_operand): New
7621 predicate.
7622 * config/i386/sse.md: Replace xm with xBm in plusminus and
7623 any_logic patterns.
7624
7625 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7626
7627 PR 1078
7628 * doc/extend.texi (V850 Function Attributes): New section.
7629 (V850 Variable Attributes): New section.
7630
7631 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7632
7633 PR 1078
7634 * doc/extend.texi (MicroBlaze Function Attributes): Document
7635 interrupt_handler and fast_interrupt attributes.
7636
7637 2016-01-05 Sergei Trofimovich <siarheit@google.com>
7638
7639 PR other/60465
7640 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
7641 for local symbolic operands.
7642 * config/ia64/predicates.md (local_symbolic_operand64): New
7643 predicate.
7644
7645 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7646
7647 PR rtl-optimization/68651
7648 * combine.c (combine_simplify_rtx): Canonicalize x + x into
7649 x << 1.
7650
7651 2016-01-05 Nathan Sidwell <nathan@acm.org>
7652
7653 * alias.c (compare_base_decls): Use symtab_node::get.
7654
7655 2016-01-05 Nick Clifton <nickc@redhat.com>
7656
7657 PR target/68770
7658 * ira-costs.c (copy_cost): Initialise the t_icode field of the
7659 secondary_reload_info structure.
7660
7661 PR target/66655
7662 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
7663 decls if weak support is available.
7664
7665 2016-01-04 Martin Sebor <msebor@redhat.com>
7666
7667 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
7668
7669 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7670
7671 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7672 OPTION_MASK_P9_DFORM.
7673
7674 * config/rs6000/constraints.md (wo constraint): New constraint for
7675 ISA 3.0 (power9).
7676
7677 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
7678 for wo constraint.
7679 (rs6000_init_hard_regno_mode_ok): Likewise.
7680
7681 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
7682 wo constraint.
7683
7684 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
7685 expanders not to have constraints. Add support for ISA 3.0 xxperm
7686 instruction. Add support for fusing xxlor with xxperm.
7687 (altivec_vperm_<mode>_internal): Likewise.
7688 (altivec_vperm_v8hiv16qi): Likewise.
7689 (altivec_vperm_<mode>v16q): Likewise.
7690 (altivec_vperm_<mode>_uns): Likewise.
7691 (vperm_v8hiv4si): Likewise.
7692 (vperm_v16qiv8hi): Likewise.
7693
7694 * doc/md.texi (RS/6000 constraints): Document wo constraint.
7695
7696 2016-01-04 Jakub Jelinek <jakub@redhat.com>
7697
7698 Update copyright years.
7699
7700 * gcc.c (process_command): Update copyright notice dates.
7701 * gcov-dump.c (print_version): Ditto.
7702 * gcov.c (print_version): Ditto.
7703 * gcov-tool.c (print_version): Ditto.
7704 * gengtype.c (create_file): Ditto.
7705 * doc/cpp.texi: Bump @copying's copyright year.
7706 * doc/cppinternals.texi: Ditto.
7707 * doc/gcc.texi: Ditto.
7708 * doc/gccint.texi: Ditto.
7709 * doc/gcov.texi: Ditto.
7710 * doc/install.texi: Ditto.
7711 * doc/invoke.texi: Ditto.
7712
7713 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7714
7715 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
7716 modes larger than TImode as TImode if NEON is not enabled.
7717
7718 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7719
7720 PR target/69100
7721 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
7722 mode for %f0-%f31 only if TARGET_FPU.
7723
7724 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7725
7726 PR target/69072
7727 * config/sparc/sparc.c (scan_record_type): Take into account subfields
7728 to compute the PACKED_P predicate.
7729 (function_arg_record_value): Minor tweaks.
7730
7731 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
7732
7733 * doc/install.texi (--with-multilib-list): Describe the meaning of the
7734 option for arm*-*-* targets.
7735
7736 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
7737
7738 * doc/extend.texi (Common Function Attributes): Move docs for
7739 MSP430-specific attributes to....
7740 (MSP430 Function Attributes): ...here. Delete the redundant
7741 entries and copy-edit the remaining text.
7742 (MSP430 Variable Attributes): Use uniform format for index
7743 entries and add a cross-reference to the corresponding function
7744 attribute docs.
7745
7746 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
7747
7748 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
7749 -finite-math typo.
7750 (x86 Options): Likewise.
7751
7752 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
7753
7754 PR 1078
7755
7756 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
7757 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
7758 to corresponding attribute.
7759
7760 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
7761
7762 * doc/extend.texi (Common Function Attributes) <noplt>: Move
7763 to correct alphabetization of table. Copy-edit and correct
7764 markup.
7765 <stack_protect>: Likewise.
7766 <target_clones>: Likewise.
7767 <simd>: Likewise.
7768 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
7769 Correct punctuation.
7770 (Code Gen Options) <-fno-plt>: Copy-edit.
7771
7772 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7773
7774 PR target/68917
7775 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
7776 SI values. Explicitly convert SI to DI and vice-versa.
7777
7778 2016-01-01 Jakub Jelinek <jakub@redhat.com>
7779
7780 PR tree-optimization/69070
7781 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
7782 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
7783
7784 PR sanitizer/69055
7785 * ubsan.c (ubsan_instrument_float_cast): Call
7786 initialize_sanitizer_builtins.
7787
7788 PR target/69015
7789 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
7790 \f
7791 Copyright (C) 2016 Free Software Foundation, Inc.
7792
7793 Copying and distribution of this file, with or without modification,
7794 are permitted in any medium without royalty provided the copyright
7795 notice and this notice are preserved.