re PR tree-optimization/70169 (ICE at -O1 and above on x86_64-linux-gnu in gen_lsm_tm...
[gcc.git] / gcc / ChangeLog
1 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2
3 PR tree-optimization/70169
4 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
5 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
6 for unknown codes.
7
8 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9 Jakub Jelinek <jakub@redhat.com>
10
11 PR target/70160
12 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13 of uninitialized values.
14
15 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16
17 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
18 define_expand.
19 ("*trunctddd2"): New pattern definition.
20 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
21 TD->DD truncation.
22
23 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24
25 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26 definitions for BFP and DFP rounding modes.
27 ("fixuns_truncdddi2", "fixuns_trunctddi2")
28 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
30 ("fix_trunctf<mode>2"): Use the new constants instead of magic
31 numbers.
32
33 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34
35 * config/s390/constraints.md: Adjust comment.
36 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
37 s390_decompose_addrstyle_without_index.
38 * config/s390/predicates.md (shift_count_or_setmem_operand):
39 Rename to setmem_operand.
40 * config/s390/s390-protos.h
41 (s390_decompose_shift_count): Rename to
42 s390_decompose_addrstyle_without_index.
43 * config/s390/s390.c (s390_decompose_shift_count)
44 (s390_mem_constraint, print_shift_count_operand)
45 (print_operand_address, print_operand): Rename
46 s390_decompose_shift_count to
47 s390_decompose_addrstyle_without_index and rename
48 print_shift_count_operand to print_addrstyle_operand troughout the
49 file.
50 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
51 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
52 Rename shift_count_or_setmem_operand to setmem_operand.
53 * config/s390/vx-builtins.md ("vec_insert<mode>")
54 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
55 nonmemory_operand.
56
57 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
58
59 PR target/70168
60 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
61 Handle overlapping retval and newval.
62
63 2016-03-10 Nick Clifton <nickc@redhat.com>
64
65 PR target/7044
66 * config/aarch64/aarch64.c
67 (aarch64_override_options_after_change_1): When forcing
68 flag_omit_frame_pointer to be true, use a special value that can
69 be detected if this function is called again, thus preventing
70 flag_omit_leaf_frame_pointer from being forced to be false.
71
72 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
73
74 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
75 Set x_flag_omit_leaf_frame_pointer when handling
76 -momit-leaf-frame-pointer.
77
78 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
79
80 PR lto/69589
81 * cgraph.c (cgraph_node::dump): Dump split_part and indirect_call_target.
82 * cgraph.h (cgraph_node): Add indirect_call_target flag.
83 * ipa.c (has_addr_references_p): Cleanup.
84 (is_indirect_call_target_p): New.
85 (walk_polymorphic_call_targets): Do not mark virtuals that may be
86 called indirectly as local.
87 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
88
89 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
90
91 PR ipa/69630
92 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
93 on cxa_pure_virtual.
94
95 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
96
97 PR lto/69589
98 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
99
100 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
101
102 PR lto/69589
103 * tree.c (need_assembler_name_p): Only record main variant type names.
104
105 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
106
107 PR target/70113.
108 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
109 Always define to 0 or 1.
110 (TARGET_FIX_ERR_A53_843419): New macro.
111 * config/aarch64/aarch64-elf-raw.h
112 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
113 * config/aarch64/aarch64-linux.h: Likewise.
114 * config/aarch64/aarch64.c
115 (aarch64_override_options_after_change_1): Do not default
116 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
117 843419 is on.
118 (aarch64_attributes): Handle fix-cortex-a53-843419.
119 (aarch64_can_inline_p): Likewise.
120 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
121
122 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
123 Jakub Jelinek <jakub@redhat.com>
124
125 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
126 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
127 DECL_COMMONS if flag_unconstrained_commons is set.
128 * tree-dfa.c (get_ref_base_and_extent): Likewise.
129 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
130 (funconstrained-commons): Document.
131
132 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
133
134 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
135 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
136
137 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
138
139 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
140 has a proper number of elements.
141
142 2016-03-10 Alan Modra <amodra@gmail.com>
143
144 PR rtl-optimization/69195
145 PR rtl-optimization/47992
146 * ira.c (recorded_label_ref): Delete.
147 (update_equiv_regs): Return void.
148 (indirect_jump_optimize): New function.
149 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
150 before regstat_compute_ri. Don't rebuild_jump_labels here.
151 Delete update_regstat.
152
153 2016-03-10 Richard Biener <rguenther@suse.de>
154
155 PR tree-optimization/70128
156 * tree-ssa-structalias.c (set_uids_in_ptset): Set
157 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
158
159 2016-03-09 Jakub Jelinek <jakub@redhat.com>
160
161 PR tree-optimization/70152
162 * tree-sra.c (replace_removed_params_ssa_names): Copy over
163 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
164
165 PR target/70086
166 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
167 instead of gen_sse2_loadlpd.
168 * config/i386/sse.md (*vec_concatv2df): Rename to...
169 (vec_concatv2df): ... this.
170
171 PR tree-optimization/70127
172 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
173
174 2016-03-09 David Malcolm <dmalcolm@redhat.com>
175
176 PR c/68473
177 PR c++/70105
178 * diagnostic-show-locus.c (compatible_locations_p): New function.
179 (layout::layout): Sanitize ranges using compatible_locations_p.
180
181 2016-03-09 David Malcolm <dmalcolm@redhat.com>
182
183 PR c/68473
184 PR c++/70105
185 * diagnostic-show-locus.c (layout_range::layout_range): Replace
186 location_range param with three const expanded_locations * and a
187 bool.
188 (layout::layout): Replace call to
189 rich_location::lazily_expand_location with get_expanded_location.
190 Extract the range and perform location expansion here, passing
191 the results to the layout_range ctor.
192 * diagnostic.c (source_range::debug): Delete.
193 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
194 of rich_location::get_expanded_location.
195 * gcc-rich-location.c (get_range_for_expr): Delete.
196 (gcc_rich_location::add_expr): Reimplement to avoid the
197 rich_location::add_range overload that took a location_range,
198 passing a location_t instead.
199
200 2016-03-09 Richard Biener <rguenther@suse.de>
201 Jakub Jelinek <jakub@redhat.com>
202
203 PR tree-optimization/70138
204 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
205 Also skip vect_double_reduction_def.
206
207 2016-03-09 Jakub Jelinek <jakub@redhat.com>
208
209 PR target/70049
210 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
211 if the operand is "m".
212
213 2016-03-09 Nathan Sidwell <nathan@acm.org>
214
215 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
216
217 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
218
219 * config/i386/i386.c (processor_target_table): Fix cost table
220 intialization order for znver1.
221
222 2016-03-08 Jakub Jelinek <jakub@redhat.com>
223
224 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
225 - becuase -> because.
226 * ipa-reference.c (ignore_module_statics): Likewise.
227 * cgraph.c (cgraph_node::get_body): Likewise.
228 * ipa-inline.c (early_inliner): Likewise.
229 * ipa-devirt.c (types_same_for_odr): Likewise.
230 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
231 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
232
233 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
234
235 * tree-ssa-math-opts.c: Fix typo in comment.
236
237 2016-03-08 Jakub Jelinek <jakub@redhat.com>
238
239 PR target/70110
240 * config/i386/i386.c (scalar_chain::make_vector_copies,
241 scalar_chain::convert_reg): Call end_sequence in between
242 get_insns and emit_conversion_insns rather than after both
243 calls.
244
245 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
246
247 PR target/70064
248 * config/i386/i386.h (machine_function): Add
249 pc_thunk_call_expanded flag.
250 (ix86_pc_thunk_call_expanded): New define.
251 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
252 (*set_got): Rename insn pattern from set_got.
253 (*set_got_labelled): Rename inst pattern from set_got_labelled.
254 * config/i386/i386.c (ix86_compute_frame_layout): Use
255 ix86_pc_thunk_call_expanded to prevent red-zone.
256
257 2016-03-07 Martin Jambor <mjambor@suse.cz>
258
259 * hsa.h (hsa_get_ctor_statements): Declare.
260 (hsa_get_dtor_statements): Likewise.
261 (hsa_get_kernel_dispatch_type): Likewise.
262 * hsa.c (hsa_get_ctor_statements): New function.
263 (hsa_get_dtor_statements): Likewise.
264 (hsa_get_kernel_dispatch_type): Likewise.
265 * hsa-brig.c (hsa_cdtor_statements): Removed.
266 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
267 hsa_get_dtor_statements.
268 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
269 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
270
271 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
272
273 * config/arm/arm-cores.def (cortex-r8): New.
274 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
275 * config/arm/arm-tune.md: Likewise.
276 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
277
278 2016-03-07 Martin Sebor <msebor@redhat.com>
279
280 PR rtl-optimization/19705
281 * doc/invoke.texi (Options That Control Optimization): Clarify
282 -fno-branch-count-reg.
283
284 2016-02-26 Richard Biener <rguenther@suse.de>
285 Jeff Law <law@redhat.com>
286
287 PR tree-optimization/69740
288 * cfghooks.c (remove_edge): Request loop fixups if we delete
289 an edge that might turn an irreducible loop into a natural
290 loop.
291 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
292 Move after definition of loops_state_clear.
293
294 2016-03-07 Bin Cheng <bin.cheng@arm.com>
295
296 PR rtl-optimization/69052
297 * rtlanal.c (commutative_operand_precedence): Set higher precedence
298 to CONST_WIDE_INT.
299
300 2016-03-07 Tom de Vries <tom@codesourcery.com>
301
302 PR tree-optimization/70116
303 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
304 is_tm_ending stmts and ubsan/asan internal functions.
305 (find_duplicate): Use it. Don't test is_tm_ending here.
306
307 2016-03-07 Richard Biener <rguenther@suse.de>
308
309 PR tree-optimization/70115
310 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
311 (propagate_constants_for_unrolling): Use replace_uses_by.
312
313 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
314
315 PR middle-end/69916
316 * omp-low.c (struct oacc_loop): Add ifns.
317 (new_oacc_loop_raw): Initialize it.
318 (finish_oacc_loop): Clear mask & flags if no ifns.
319 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
320 (oacc_loop_xform_loop): Add ifns arg & adjust.
321 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
322
323 2016-03-07 Richard Henderson <rth@redhat.com>
324
325 PR rtl-opt/70061
326 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
327 (insert_value_copy_on_edge): Likewise.
328
329 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
330
331 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
332
333 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
334
335 PR target/62281
336 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
337
338 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
339
340 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
341
342 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
343
344 Fix sseimul type attribute.
345 * config/i386/znver1.md
346 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
347 znver1_sseimul_avx256_load) : Fix the type attribute.
348 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
349 pipe usage and latency.
350
351 2016-03-05 Jakub Jelinek <jakub@redhat.com>
352
353 PR c++/70084
354 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
355 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
356 to the right type.
357
358 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
359
360 PR c/69973
361 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
362
363 PR rtl-optimization/69941
364 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
365 the reg share its mode.
366
367 2016-03-04 Jeff Law <law@redhat.com>
368
369 PR tree-optimization/69196
370 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
371 If the both SSA_NAMEs are anonymous, then consider them unassociated
372 and include the PHI in the statement count.
373
374 2016-03-05 Tom de Vries <tom@codesourcery.com>
375
376 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
377 construct in oacc routine. Check for oacc region in oacc routine.
378
379 2016-03-04 Jakub Jelinek <jakub@redhat.com>
380
381 PR target/70062
382 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
383 2016-02-22 changes, instead don't recurse if RECUR is already true.
384 Don't change *dynamic_check if RECUR. Adjust recursive caller
385 to pass true to the new argument.
386 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
387
388 PR target/70059
389 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
390 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
391 fixes.
392 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
393
394 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
395
396 PR rtl-optimization/57676
397 * lra-assigns.c (lra_assign): Guard test for maximum iterations
398 with flag_checking.
399
400 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
401
402 * tree-vect-patterns.c (search_type_for_mask): Handle
403 comparison of booleans.
404
405 2016-03-04 Jakub Jelinek <jakub@redhat.com>
406
407 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
408 Fix @xref usage.
409
410 PR debug/69947
411 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
412 all other ops that have dw_val_class_die_ref operands,
413 and DW_OP_GNU_entry_value.
414
415 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
416
417 PR rtl-optimization/69904
418 * config/arm/arm.c (arm_cannot_copy_insn_p):
419 Return true for load-exclusive instructions.
420
421 2016-03-03 Jakub Jelinek <jakub@redhat.com>
422
423 PR target/70021
424 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
425 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
426 the pattern no matter if it is used just by non-pattern, pattern
427 or mix thereof.
428 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
429 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
430 oprnd1 def_stmt is in pattern, don't look through it.
431
432 2016-03-03 Marek Polacek <polacek@redhat.com>
433
434 PR middle-end/70050
435 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
436
437 2016-03-03 Martin Liska <mliska@suse.cz>
438
439 PR tree-optimization/70043
440 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
441 previous statement if we see a debug statement.
442
443 2016-03-03 Richard Biener <rguenther@suse.de>
444
445 PR tree-optimization/55936
446 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
447 parameter and guard unsafe equivalence use.
448 (vrp_evaluate_conditional_warnv_with_ops): Always use
449 safe equivalences but not via the quadratic compare_names
450 helper.
451
452 2016-03-03 Michael Collison <michael.collison@linaro.org>
453
454 PR target/70014
455 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
456 for operand 1 to s_register_operand. Change predicate for operand
457 2 to arm_not_immediate_operand.
458
459 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
460
461 * doc/tm.texi: Regenerated.
462
463 2016-03-02 Richard Henderson <rth@redhat.com>
464
465 PR rtl-opt/67145
466 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
467 simplification when all args are positive non-fixed registers.
468
469 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
470
471 * target.def (lra_p): Specify that new ports should use LRA.
472
473 2016-03-02 Jakub Jelinek <jakub@redhat.com>
474
475 PR libgomp/69555
476 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
477 gimplify_type_sizes the type they refer to.
478 (omp_notice_variable): Handle reference vars to VLAs.
479 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
480 reference to VLA decls in the second pass instead of first pass.
481
482 2016-03-02 Tom de Vries <tom@codesourcery.com>
483
484 PR tree-optimization/68659
485 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
486 new_expr == NULL_TREE.
487 (get_new_name): Handle ADDR_EXPR.
488
489 2016-03-02 Bin Cheng <bin.cheng@arm.com>
490
491 PR rtl-optimization/69052
492 * loop-invariant.c (canonicalize_address): New function.
493 (inv_can_prop_to_addr_use): Check validity of address expression
494 which is canonicalized by above function.
495
496 2016-03-02 Alan Modra <amodra@gmail.com>
497
498 PR ipa/69990
499 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
500 larger alignment.
501
502 2016-03-02 Jakub Jelinek <jakub@redhat.com>
503
504 PR target/70028
505 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
506 (*movhi_internal): Put mask moves from and to memory separately
507 from moves from/to GPRs.
508
509 2016-03-02 Richard Biener <rguenther@suse.de>
510
511 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
512 GENERIC expressions in GIMPLE.
513
514 2016-03-02 Richard Biener <rguenther@suse.de>
515
516 * config/i386/i386.c (type_natural_mode): Fix typo.
517
518 2016-03-02 Nick Clifton <nickc@redhat.com>
519
520 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
521
522 2016-03-02 Richard Biener <rguenther@suse.de>
523 Uros Bizjak <ubizjak@gmail.com>
524
525 PR target/67278
526 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
527
528 2016-03-02 Richard Biener <rguenther@suse.de>
529
530 PR middle-end/67278
531 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
532
533 2016-03-02 Marek Polacek <polacek@redhat.com>
534
535 PR c/67854
536 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
537 "is promoted to" warning.
538
539 2016-03-01 DJ Delorie <dj@redhat.com>
540
541 * config.gcc: Deprecate mep-*.
542
543 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
544
545 PR middle-end/70025
546 * lra-constraints.c (regno_val_use_in): New.
547 (match_reload): Use it instead of regno_use_in.
548
549 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
550
551 PR rtl-optimization/70007
552 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
553 references present in REG_EQUAL notes attached to non-SET patterns.
554
555 2016-03-01 Jeff Law <law@redhat.com>
556
557 PR tree-optimization/69196
558 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
559 Appropriately clamp the number of statements to copy when the
560 thread path does not traverse a loop backedge.
561
562 PR tree-optimization/69196
563 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
564 Do count some PHIs in the thread path against the insn count. Decrease
565 final statement count by one as the control statement in the last
566 block will get removed. Remove special cased code for handling PHIs
567 in the last block.
568
569 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
570
571 PR target/70027
572 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
573 asm dialect alternatives to explicit GOTPCREL calls.
574
575 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
576
577 PR ada/70017
578 * ira.c (do_reload): Issue warning for generic stack checking here...
579 * reload1.c (reload): ...instead of here and streamline it.
580
581 2016-03-01 Nick Clifton <nickc@redhat.com>
582
583 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
584
585 2016-03-01 Richard Biener <rguenther@suse.de>
586
587 PR tree-optimization/69983
588 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
589 types and fall back to operand_equal_p.
590
591 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
592
593 Revert
594 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
595
596 * config/s390/constraints.md ("jm8"): New constraint.
597 * config/s390/predicates.md ("const_int_8bitset_operand"): New
598 predicate.
599 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
600 into ...
601 ("*setmem_long<setmem_and>"): New pattern.
602 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
603 into ...
604 ("*setmem_long_31z<setmem_and>"): New pattern.
605 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
606 New substitution rules with the required attributes.
607
608
609 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
610
611 Revert
612 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
613
614 * gensupport.c (process_substs_on_one_elem): Split loop to
615 complete mark_operands_used_in_match_dup on all expressions in the
616 vector first.
617 (adjust_operands_numbers): Inline into process_substs_on_one_elem
618 and remove function.
619
620 2016-03-01 Richard Biener <rguenther@suse.de>
621
622 PR middle-end/70022
623 * fold-const.c (fold_indirect_ref_1): Fix range checking for
624 vector BIT_FIELD_REF extract.
625
626 2016-03-01 Richard Biener <rguenther@suse.de>
627
628 PR tree-optimization/69994
629 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
630
631 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
632
633 PR tree-optimization/69956
634 * tree-vect-stmts.c (supportable_widening_operation): Support
635 multi-step conversion of boolean vectors.
636 (supportable_narrowing_operation): Likewise.
637
638 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
639
640 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
641 anymore.
642
643 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
644
645 * config/s390/subst.md (DSI_VI): New mode iterator.
646 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
647 * config/s390/vector.md ("vec_set<mode>"): Move expander before
648 the insn definition.
649 ("*vec_set<mode>"): Change predicate and add alternative to
650 support only either register or const_int operands as element
651 selector.
652 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
653 operands.
654 ("vec_extract<mode>"): New expander.
655 ("*vec_extract<mode>"): New insn definition supporting reg and
656 const_int element selectors.
657 ("*vec_extract<mode>_plus"): New insn definition supporting
658 reg+const_int element selectors.
659 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
660 following expander+insn definition.
661 ("<vec_shifts_name><mode>3"): New expander.
662 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
663
664 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
665
666 * config/s390/s390.md ("*tabort_1"): Change predicate to
667 nonmemory_operand. Add a second alternative to cover
668 register as well as const int operands.
669 ("*tabort_1_plus"): New pattern definition.
670
671 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
672
673 * config/s390/s390.md ("*ashrdi3_cc_31")
674 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
675 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
676 Merge insn definitions into ...
677 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
678 New pattern definition.
679 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
680 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
681 ("*ashr<mode>3_and"): Merge insn definitions into ...
682 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
683 New pattern definition.
684 * config/s390/subst.md ("addr_style_op_cc_subst")
685 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
686 substitutions patterns plus attributes.
687 Add ashiftrt to SUBST iterator.
688
689 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
690
691 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
692 op2 to nonmemory_operand.
693 ("*<shift>di3_31", "*<shift>di3_31_and"):
694 Merge into single pattern definition ...
695 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
696 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
697 pattern definition ...
698 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
699 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
700 iterator.
701
702 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
703
704 * config/s390/predicates.md (const_int_6bitset_operand): New
705 predicate.
706 * config/s390/s390.md: Include subst.md.
707 ("rotl<mode>3"): New expander.
708 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
709 ...
710 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
711 * config/s390/subst.md: New file.
712
713 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
714
715 * config/s390/s390.md ("op_type", "atype", "length" attributes):
716 Remove RRR type. It doesn't really exist.
717 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
718 attributes.
719 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
720 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
721 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
722 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
723 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
724 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
725 `enabled' attribute.
726
727 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
728
729 * gensupport.c (process_substs_on_one_elem): Split loop to
730 complete mark_operands_used_in_match_dup on all expressions in the
731 vector first.
732 (adjust_operands_numbers): Inline into process_substs_on_one_elem
733 and remove function.
734
735 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
736
737 PR target/69706
738 * config/sparc/sparc.c (NWORDS_UP): Rename to...
739 (CEIL_NWORDS): ...this. Use CEIL macro.
740 (compute_fp_layout): Adjust to above renaming.
741 (function_arg_union_value): Likewise.
742 (sparc_arg_partial_bytes): Likewise.
743 (sparc_function_arg_advance): Likewise.
744
745 2016-02-29 Jeff Law <law@redhat.com>
746
747 PR tree-optimization/70005
748 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
749 where an object with a boolean range is compared against a value
750 outside [0..1].
751
752 PR tree-optimization/69999
753 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
754 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
755 loop cleanups.
756
757 2016-02-29 Richard Biener <rguenther@suse.de>
758
759 PR tree-optimization/69994
760 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
761 (get_unary_op): Look through nop conversions.
762 (ops_equal_values_p): New function, look for equality diregarding
763 nop conversions.
764 (eliminate_plus_minus_pair): Use ops_equal_values_p
765 (repropagate_negates): Do not use get_unary_op here.
766
767 2016-02-29 Martin Liska <mliska@suse.cz>
768
769 * system.h: Poison ENABLE_CHECKING macro.
770
771 2016-02-29 Martin Liska <mliska@suse.cz>
772
773 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
774 is presented in dump flags.
775 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
776 (hsa_regalloc): Likewise.
777
778 2016-02-19 Richard Biener <rguenther@suse.de>
779
780 PR tree-optimization/69980
781 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
782 permutation of those we need to keep.
783
784 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
785
786 PR target/69706
787 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
788 (NWORDS_UP): ...this
789 (init_cumulative_args): Minor tweaks.
790 (sparc_promote_function_mode): Likewise.
791 (scan_record_type): Delete.
792 (traverse_record_type): New function template.
793 (classify_data_t): New structure type.
794 (classify_registers): New inline function.
795 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
796 exhausted. Instantiate traverse_record_type on classify_registers and
797 deal with the case of a structure passed in slot #15 with no FP field
798 in the first word.
799 (assign_data_t): New structure type.
800 (compute_int_layout): New static function.
801 (compute_fp_layout): Likewise.
802 (count_registers): New inline function.
803 (assign_int_registers): New static function.
804 (assign_fp_registers): Likewise.
805 (assign_registers): New inline function.
806 (function_arg_record_value_1): Delete.
807 (function_arg_record_value_2): Likewise.
808 (function_arg_record_value_3): Likewise.
809 (function_arg_record_value): Adjust to above changes. Instantiate
810 traverse_record_type on count_registers to first count the number of
811 registers to be used and then on assign_registers to assign them.
812 (function_arg_union_value): Adjust to above renaming.
813 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
814 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
815 case of a structure passed in slot #15
816 (sparc_function_arg_advance): Likewise.
817 (function_arg_padding): Minor tweak.
818
819 2016-02-29 Richard Biener <rguenther@suse.de>
820
821 PR tree-optimization/69720
822 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
823 the adjustment_def path for possibly vectorized defs.
824 (vect_create_epilog_for_reduction): Handle vectorized initial
825 defs properly.
826
827 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
828
829 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
830
831 2016-02-27 Jeff Law <law@redhat.com>
832
833 Revert
834 2016-02-26 Richard Biener <rguenther@suse.de>
835 Jeff Law <law@redhat.com>
836
837 PR tree-optimization/69740
838 * cfghooks.c (remove_edge): Request loop fixups if we delete
839 an edge that might turn an irreducible loop into a natural
840 loop.
841
842 2016-02-27 Jakub Jelinek <jakub@redhat.com>
843
844 PR rtl-optimization/69896
845 * tree-vect-generic.c (get_compute_type): Avoid single element
846 vector types.
847
848 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
849
850 Rename the AArch64 tuning option and related functions to enable the
851 Newton series for the reciprocal square root to reflect its
852 approximative characteristic.
853
854 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
855 function to "aarch64_emit_approx_rsqrt".
856 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
857 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
858 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
859 (xgene1_tunings): Likewise.
860 (use_rsqrt_p): Likewise.
861 (aarch64_emit_swrsqrt): Use new function name.
862 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
863 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
864 text explaining this option.
865 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
866
867 2016-02-26 Jakub Jelinek <jakub@redhat.com>
868
869 PR target/69969
870 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
871 complain about -mallow-movmisalign without -mvsx if
872 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
873
874 2016-02-26 Joel Sherrill <joel@rtems.org>
875
876 * config.gcc: Add x86_64-*-rtems*.
877 * gcc/config/i386/rtems-64.h: New file.
878
879 2016-02-26 Joel Sherrill <joel@rtems.org>
880
881 * config.gcc: Add aarch64-*-rtems*.
882 * gcc/config/aarch64/rtems.h: New file.
883
884 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
885
886 PR target/69946
887 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
888 shift amount using %h. Add comment.
889
890 2016-02-26 Richard Biener <rguenther@suse.de>
891 Jeff Law <law@redhat.com>
892
893 PR tree-optimization/69740
894 * cfghooks.c (remove_edge): Request loop fixups if we delete
895 an edge that might turn an irreducible loop into a natural
896 loop.
897
898 2016-02-26 Martin Jambor <mjambor@suse.cz>
899
900 PR middle-end/69920
901 * tree-sra.c (sra_modify_assign): Do not remove loads of
902 uninitialized aggregates to SSA_NAMEs.
903
904 2016-02-26 Richard Henderson <rth@redhat.com>
905
906 PR target/69709
907 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
908 pseudo in case the target rtx matches the source of the left
909 shift.
910
911 2016-02-26 Martin Jambor <mjambor@suse.cz>
912
913 PR hsa/69568
914 * hsa.h (hsa_type_packed_p): Declare.
915 * hsa.c (hsa_type_packed_p): New function.
916 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
917 loads.
918 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
919 * hsa-brig.c (emit_basic_insn): Likewise.
920
921 2016-02-26 Martin Jambor <mjambor@suse.cz>
922
923 pr hsa/69674
924 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
925 pointers.
926 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
927
928 2016-02-26 Martin Jambor <mjambor@suse.cz>
929
930 * hsa.h (is_a_helper): New overload for hsa_op_immed for
931 hsa_op_with_type operands.
932 (hsa_unsigned_type_for_type): Declare.
933 * hsa.c (hsa_unsigned_type_for_type): New function.
934 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
935 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
936 the finalizer. Do not emit extra move.
937
938 2016-02-26 Martin Jambor <mjambor@suse.cz>
939
940 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
941 atomic operations in private segment.
942
943 2016-02-26 Martin Jambor <mjambor@suse.cz>
944
945 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
946 statements to wi->info. Also disallow omp simd constructs.
947 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
948 for not gridifying. Dump special string for omp_for.
949
950 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
951
952 PR target/69245
953 * config/aarch64/aarch64.c (aarch64_set_current_function):
954 Save/restore target globals when switching to
955 target_option_default_node.
956
957 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
958
959 PR target/69613
960 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
961 Return 0 if !SHIFT_COUNT_TRUNCATED.
962
963 2016-02-26 Jakub Jelinek <jakub@redhat.com>
964 Eric Botcazou <ebotcazou@adacore.com>
965
966 PR rtl-optimization/69891
967 * dse.c (scan_insn): If we can't figure out memset arguments
968 or they are non-constant, call clear_rhs_from_active_local_stores.
969
970 2016-02-26 Martin Liska <mliska@suse.cz>
971
972 * doc/extend.texi: Mention clog10, clog10f an clog10l
973 in Builtins section.
974
975 2016-02-26 Martin Liska <mliska@suse.cz>
976
977 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
978 CHECKING_P.
979 (resolve_args_picking_1): Likewise.
980 * dwarf2out.h (struct GTY): Likewise.
981
982 2016-02-26 Martin Liska <mliska@suse.cz>
983
984 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
985 with flag_checking.
986 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
987
988 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
989 Martin Liska <mliska@suse.cz>
990
991 * doc/install.texi: Mention --enable-valgrind-annotations.
992
993 2016-02-26 Richard Biener <rguenther@suse.de>
994
995 PR tree-optimization/69551
996 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
997 looking through aliases adjust DECL_PT_UID to refer to the
998 ultimate alias target.
999
1000 2016-02-25 Martin Liska <mliska@suse.cz>
1001
1002 PR middle-end/69919
1003 * alloc-pool.c (after_memory_report): New variable.
1004 * alloc-pool.h (base_pool_allocator ::release): Do not use
1005 the infrastructure if after_memory_report.
1006 * toplev.c (toplev::main): Mark after memory report.
1007
1008 2016-02-25 Richard Biener <rguenther@suse.de>
1009
1010 PR tree-optimization/48795
1011 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
1012
1013 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
1014
1015 PR driver/68463
1016 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
1017 offloading is enabled and -fopenacc or -fopenmp is specified.
1018 (CRTOFFLOADEND): Likewise.
1019 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
1020 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
1021 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
1022 (offload_objects_file_name): New static var.
1023 (tool_cleanup): Remove offload_objects_file_name file.
1024 (find_offloadbeginend): Replace with ...
1025 (find_crtoffloadtable): ... this.
1026 (run_gcc): Remove offload_argc and offload_argv.
1027 Get offload_objects_file_name from -foffload-objects=... option.
1028 Read names of object files with offload from this file, pass them to
1029 compile_images_for_offload_targets. Don't call find_offloadbeginend and
1030 don't pass offloadbegin and offloadend to the linker. Don't pass
1031 offload non-LTO files to the linker, because now they're not claimed.
1032
1033 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
1034
1035 PR ipa/69630
1036 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1037 on builtin_unreachable.
1038
1039 2016-02-25 Jakub Jelinek <jakub@redhat.com>
1040
1041 PR rtl-optimization/69896
1042 * regcprop.c: Include cfgrtl.h.
1043 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
1044 than remembered mode, either delete it (if noop_move_p), or
1045 treat like copy_p but not noop_p instruction.
1046
1047 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR debug/69705
1050 * dwarf2out.c (gen_variable_die): Work around buggy LTO
1051 - allow NULL decl for Fortran DW_TAG_common_block variables.
1052
1053 2016-02-24 Jason Merrill <jason@redhat.com>
1054
1055 * common.opt (flifetime-dse): Add -flifetime-dse=1.
1056
1057 2016-02-24 Richard Biener <rguenther@suse.de>
1058 Jakub Jelinek <jakub@redhat.com>
1059
1060 PR middle-end/69760
1061 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
1062 conditionally executed ops to well-defined overflow behavior.
1063
1064 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1065
1066 PR middle-end/69915
1067 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
1068 elements.
1069
1070 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1071
1072 PR rtl-optimization/69886
1073 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
1074 argument. Use it when checking validity of set instructions.
1075 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
1076 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
1077 callsite.
1078 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
1079 * store-motion.c (find_moveable_store): Update
1080 can_assign_to_reg_without_clobbers_p callsite.
1081
1082 2016-02-24 Richard Biener <rguenther@suse.de>
1083
1084 PR middle-end/68963
1085 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
1086 bogus check.
1087 (record_nonwrapping_iv): Do not fall back to the low/high bound
1088 for non-constant IV bases if the stmt is not always executed.
1089
1090 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1091
1092 * config/arm/arm-cores.def (cortex-a32): New entry.
1093 * config/arm/arm-tables.opt: Regenerate.
1094 * config/arm/arm-tune.md: Regenerate.
1095 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
1096 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
1097 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
1098 for -mcpu and -mtune.
1099
1100 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1101
1102 PR target/69875
1103 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
1104 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
1105 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
1106 (atomic_loaddi_1): Delete.
1107 (atomic_loaddi): Rewrite expander using the above changes.
1108
1109 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1110
1111 PR c/69918
1112 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
1113 2 to 3.
1114
1115 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1116 Richard Biener <rguenth@suse.de>
1117
1118 PR middle-end/69909
1119 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
1120 set_mem_attributes if tem is SSA_NAME which got expanded
1121 as a MEM.
1122
1123 2016-02-24 Richard Biener <rguenther@suse.de>
1124
1125 PR tree-optimization/69907
1126 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
1127 end of permutations for BB vectorization.
1128
1129 2016-02-24 Christian Bruel <christian.bruel@st.com>
1130
1131 * config/arm/arm-c.c (arm_option_override): Initialize
1132 target_option_current_node.
1133 * config/arm/arm.c (arm_pragma_target_parse): Replace
1134 build_target_option_node call by target_option_current_node.
1135 Set target_option_current_node.
1136 Fix comments.
1137
1138 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
1139
1140 PR target/69810
1141 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
1142 define_insn_and_split to define_insn.
1143 (zero_extendqi<mode>2_dot2): Same.
1144 (extendqi<mode>2_dot): Same.
1145 (extendqi<mode>2_dot2): Same.
1146
1147 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
1148
1149 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
1150 and add bypass for AES{D,E} and AESMC pairs.
1151 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
1152 and AESMC pairs.
1153
1154 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
1155
1156 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
1157 series for reciprocal square root in Exynos M1.
1158
1159 2016-02-23 Martin Sebor <msebor@redhat.com>
1160
1161 PR c/69759
1162 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
1163 __builtin_alloca_with_align.
1164
1165 2016-02-23 Richard Henderson <rth@redhat.com>
1166
1167 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
1168 (ix86_register_pragmas): Remove __seg_tls.
1169 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
1170 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
1171 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
1172 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
1173 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
1174 * doc/extend.texi (__seg_tls): Remove item.
1175
1176 2016-02-23 Richard Biener <rguenther@suse.de>
1177
1178 * alloc-pool.h (struct allocation_object): Make id member
1179 conditional on CHECKING_P again.
1180 (get_instance): Adjust.
1181 (base_pool_allocator): Likewise.
1182
1183 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
1184
1185 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
1186 (parallelize_loops): In OpenACC kernels mode, set n_threads to
1187 zero.
1188 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
1189 flag_openacc.
1190 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1191
1192 2016-02-23 Richard Biener <rguenther@suse.de>
1193
1194 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
1195 * bitmap.h (struct bitmap_usage): Likewise.
1196 (bitmap_move): Declare.
1197 * bitmap.c (register_overhead): Take size_t argument.
1198 (bitmap_move): New function.
1199 * df-problems.c (df_rd_transfer_function): Use bitmap_move
1200 to properly account overhead.
1201 * tree.c (free_node): Use tree_size.
1202
1203 2016-02-23 Jakub Jelinek <jakub@redhat.com>
1204
1205 PR c++/69902
1206 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
1207 when inverting comparison.
1208
1209 PR c/69900
1210 * common.opt (Wunreachable-code): Add Warning flag.
1211
1212 2016-02-23 Mark Wielaard <mjw@redhat.com>
1213 Jakub Jelinek <jakub@redhat.com>
1214
1215 PR c/69911
1216 * cgraphunit.c (check_global_declaration): Check main_input_filename
1217 and DECL_SOURCE_FILE are not NULL.
1218
1219 2016-02-23 Martin Jambor <mjambor@suse.cz>
1220
1221 PR tree-optimization/69666
1222 * tree-sra.c (sra_modify_assign): Do not attempt to create
1223 default_def replacements for unscalarizable regions.
1224
1225 2016-02-20 Mark Wielaard <mjw@redhat.com>
1226
1227 PR c/28901
1228 * cgraphunit.c (check_global_declaration): Check level of
1229 warn_unused_const_variable and main_input_filename.
1230 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
1231 (-Wunused-variable): For C implies -Wunused-const-variable=1.
1232 (-Wunused-const-variable): Explain levels 1 and 2.
1233
1234 2016-02-22 Jakub Jelinek <jakub@redhat.com>
1235
1236 PR target/69888
1237 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
1238 identical arguments. Formatting and spelling fixes.
1239
1240 PR target/69885
1241 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
1242 be specified.
1243
1244 PR target/69894
1245 PR target/69895
1246 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
1247 and m68k-devices.def.
1248 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
1249 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
1250
1251 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
1252
1253 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
1254 and HImode registers.
1255
1256 2016-02-22 Richard Biener <rguenther@suse.de>
1257
1258 PR tree-optimization/69882
1259 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
1260 preserve permutations present because of gaps.
1261 (vect_supported_load_permutation_p): Always continue checking
1262 permutations after vect_attempt_slp_rearrange_stmts.
1263
1264 2016-02-22 Bin Cheng <bin.cheng@arm.com>
1265
1266 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
1267 min_profitable_estimate, rather than min_profitable_iters.
1268
1269 2016-02-22 Jakub Jelinek <jakub@redhat.com>
1270
1271 PR target/69885
1272 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
1273 SImode for last match_operand.
1274
1275 2016-02-22 Martin Liska <mliska@suse.cz>
1276
1277 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
1278 return bitsize - 1 as the return value.
1279
1280 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
1281
1282 PR target/69806
1283 PR target/54089
1284 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
1285 Handle negative shift counts.
1286 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
1287 force_reg on the shift constant.
1288 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
1289 (lshrsi3_d): Handle negative shift counts.
1290
1291 2016-02-22 Richard Biener <rguenther@suse.de>
1292 Tom de Vries <tom@codesourcery.com>
1293
1294 * graph.c: Include dumpfile.h.
1295 (print_graph_cfg): Split into three overloads.
1296 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
1297
1298 2016-02-22 Tom de Vries <tom@codesourcery.com>
1299
1300 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
1301 dump-fn.
1302
1303 2016-02-22 Richard Biener <rguenther@suse.de>
1304
1305 PR ipa/37448
1306 * ipa-inline-transform.c (inline_call): When not updating
1307 overall summaries adjust self size by the growth estimate.
1308 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
1309 hash-set, do not update overall summaries here. Renamed from ...
1310 (inline_to_all_callers): ... this which is now wrapping the
1311 above and performing delayed overall summary update.
1312 (early_inline_small_functions): Delay updating of the overall
1313 summary.
1314
1315 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
1316
1317 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
1318 variable.
1319
1320 2016-02-19 Jakub Jelinek <jakub@redhat.com>
1321
1322 PR driver/69805
1323 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
1324 :%* in %:gt() argument.
1325 (greater_than_spec_func): Adjust for expecting only numbers,
1326 if there are more than two numbers, compare the last two.
1327
1328 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
1329
1330 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
1331 -Wnarrowing with -std.
1332
1333 2016-02-19 Jakub Jelinek <jakub@redhat.com>
1334
1335 PR c++/69851
1336 * expr.c (store_field): Don't use bit-field path if exp is
1337 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
1338 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
1339 and the assignment can be performed by bitwise copy. Formatting
1340 fix.
1341
1342 PR middle-end/69838
1343 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
1344 call copy_reg_eh_region_note_forward on before and/or after sequences
1345 and remove note from insn if it no longer can throw.
1346
1347 PR target/69820
1348 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
1349 if TARGET_AVX512BW.
1350
1351 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1352
1353 * config/s390/vector.md: Add missing commutative operand markers
1354 to the patterns which qualify for one.
1355 * config/s390/vx-builtins.md: Likewise.
1356
1357 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1358
1359 * config/s390/vector.md (VI, VI_QHS): Add single element vector
1360 types to mode iterators.
1361 (vec_double): ... and mode attribute.
1362 * config/s390/vx-builtins.md (non_vec_int): Likewise.
1363
1364 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1365
1366 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
1367 Change the predicate of op2 from nonimmediate to general and let
1368 reload fix it if necessary.
1369
1370 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1371
1372 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
1373
1374 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1375
1376 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
1377 mode.
1378
1379 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1380
1381 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
1382 * config/s390/s390.c (s390_expand_vec_movstr): New function.
1383 * config/s390/s390.md ("movstr<P:mode>"): Call
1384 s390_expand_vec_movstr.
1385
1386 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1387
1388 * config/s390/s390.md: Add missing output modifier for operand 1
1389 to print it as address properly.
1390
1391 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1392
1393 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
1394 * config/s390/2964.md: New file.
1395 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
1396 of insn grouping attributes depending on the CPU level.
1397 (s390_get_unit_mask): New function.
1398 (s390_sched_score): Remove the OOO from the scheduling macros.
1399 Add loop to calculate a score for the instruction mix.
1400 (s390_sched_reorder): Likewise plus improve debug output.
1401 (s390_sched_variable_issue): Rename macros as above. Calculate
1402 the unit distances after actually scheduling an insn. Improve
1403 debug output.
1404 (s390_sched_init): Clear last_scheduled_unit_distance array.
1405 * config/s390/s390.md: Include 2964.md.
1406
1407 2016-02-18 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR target/69671
1410 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
1411 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
1412 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
1413 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
1414 *avx512f_<code>v8div16qi2_mask_1): New insns.
1415
1416 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1417
1418 PR target/68404
1419 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
1420 2016-02-09 change.
1421
1422 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
1423 earlyclobber from target. Use wF constraint for fused memory
1424 address.
1425 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1426
1427 2016-02-18 Jakub Jelinek <jakub@redhat.com>
1428 Martin Liska <mliska@suse.cz>
1429
1430 PR sanitizer/69863
1431 * cfgexpand.c (asan_sanitize_stack_p): New function.
1432 (partition_stack_vars): Use the function.
1433 (expand_stack_vars): Likewise.
1434 (defer_stack_allocation): Likewise.
1435 (expand_used_vars): Likewise.
1436
1437 2016-02-18 Richard Biener <rguenther@suse.de>
1438
1439 PR middle-end/69553
1440 * fold-const.c (operand_equal_p): Properly compare offsets for
1441 IMAGPART_EXPR and ARRAY_REF.
1442
1443 2016-02-18 Nick Clifton <nickc@redhat.com>
1444
1445 PR target/62254
1446 PR target/69610
1447 * config/arm/arm.c (arm_option_override_internal): Disable
1448 interworking if the target does not support thumb instructions.
1449 (arm_reload_in_hi): Handle the case where a register to register
1450 move needs reloading because there is no simple pattern to handle
1451 it.
1452 (arm_reload_out_hi): Likewise.
1453
1454 2016-02-18 Richard Biener <rguenther@suse.de>
1455
1456 PR middle-end/69854
1457 * match.pd: Don't use fold_binary or fold_unary for folding
1458 constants.
1459
1460 2016-02-17 Jakub Jelinek <jakub@redhat.com>
1461
1462 PR c++/69850
1463 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
1464 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
1465 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
1466 warn on gimple_no_warning_p statements.
1467
1468 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
1469
1470 * doc/extend.texi (C++ Attributes): Correct description of
1471 warn_unused type attribute.
1472
1473 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1474
1475 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
1476 correct instruction.
1477
1478 2016-02-17 Richard Biener <rguenther@suse.de>
1479
1480 PR rtl-optimization/69609
1481 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
1482 (find_traces_1_round): When ending a trace update cached priority
1483 of successors.
1484 (bb_to_key): Use cached priority when available.
1485 (copy_bb): Initialize cached priority.
1486 (reorder_basic_blocks_software_trace_cache): Likewise.
1487
1488 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1489
1490 PR target/69161
1491 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
1492 New predicate.
1493 (aarch64_comparison_operator): Break overly long line into two.
1494 (aarch64_comparison_operation): Likewise.
1495 * config/aarch64/aarch64.md (cstorecc4): Use
1496 aarch64_comparison_operator_mode instead of
1497 aarch64_comparison_operator.
1498 (cstore<mode>4): Likewise.
1499 (aarch64_cstore<mode>): Likewise.
1500 (*cstoresi_insn_uxtw): Likewise.
1501 (cstore<mode>_neg): Likewise.
1502 (*cstoresi_neg_uxtw): Likewise.
1503
1504 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1505
1506 PR target/69161
1507 * config/arm/predicates.md (arm_comparison_operator_mode):
1508 New predicate.
1509 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
1510 instead of arm_comparison_operator.
1511 (*mov_negscc): Likewise.
1512 (*mov_notscc): Likewise.
1513 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
1514 (*thumb2_mov_negscc): Likewise.
1515 (*thumb2_mov_negscc_strict_it): Likewise.
1516 (*thumb2_mov_notscc): Likewise.
1517 (*thumb2_mov_notscc_strict_it): Likewise.
1518
1519 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
1520
1521 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
1522 Add missing return.
1523
1524 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
1525
1526 * config/visium/visium.c (machine_libfunc_index): New enum.
1527 (machine_libfuncs): New structure.
1528 (visium_libfuncs): New static variable.
1529 (TARGET_INIT_LIBFUNCS): Define to...
1530 (visium_init_libfuncs): ...this. New function.
1531 (expand_block_move_4): Use the appropriate libfunc.
1532 (expand_block_move_2): Likewise.
1533 (expand_block_move_1): Likewise.
1534 (expand_block_set_4): Likewise.
1535 (expand_block_set_2): Likewise.
1536 (expand_block_set_1): Likewise.
1537 (visium_trampoline_init): Likewise.
1538
1539 2016-02-17 Nick Clifton <nickc@redhat.com>
1540
1541 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
1542 TI's devices.csv file as of March 2016.
1543
1544 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
1545
1546 PR Target/48344
1547 * opts-global.c (handle_common_deferred_options): Introduce and
1548 initialize two global variables to remember command-line options
1549 specifying a stack-limiting register.
1550 * opts.h: Add extern declarations of the two new global variables.
1551 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
1552 variable based on the values of the two new global variables.
1553
1554 2016-02-16 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR c/69835
1557 * common.opt (Wnonnull-compare): New warning.
1558 * doc/invoke.texi (-Wnonnull): Remove text about comparison
1559 of arguments against NULL.
1560 (-Wnonnull-compare): Document.
1561 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
1562 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
1563 * passes.def (pass_warn_nonnull_compare): Add.
1564 * gimple-ssa-nonnull-compare.c: New file.
1565
1566 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1567
1568 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
1569 AARCH64_EXTRA_TUNE_RECIP_SQRT.
1570
1571 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1572
1573 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
1574 reciprocal sqrt for -mlow-precision-recip-sqrt.
1575
1576 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1577 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1578
1579 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
1580 always use lane loads to construct non-constant vectors.
1581
1582 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1583
1584 * config/aarch64/aarch64.md
1585 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
1586 constraints for operand 3.
1587 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
1588
1589 2016-02-16 Jakub Jelinek <jakub@redhat.com>
1590 Richard Biener <rguenther@suse.de>
1591
1592 PR tree-optimization/69820
1593 * tree-vect-patterns.c (type_conversion_p): Return false if
1594 *orig_type is unsigned single precision or boolean.
1595 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
1596 Formatting fix.
1597
1598 2016-02-16 Jakub Jelinek <jakub@redhat.com>
1599
1600 PR rtl-optimization/69764
1601 PR rtl-optimization/69771
1602 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
1603 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
1604
1605 2016-02-16 Richard Biener <rguenther@suse.de>
1606
1607 PR tree-optimization/69776
1608 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
1609 sets from caller.
1610 (indirect_refs_may_alias_p): Likewise.
1611 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
1612 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
1613 according to tbaa_p.
1614 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
1615 (optimize_stmt): For redundant store discovery do not allow tbaa.
1616
1617 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
1618
1619 PR tree-optimization/69714
1620 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
1621 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
1622
1623 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
1624
1625 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
1626 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
1627 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
1628 * config/arc/arc.c (arc_init): Check FPU options.
1629 (get_arc_condition_code): Handle new CC_FPU* modes.
1630 (arc_select_cc_mode): Likewise.
1631 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
1632 register pair only. Allow access for ARCv2 accumulator.
1633 (gen_compare_reg): Whenever we have FPU support use FPU compare
1634 instructions.
1635 (arc_reorg): Don't generate brcc insns when FPU compare
1636 instructions are involved.
1637 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
1638 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
1639 floating point emulation.
1640 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
1641 (REVERSE_CONDITION): Add new CC_FPU* modes.
1642 (TARGET_FP_SP_BASE): Define.
1643 (TARGET_FP_DP_BASE): Likewise.
1644 (TARGET_FP_SP_FUSED): Likewise.
1645 (TARGET_FP_DP_FUSED): Likewise.
1646 (TARGET_FP_SP_CONV): Likewise.
1647 (TARGET_FP_DP_CONV): Likewise.
1648 (TARGET_FP_SP_SQRT): Likewise.
1649 (TARGET_FP_DP_SQRT): Likewise.
1650 (TARGET_FP_DP_AX): Likewise.
1651 * config/arc/arc.md (ARCV2_ACC): New constant.
1652 (type): New fpu type attribute.
1653 (SDF): Conditional iterator.
1654 (cstore<mode>, cbranch<mode>): Change expand condition.
1655 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
1656 handles FPU/FPX cases as well.
1657 * config/arc/arc.opt (mfpu): New option.
1658 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
1659 Renamed.
1660 (adddf3, muldf3, subdf3): Removed.
1661 * config/arc/predicates.md (proper_comparison_operator): Recognize
1662 CC_FPU* modes.
1663 * config/arc/fpu.md: New file.
1664 * doc/invoke.texi (ARC Options): Document mfpu option.
1665
1666 2016-02-16 Richard Biener <rguenther@suse.de>
1667
1668 PR rtl-optimization/69291
1669 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
1670 noce_operand_ok check.
1671
1672 2016-02-16 Tom de Vries <tom@codesourcery.com>
1673
1674 PR lto/67709
1675 * omp-low.c (simd_clone_create): Remove call to
1676 symtab->call_cgraph_insertion_hooks.
1677
1678 2016-02-16 Jakub Jelinek <jakub@redhat.com>
1679
1680 PR tree-optimization/69802
1681 * tree-ssa-reassoc.c (update_range_test): If op is
1682 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
1683 op == 1 test of precision 1 integral op, otherwise handle
1684 that case as op itself. Fix up formatting.
1685 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
1686 up formatting.
1687
1688 2016-02-16 Richard Biener <rguenther@suse.de>
1689
1690 PR tree-optimization/69586
1691 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
1692 types for conversion sources.
1693
1694 2016-02-16 Richard Biener <rguenther@suse.de>
1695
1696 PR middle-end/69801
1697 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
1698 mask OEP_ADDRESS_OF.
1699
1700 2016-02-16 Alan Modra <amodra@gmail.com>
1701
1702 PR target/68973
1703 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
1704 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
1705 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
1706 (p8_mtvsrwz): New.
1707 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
1708 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
1709 (p8_fmrgow_<mode>): Likewise.
1710 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
1711 changes.
1712 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
1713 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
1714 to use movdi_internal64. Remove op0_di.
1715 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
1716
1717 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
1718
1719 Add support for the FCCMP insn types
1720
1721 * config/aarch64/aarch64.md (fccmp): Change insn type.
1722 (fccmpe): Likewise.
1723 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
1724 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
1725 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
1726 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
1727 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
1728 * config/arm/types.md (fccmps): Add new insn type.
1729 (fccmpd): Likewise.
1730
1731 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1732
1733 * alias.c (get_alias_set): Fix a typo in comment.
1734
1735 2016-02-15 Richard Biener <rguenther@suse.de>
1736
1737 PR tree-optimization/69595
1738 * match.pd: Complete range test simplification to true.
1739
1740 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
1741
1742 PR rtl-optimization/69648
1743 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
1744 pic_offset_table_rtx.
1745
1746 PR rtl-optimization/69752
1747 * ira.c (update_equiv_regs): When looking for more than a single SET,
1748 also take other side effects into account.
1749
1750 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
1751
1752 * config/s390/s390.c (s390_function_profiler): Add a new sequence
1753 for z900+ CPUs in 31-bit mode.
1754
1755 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
1756
1757 * common/config/s390/s390-common.c (s390_supports_split_stack):
1758 New function.
1759 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
1760 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
1761 * config/s390/s390.c (struct machine_function): New field
1762 split_stack_varargs_pointer.
1763 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
1764 in s390_emit_prologue.
1765 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
1766 vararg pointer.
1767 (morestack_ref): New global.
1768 (SPLIT_STACK_AVAILABLE): New macro.
1769 (s390_expand_split_stack_prologue): New function.
1770 (s390_live_on_entry): New function.
1771 (s390_va_start): Use split-stack vararg pointer if appropriate.
1772 (s390_asm_file_end): Emit the split-stack note sections.
1773 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
1774 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
1775 (UNSPECV_SPLIT_STACK_CALL): New unspec.
1776 (UNSPECV_SPLIT_STACK_DATA): New unspec.
1777 (split_stack_prologue): New expand.
1778 (split_stack_space_check): New expand.
1779 (split_stack_data): New insn.
1780 (split_stack_call): New expand.
1781 (split_stack_call_*): New insn.
1782 (split_stack_cond_call): New expand.
1783 (split_stack_cond_call_*): New insn.
1784
1785 2016-02-15 Richard Biener <rguenther@suse.de>
1786
1787 PR tree-optimization/69783
1788 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1789 Add trivially correct cases.
1790
1791 2016-02-15 Tom de Vries <tom@codesourcery.com>
1792
1793 PR lto/69655
1794 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
1795 do_force_output.
1796 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
1797
1798 2016-02-15 Richard Biener <rguenther@suse.de>
1799
1800 PR tree-optimization/69776
1801 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1802 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
1803 indicate whether we can use TBAA to disambiguate against stores.
1804 Use alias-set zero if not.
1805 (visit_reference_op_store): Do not use TBAA when looking up
1806 redundant stores.
1807 * tree-ssa-pre.c (compute_avail): Use TBAA here.
1808 (eliminate_dom_walker::before_dom_children): But not when looking
1809 up redundant stores.
1810
1811 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
1812
1813 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
1814
1815 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1816
1817 * config/i386/znver1.md
1818 (znver1_pop, znver1_pop_mem,
1819 znver1_load_imov_double_store,
1820 znver1_load_imov_direct_store,
1821 znver1_load_imov_direct_load,
1822 znver1_load_imov_double_load): Add new.
1823 (znver1_insn, znver1_insn_load): Add icmov type.
1824 (znver1_sseavx_fma,
1825 znver1_sseavx_fma_load,
1826 znver1_avx256_fma,
1827 znver1_avx256_fma_load): Fix pipe usage.
1828
1829 2016-02-14 Alan Modra <amodra@gmail.com>
1830
1831 PR target/68973
1832 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
1833 with an invalid hard reg, reload just the reg not the entire
1834 pre/post-inc/dec address expression.
1835
1836 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
1837
1838 PR target/67260
1839 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
1840 fixed R1_REG scratch reg.
1841 (sibcall_value_pcrel_fdpic): Likewise.
1842
1843 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
1844
1845 PR target/67636
1846 PR target/64345
1847 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
1848
1849 2016-02-12 Walter Lee <walt@tilera.com>
1850
1851 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
1852 * config/tilegx/t-tilegx: Likewise.
1853
1854 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1855
1856 PR other/69554
1857 * diagnostic-show-locus.c (struct line_span): New struct.
1858 (layout::get_first_line): Delete.
1859 (layout::get_last_line): Delete.
1860 (layout::get_num_line_spans): New member function.
1861 (layout::get_line_span): Likewise.
1862 (layout::print_heading_for_line_span_index_p): Likewise.
1863 (layout::get_expanded_location): Likewise.
1864 (layout::calculate_line_spans): Likewise.
1865 (layout::m_first_line): Delete.
1866 (layout::m_last_line): Delete.
1867 (layout::m_line_spans): New field.
1868 (layout::layout): Update comment. Replace m_first_line and
1869 m_last_line with m_line_spans, replacing their initialization
1870 with a call to calculate_line_spans.
1871 (diagnostic_show_locus): When printing source lines and
1872 annotations, rather than looping over a single span
1873 of lines, instead loop over each line_span within
1874 the layout, with an inner loop over the lines within them.
1875 Call the context's start_span callback when changing line spans.
1876 * diagnostic.c (diagnostic_initialize): Initialize start_span.
1877 (diagnostic_build_prefix): Break out the building of the location
1878 part of the string into...
1879 (diagnostic_get_location_text): ...this new function, rewriting
1880 it from nested ternary expressions to a sequence of "if"
1881 statements.
1882 (default_diagnostic_start_span_fn): New function.
1883 * diagnostic.h (diagnostic_start_span_fn): New typedef.
1884 (diagnostic_context::start_span): New field.
1885 (default_diagnostic_start_span_fn): New prototype.
1886
1887 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1888
1889 PR driver/69779
1890 * gcc.c (driver::finalize): Fix cleanup of "specs".
1891
1892 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1893
1894 PR driver/69265
1895 PR driver/69453
1896 * gcc.c (driver::driver): Initialize m_option_suggestions.
1897 (driver::~driver): Clean up m_option_suggestions.
1898 (suggest_option): Convert to...
1899 (driver::suggest_option): ...this, and split out into
1900 driver::build_option_suggestions and find_closest_string.
1901 (driver::build_option_suggestions): New function, from
1902 first half of suggest_option. Special-case
1903 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
1904 the sanitizer_opts array. For options of enum types, add the
1905 various enum values to the candidate strings.
1906 (driver::handle_unrecognized_options): Remove "const".
1907 * gcc.h (driver::handle_unrecognized_options): Likewise.
1908 (driver::build_option_suggestions): New decl.
1909 (driver::suggest_option): New decl.
1910 (driver::m_option_suggestions): New field.
1911 * opts-common.c (add_misspelling_candidates): New function.
1912 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
1913 and make non-static.
1914 * opts.h (sanitizer_opts): New array decl.
1915 (add_misspelling_candidates): New function decl.
1916 * spellcheck.c (find_closest_string): New function.
1917 * spellcheck.h (find_closest_string): New function decl.
1918
1919 2016-02-12 Jakub Jelinek <jakub@redhat.com>
1920
1921 PR rtl-optimization/69764
1922 PR rtl-optimization/69771
1923 * optabs.c (expand_binop_directly): For shift_optab_p, force
1924 convert_modes with VOIDmode if xop1 has VOIDmode.
1925
1926 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1927
1928 PR target/69729
1929 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
1930 to correctly determine instrumentation thunks.
1931
1932 2016-02-12 Jakub Jelinek <jakub@redhat.com>
1933
1934 PR ipa/69241
1935 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
1936 type by reference, force lhs on the call.
1937
1938 PR ipa/68672
1939 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
1940 Compute retval and retbnd early in all cases if split_part_return_p
1941 and return_bb is not EXIT. Remove all clobber stmts and reset
1942 all debug stmts that refer to SSA_NAMEs defined in split part,
1943 except if it is retval, in that case replace the old retval with the
1944 lhs of the call to the split part.
1945
1946 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1947
1948 revert:
1949 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1950
1951 PR middle-end/66726
1952 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1953 whose result is used in PHI.
1954 (maybe_optimize_range_tests): Likewise.
1955 (final_range_test_p): Likweise.
1956
1957 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1958
1959 PR middle-end/66726
1960 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1961 whose result is used in PHI.
1962 (maybe_optimize_range_tests): Likewise.
1963 (final_range_test_p): Likweise.
1964
1965 2016-02-12 Jakub Jelinek <jakub@redhat.com>
1966
1967 * cgraph.c: Spelling fixes - behaviour -> behavior and
1968 neighbour -> neighbor.
1969 * target.def: Likewise.
1970 * sel-sched.c: Likewise.
1971 * config/mips/mips.c: Likewise.
1972 * config/arc/arc.md: Likewise.
1973 * config/arm/cortex-a57.md: Likewise.
1974 * config/arm/arm.c: Likewise.
1975 * config/arm/neon.md: Likewise.
1976 * config/arm/arm-c.c: Likewise.
1977 * config/vms/vms-c.c: Likewise.
1978 * config/s390/s390.c: Likewise.
1979 * config/i386/znver1.md: Likewise.
1980 * config/i386/i386.c: Likewise.
1981 * config/ia64/hpux-unix2003.h: Likewise.
1982 * config/msp430/msp430.md: Likewise.
1983 * config/rx/rx.c: Likewise.
1984 * config/rx/rx.md: Likewise.
1985 * config/aarch64/aarch64-simd.md: Likewise.
1986 * config/aarch64/aarch64.c: Likewise.
1987 * config/nvptx/nvptx.c: Likewise.
1988 * config/bfin/bfin.c: Likewise.
1989 * config/cris/cris.opt: Likewise.
1990 * config/rs6000/rs6000.c: Likewise.
1991 * target.h: Likewise.
1992 * spellcheck.c: Likewise.
1993 * ira-build.c: Likewise.
1994 * tree-inline.c: Likewise.
1995 * builtins.c: Likewise.
1996 * lra-constraints.c: Likewise.
1997 * explow.c: Likewise.
1998 * hwint.h: Likewise.
1999 * targhooks.c: Likewise.
2000 * tree-vect-data-refs.c: Likewise.
2001 * expr.c: Likewise.
2002 * doc/tm.texi: Likewise.
2003 * doc/extend.texi: Likewise.
2004 * doc/install.texi: Likewise.
2005 * doc/md.texi: Likewise.
2006 * tree-ssa-tail-merge.c: Likewise.
2007 * sched-int.h: Likewise.
2008 * match.pd: Likewise.
2009 * sched-ebb.c: Likewise.
2010 * target.def (omit_struct_return_reg): Likewise.
2011 * gimple-ssa-isolate-paths.c: Likewise.
2012 (find_implicit_erroneous_behaviour): Renamed to...
2013 (find_implicit_erroneous_behavior): ... this.
2014 (find_explicit_erroneous_behaviour): Renamed to...
2015 (find_explicit_erroneous_behavior): ... this.
2016 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
2017
2018 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
2019
2020 PR rtl-optimization/64682
2021 PR rtl-optimization/69567
2022 PR rtl-optimization/69737
2023 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
2024 in I2 as well, just lose it.
2025
2026 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2027
2028 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
2029 New variable.
2030 (aarch64_last_printed_tune_string): Likewise.
2031 (aarch64_declare_function_name): Only output .arch assembler
2032 directive if it will be different from the previously output
2033 directive. Same for .tune comment but only if -dA is set.
2034 (aarch64_start_file): New function.
2035 (TARGET_ASM_FILE_START): Define.
2036
2037 2016-02-11 David Malcolm <dmalcolm@redhat.com>
2038
2039 PR plugins/69758
2040 * Makefile.in (PLUGIN_HEADERS): Add params.list.
2041
2042 2016-02-11 Jakub Jelinek <jakub@redhat.com>
2043
2044 PR target/65313
2045 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
2046 -Wmaybe-uninitialized warning.
2047
2048 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
2049
2050 PR target/69713
2051 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
2052
2053 2016-02-11 Richard Biener <rguenther@suse.de>
2054
2055 PR rtl-optimization/69291
2056 * ifcvt.c (noce_try_store_flag_constants): Do not allow
2057 subexpressions affected by changing the result.
2058
2059 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
2060
2061 PR target/69148
2062 * lra-constraints.c (curr_insn_transform): Find in/out operands
2063 for secondary memory moves. Update dups.
2064
2065 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
2066
2067 PR tree-optimization/69652
2068 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
2069 to nested loop, did source re-formatting, skip debug statements,
2070 add check on statement with volatile operand, remove dead scalar
2071 statements.
2072
2073 2016-02-10 Jakub Jelinek <jakub@redhat.com>
2074 Patrick Palka <ppalka@gcc.gnu.org>
2075
2076 PR ipa/69241
2077 PR c++/69649
2078 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
2079 calls if the return type is TREE_ADDRESSABLE.
2080 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
2081 * ipa-split.c (split_function): Fix doubled "we" in comment.
2082 Use void return type for the split part even if
2083 !split_point->split_part_set_retval.
2084
2085 2016-02-10 Bin Cheng <bin.cheng@arm.com>
2086
2087 PR tree-optimization/68021
2088 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
2089 when computing the value of biv cand by itself.
2090
2091 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
2092
2093 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
2094 (cortexa57_tunings): Likewise.
2095 (cortexa72_tunings): Likewise.
2096 (arch_macro_fusion_pair_p): Add support for AES fusion.
2097 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
2098 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2099 Allow virtual registers before reload so early scheduling works.
2100 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
2101 correct latency and pipeline.
2102 (cortex_a57_crypto_complex): Likewise.
2103 (cortex_a57_crypto_xor): Likewise.
2104 (define_bypass): Add AES bypass.
2105
2106 2016-02-10 Richard Biener <rguenther@suse.de>
2107
2108 PR tree-optimization/69726
2109 * passes.def: Add DCE pass before late uninit.
2110 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
2111 really fixup if-conversions job.
2112
2113 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
2114
2115 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
2116 (arm_cortex_a57_tune): Likewise.
2117 (aarch_macro_fusion_pair_p): Add support for AES fusion.
2118 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
2119
2120 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
2121
2122 * timevar.def (TV_PHASE_DBGINFO): Delete.
2123 (TV_PHASE_CHECK_DBGINFO): Likewise.
2124 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
2125
2126 2016-02-10 Richard Biener <rguenther@suse.de>
2127
2128 PR tree-optimization/69719
2129 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2130 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
2131
2132 2016-02-09 Andrew Pinski <apinski@cavium.com>
2133
2134 PR tree-opt/69282
2135 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
2136 get_vcond_mask_icode returns false.
2137
2138 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2139
2140 PR target/68404
2141 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
2142 an ADDIS that adds a pointer to a large constant that sets the
2143 upper16 bits with a load operation.
2144
2145 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
2146
2147 PR target/68532
2148 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
2149 order.
2150 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
2151 endian.
2152 (vzipq_s16): Likewise.
2153 (vzipq_s32): Likewise.
2154 (vzipq_f32): Likewise.
2155 (vzipq_u8): Likewise.
2156 (vzipq_u16): Likewise.
2157 (vzipq_u32): Likewise.
2158 (vzipq_p8): Likewise.
2159 (vzipq_p16): Likewise.
2160
2161 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
2162
2163 PR target/68532
2164 * config/arm/arm.c (neon_endian_lane_map): New function.
2165 (neon_vector_pair_endian_lane_map): New function.
2166 (arm_evpc_neon_vuzp): Allow for big endian lane order.
2167 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
2168 endian.
2169 (vuzpq_s16): Likewise.
2170 (vuzpq_s32): Likewise.
2171 (vuzpq_f32): Likewise.
2172 (vuzpq_u8): Likewise.
2173 (vuzpq_u16): Likewise.
2174 (vuzpq_u32): Likewise.
2175 (vuzpq_p8): Likewise.
2176 (vuzpq_p16): Likewise.
2177
2178 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
2179
2180 PR target/69634
2181 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
2182 debug insns.
2183
2184 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
2185
2186 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
2187 truncate const_int operand 1 to QImode.
2188
2189 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
2190
2191 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
2192 corresponding to an abnormal edge.
2193
2194 2016-02-09 Tom de Vries <tom@codesourcery.com>
2195
2196 PR tree-optimization/69599
2197 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
2198 function.
2199 (find_func_aliases_for_builtin_call, find_func_clobbers)
2200 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
2201 partition.
2202
2203 2016-02-09 Richard Biener <rguenther@suse.de>
2204
2205 PR tree-optimization/69715
2206 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
2207 LHS on calls as non-rewritable.
2208
2209 2016-02-09 Tom de Vries <tom@codesourcery.com>
2210
2211 PR lto/69707
2212 * lto-wrapper.c (append_diag_options): New function.
2213 (compile_offload_image): Call append_diag_options.
2214
2215 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
2216
2217 PR other/69722
2218 * doc/extend.texi (Flag Output Operands): Correct sectioning.
2219 Minor copy-edit to fix verb tenses.
2220
2221 2016-02-08 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR tree-optimization/69209
2224 * ipa-split.c (split_function): If split part is not
2225 returning retval, retval has gimple type but is not
2226 gimple value, force it into a SSA_NAME first.
2227
2228 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
2229
2230 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
2231 outdated section.
2232
2233 2016-02-08 Jason Merrill <jason@redhat.com>
2234
2235 PR c++/69631
2236 * convert.c (convert_to_integer_1): Check dofold on truncation
2237 distribution.
2238 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
2239 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
2240 Rename from *_nofold.
2241 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
2242 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
2243
2244 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2245
2246 PR target/60410
2247 * tree.c (build_common_tree_nodes): Remove short_double argument.
2248 All callers changed.
2249 * tree.h (build_common_tree_nodes): Adjust declaration.
2250 * doc/invoke.texi (-fshort-double): Remove documentation.
2251 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2252 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
2253 * lto-wrapper.c (merge_and_complain, append_compiler_options)
2254 (append_linker_options): Don't handle OPT_fshort_double.
2255
2256 PR rtl-optimization/68730
2257 * lra-remat.c (insn_to_cand_activation): New static variable.
2258 (lra_remat): Allocate and free it.
2259 (create_cand): New arg activation. Initialize a field in
2260 insn_to_cand_activation if it is nonnull.
2261 (create_cands): Pass the activation insn to create_cand when making
2262 a candidate involving an output reload. Reorganize code a little.
2263 (do_remat): Keep track of active status of candidates in a separate
2264 bitmap.
2265
2266 2016-02-08 Richard Biener <rguenther@suse.de>
2267
2268 PR tree-optimization/69719
2269 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2270 Properly use absolute of the difference of the two offsets to
2271 compare or adjust the segment length.
2272
2273 2016-02-08 Richard Biener <rguenther@suse.de>
2274 Jeff Law <law@redhat.com>
2275
2276 PR target/68273
2277 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
2278 types for anonymous SSA names.
2279
2280 2016-02-08 Richard Biener <rguenther@suse.de>
2281
2282 PR rtl-optimization/69274
2283 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
2284
2285 2016-02-08 Jeff Law <law@redhat.com>
2286
2287 PR tree-optimization/65917
2288 * tree-ssa-dom.c (record_temporary_equivalences): Record both
2289 equivalences from if (x == y) style conditionals.
2290 (loop_depth_of_name): Remove.
2291 (record_equality): Remove loop depth check.
2292 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
2293 (const_and_copies::record_const_or_copy_raw): New member function.
2294 * tree-ssa-scopedtables.c
2295 (const_and_copies::record_const_or_copy_raw): New, factored out of
2296 (const_and_copies::record_const_or_copy): Call new member function.
2297
2298 2016-02-05 Jeff Law <law@redhat.com>
2299
2300 PR tree-optimization/68541
2301 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
2302 (count_stmts_in_block): New function.
2303 (poor_ifcvt_candidate_code): Likewise.
2304 (is_feasible_trace): Add some heuristics to determine when path
2305 splitting is profitable.
2306 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
2307 is a diamond with a single exit.
2308
2309 2016-02-05 Martin Sebor <msebor@redhat.com>
2310
2311 PR c++/69662
2312 * doc/invoke.texi: Update -Wplacement-new to take an optional
2313 argument.
2314
2315 2016-02-06 Richard Henderson <rth@redhat.com>
2316
2317 PR c/69643
2318 * tree.c (tree_nop_conversion_p): Do not strip casts into or
2319 out of non-standard address spaces.
2320
2321 2016-02-05 Jakub Jelinek <jakub@redhat.com>
2322
2323 PR rtl-optimization/69691
2324 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
2325
2326 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
2327
2328 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
2329 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
2330 (*ieee128_mfvsrd_64bit): Likewise.
2331 (*ieee128_mfvsrd_32bit): Likewise.
2332
2333 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2334
2335 PR target/69369
2336 Revert r232560:
2337 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2338
2339 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2340 instrumented_version.
2341
2342 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
2343
2344 * doc/invoke.texi (Optimize Options): In table of --param options
2345 rename second occurrence of tracer-min-branch-ratio to
2346 tracer-min-branch-probability, rename
2347 tracer-min-branch-ratio-feedback to
2348 tracer-min-branch-probability-feedback and clarify description,
2349 rename sched-spec-state-edge-prob-cutoff to
2350 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
2351 to selsched-insns-to-rename, rename lto-minpartition to
2352 lto-min-partition, delete reorder-blocks-duplicate and
2353 reorder-blocks-duplicate-feedback.
2354
2355 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2356
2357 * config/s390/s390.c (s390_register_info_set_ranges): Remove
2358 superfluous loops.
2359
2360 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
2361
2362 * doc/extend.texi: S/390: Correct some typos.
2363
2364 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2365
2366 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
2367
2368 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2369
2370 PR target/69625
2371 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
2372 (s390_register_info_gprtofpr): Use new macros above.
2373 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
2374 its name.
2375 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
2376 its name. Adjust restore and save gpr ranges.
2377 (s390_register_info_set_ranges): New function.
2378 (s390_register_info): Use new macros above. Call
2379 s390_register_info_set_ranges.
2380 (s390_optimize_register_info): Likewise.
2381 (s390_hard_regno_rename_ok): Use new macros.
2382 (s390_hard_regno_scratch_ok): Likewise.
2383 (s390_emit_epilogue): Likewise.
2384 (s390_can_use_return_insn): Likewise.
2385 (s390_optimize_prologue): Likewise.
2386 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
2387
2388 2016-02-05 Jakub Jelinek <jakub@redhat.com>
2389
2390 PR bootstrap/69677
2391 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
2392 alignment fixes.
2393 (ix86_option_override_internal): Disable TARGET_STV even for
2394 -m{incoming,preferred}-stack-boundary=3.
2395
2396 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2397
2398 * config.gcc: Mark deprecated rtems targets as obsolete.
2399
2400 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
2401
2402 PR rtl-optimization/64682
2403 PR rtl-optimization/69567
2404 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
2405 before I2 only if the register is both used and set in I2.
2406
2407 2016-02-04 DJ Delorie <dj@redhat.com>
2408
2409 * config/msp430/msp430.c (msp430_start_function): Add function type.
2410
2411 2016-02-04 Jakub Jelinek <jakub@redhat.com>
2412
2413 PR fortran/69368
2414 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
2415
2416 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
2417
2418 PR rtl-optimization/69577
2419 Revert:
2420 2015-10-29 Richard Henderson <rth@redhat.com>
2421
2422 PR target/68124
2423 PR rtl-opt/67609
2424 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2425 sse check to the exact conditions of PR 67609.
2426
2427 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
2428
2429 PR target/69667
2430 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
2431 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
2432 not allowed into the traditional Altivec registers.
2433 (movtd_64bit_nodm): Likewise.
2434 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2435
2436 2016-02-04 David Malcolm <dmalcolm@redhat.com>
2437
2438 * config/aarch64/cortex-a57-fma-steering.c
2439 (aarch64_register_fma_steering): Remove "static" from arguments
2440 to register_pass.
2441
2442 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
2443
2444 PR target/69619
2445 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
2446 twice when complex.
2447
2448 2016-02-04 Mike Frysinger <vapier@gentoo.org>
2449
2450 * doc/invoke.texi: Delete -mno-fma4.
2451
2452 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
2453
2454 PR rtl-optimization/69577
2455 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
2456 (find_subregs_of_mode): Update accordingly. Iterate over partial
2457 definitions.
2458
2459 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
2460
2461 * config/arm/arm-protos.h (neon_reinterpret): Remove.
2462 * config/arm/arm.c (neon_reinterpret): Remove.
2463 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
2464 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
2465 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
2466 vreinterpretti): Remove.
2467 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
2468 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2469 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
2470 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
2471 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
2472 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
2473 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
2474 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
2475 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
2476 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
2477 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
2478 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
2479 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
2480 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
2481 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
2482 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
2483 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
2484 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
2485 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
2486 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
2487 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
2488 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
2489 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
2490 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
2491 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
2492 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
2493 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
2494 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
2495 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
2496 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
2497 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
2498 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
2499 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
2500 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
2501 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
2502 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
2503 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
2504 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
2505 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
2506 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
2507 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
2508 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
2509 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
2510 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
2511 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
2512 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
2513 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
2514 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
2515 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
2516 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
2517 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
2518 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
2519 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
2520 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
2521 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
2522 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
2523 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
2524 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
2525 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
2526 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
2527 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
2528 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
2529 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
2530 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
2531 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
2532 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
2533 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
2534 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
2535 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
2536 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
2537 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
2538 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
2539 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
2540 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
2541 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
2542 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
2543 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
2544 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
2545 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
2546 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
2547 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
2548 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
2549 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
2550 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
2551 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
2552 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
2553 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
2554 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
2555 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
2556 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
2557 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
2558 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
2559 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
2560 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
2561 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
2562 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
2563 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
2564 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
2565 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
2566 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
2567 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
2568 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
2569 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
2570
2571 2016-02-04 Martin Liska <mliska@suse.cz>
2572
2573 PR sanitizer/69276
2574 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
2575 that are gimple_store_p.
2576 (maybe_instrument_call): Likewise.
2577
2578 2016-02-04 Bin Cheng <bin.cheng@arm.com>
2579
2580 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
2581 register scaling out of memory reference and comment why.
2582
2583 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2584
2585 PR target/65932
2586 PR target/67714
2587 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
2588 folding the source of a SET.
2589
2590 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2591
2592 PR target/65932
2593 PR target/67714
2594 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
2595 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
2596
2597 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
2598
2599 PR target/65932
2600 PR target/67714
2601 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
2602 HImode.
2603
2604 2016-02-04 Christian Bruel <christian.bruel@st.com>
2605
2606 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
2607 * config/arm/arm.c (arm_set_current_function): Likewise.
2608
2609 2016-02-04 Jakub Jelinek <jakub@redhat.com>
2610 Ilya Enkovich <enkovich.gnu@gmail.com>
2611 H.J. Lu <hongjiu.lu@intel.com>
2612
2613 PR target/69454
2614 * config/i386/i386.c (convert_scalars_to_vector): Remove
2615 stack alignment fixes.
2616 (ix86_option_override_internal): Disable TARGET_STV if stack
2617 might not be aligned enough.
2618 (ix86_minimum_alignment): Assert that TARGET_STV is false.
2619
2620 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
2621
2622 * gcc/config/i386/x86-tune.def: Disable default prefetching
2623 for -march=znver1.
2624
2625 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2626 Vladimir Makarov <vmakarov@redhat.com>
2627
2628 PR target/69461
2629 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
2630 in validating fused toc addresses.
2631
2632 2016-02-03 Jakub Jelinek <jakub@redhat.com>
2633
2634 PR c/69627
2635 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
2636 range->m_caret fields if range->m_show_caret_p is false.
2637
2638 PR target/69644
2639 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2640 Force oldval into register if it does not satisfy reg_or_short_operand
2641 predicate. Fix up formatting.
2642
2643 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
2644 Alexandre Oliva <aoliva@redhat.com>
2645
2646 PR target/69461
2647 * lra-constraints.c (simplify_operand_subreg): Check additionally
2648 address validity after potential reloading.
2649 (process_address_1): Check insns validity. In case of failure do
2650 nothing.
2651
2652 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
2653
2654 PR target/69118
2655 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
2656 Fix target.
2657
2658 2016-02-02 Jakub Jelinek <jakub@redhat.com>
2659
2660 * wide-int.cc (canonize_uhwi): New function.
2661 (wi::divmod_internal): Use it.
2662
2663 2016-02-02 James Norris <jnorris@codesourcery.com
2664
2665 * gimplify.c (omp_notice_variable): Add usage check.
2666
2667 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
2668
2669 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
2670 like LE, GE, LT, GT when emitting relational operator.
2671
2672 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
2673
2674 * ira-costs.c (find_costs_and_classes): Add extra argument.
2675 * target.def (ira_change_pseudo_allocno_class): Add parameter.
2676 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
2677 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
2678 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
2679 Add best_class parameter, and return it if not ALL_REGS.
2680 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
2681 Add parameter.
2682 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
2683 Update target hook.
2684
2685 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
2686
2687 * config/aarch64/aarch64.c
2688 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
2689 (aarch64_ira_change_pseudo_allocno_class): New function.
2690
2691 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
2692
2693 PR target/67032
2694 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
2695
2696 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2697
2698 * config/avr/avr.c (avr_option_override): Set
2699 PARAM_ALLOW_STORE_DATA_RACES to 1.
2700
2701 2016-02-02 Richard Biener <rguenther@suse.de>
2702
2703 PR tree-optimization/69595
2704 * match.pd: Add range test simplifications to true/false.
2705
2706 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
2707
2708 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
2709 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
2710 instead.
2711
2712 2016-02-02 Richard Biener <rguenther@suse.de>
2713
2714 PR tree-optimization/69606
2715 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
2716 info on the result before moving a stmt.
2717
2718 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2719
2720 PR middle-end/68542
2721 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
2722 branch with vector comparison.
2723 * config/i386/sse.md (VI48_AVX): New mode iterator.
2724 (define_expand "cbranch<mode>4): Add support for conditional branch
2725 with vector comparison.
2726 * tree-vect-loop.c (optimize_mask_stores): New function.
2727 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
2728 has_mask_store field of vect_info.
2729 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
2730 vectorized loops having masked stores after vec_info destroy.
2731 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
2732 correspondent macros.
2733 (optimize_mask_stores): Add prototype.
2734
2735 2016-02-02 Alan Modra <amodra@gmail.com>
2736
2737 PR target/69548
2738 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
2739 allow subregs.
2740
2741 2016-02-02 Alan Modra <amodra@gmail.com>
2742
2743 PR target/68662
2744 * config/rs6000/rs6000.c (need_toc_init): New var, set it
2745 whenever toc_label_name used.
2746 (rs6000_file_start): Don't set up toc section here,
2747 (rs6000_output_function_epilogue): do so here instead,
2748 (rs6000_xcoff_file_start): and here.
2749 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
2750 (load_toc_aix_di): Likewise.
2751
2752 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2753
2754 PR rtl-optimization/69592
2755 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
2756 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
2757 (num_sign_bit_copies_binary_arith_p): New inline function.
2758 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
2759
2760 2016-02-01 Jeff Law <law@redhat.com>
2761
2762 PR tree-optimization/69580
2763 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
2764 * tree-ssa-threadbackward.c
2765 (fsm_find_control_statement_thread_paths): Do not try to walk
2766 through large PHI nodes.
2767
2768 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2769
2770 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
2771 when count is incremented above limit, don't analyze further
2772 insns afterwards.
2773
2774 * omp-low.c (oacc_parse_default_dims): Avoid
2775 -Wsign-compare warning, make sure value fits into int
2776 rather than just unsigned int.
2777
2778 2016-02-01 Bin Cheng <bin.cheng@arm.com>
2779
2780 PR tree-optimization/67921
2781 * fold-const.c (split_tree): New parameters. Convert pointer
2782 type variable part to proper type before negating.
2783 (fold_binary_loc): Pass new arguments to split_tree.
2784
2785 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2786
2787 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
2788 (nvptx_goacc_validate_dims): Extend to handle global defaults.
2789 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
2790 * doc/tm.texti: Rebuilt.
2791 * doc/invoke.texi (fopenacc-dim): Document.
2792 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
2793 (append_compiler_options): Likewise.
2794 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
2795 (oacc_parse_default_dims): New.
2796 (oacc_validate_dims): Add USED arg. Select non-unity default when
2797 possible.
2798 (oacc_loop_fixed_partitions): Return mask of used partitions.
2799 (oacc_loop_auto_partitions): Emit dump info.
2800 (oacc_loop_partition): Return mask of used partitions.
2801 (execute_oacc_device_lower): Parse default dimension arg. Adjust
2802 loop partitioning and validation calls.
2803
2804 2016-02-01 Richard Biener <rguenther@suse.de>
2805
2806 PR middle-end/69556
2807 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
2808
2809 2016-02-01 Richard Biener <rguenther@suse.de>
2810
2811 PR tree-optimization/69574
2812 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
2813 of asserting return chrec_dont_know.
2814
2815 2016-02-01 Martin Liska <mliska@suse.cz>
2816
2817 * mem-stats-traits.h: Add copyright header.
2818 * mem-stats.h: Likewise.
2819
2820 2016-02-01 Richard Biener <rguenther@suse.de>
2821
2822 PR tree-optimization/69579
2823 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
2824 Do not propagate through abnormal PHI results.
2825
2826 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
2827
2828 * postreload.c (reload_cse_simplify): Remove dead code.
2829
2830 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2831
2832 PR rtl-optimization/69570
2833 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
2834 if there is more than one set, not if there is a single set.
2835
2836 2016-02-01 Richard Henderson <rth@redhat.com>
2837
2838 PR rtl-opt/69535
2839 * combine.c (make_compound_operation): When looking through a
2840 subreg, make sure to re-extend to the width of the outer mode.
2841
2842 2016-01-30 Jakub Jelinek <jakub@redhat.com>
2843
2844 PR tree-optimization/69546
2845 * wide-int.cc (wi::divmod_internal): For unsigned division
2846 where both operands fit into uhwi, if o1 is 1 and o0 has
2847 msb set, if divident_prec is larger than bits per hwi,
2848 clear another quotient word and return 2 instead of 1.
2849 Similarly for remainder with msb in HWI set, if dividend_prec
2850 is larger than bits per hwi.
2851
2852 2016-01-29 Martin Jambor <mjambor@suse.cz>
2853
2854 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
2855 Use short lowercase names.
2856 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
2857 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
2858 acq_rel one. Protect warning agains segfaults if
2859 get_memory_order_name returns NULL.
2860 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
2861 with release semantics. Do not warn if get_memory_order already did.
2862 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
2863 semantics. Fix check for relaxed or acquire semantics. Do not warn
2864 if get_memory_order already did.
2865
2866 2016-01-29 Sebastian Pop <s.pop@samsung.com>
2867
2868 * doc/install.texi: Document that isl-0.16 is supported.
2869
2870 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
2871
2872 PR target/69299
2873 * config/i386/constraints.md (Bm): Describe as special memory
2874 constraint.
2875 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
2876 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2877 * genpreds.c (struct constraint_data): Add is_special_memory.
2878 (have_special_memory_constraints, special_memory_start): New
2879 static vars.
2880 (special_memory_end): Ditto.
2881 (add_constraint): Add new arg is_special_memory. Add code to
2882 process its true value. Update have_special_memory_constraints.
2883 (process_define_constraint): Pass the new arg.
2884 (process_define_register_constraint): Ditto.
2885 (choose_enum_order): Process special memory.
2886 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
2887 function insn_extra_special_memory_constraint.
2888 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2889 * gensupport.c (process_rtx): Process
2890 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2891 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
2892 * ira-lives.c (single_reg_class): Use
2893 insn_extra_special_memory_constraint.
2894 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
2895 * lra-constraints.c (process_alt_operands): Ditto.
2896 (curr_insn_transform): Use insn_extra_special_memory_constraint.
2897 * recog.c (asm_operand_ok, preprocess_constraints): Process
2898 CT_SPECIAL_MEMORY.
2899 * reload.c (find_reloads): Ditto.
2900 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
2901 * stmt.c (parse_input_constraint): Use
2902 insn_extra_special_memory_constraint.
2903
2904 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
2905
2906 PR target/69530
2907 * lra-splill.c (lra_final_code_change): Revert r229087 by
2908 removing all sub-registers.
2909
2910 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
2911
2912 PR target/65604
2913 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
2914
2915 2016-01-29 Jakub Jelinek <jakub@redhat.com>
2916
2917 PR target/69551
2918 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
2919 SSE1, copy target into the temporary reg first before recursing
2920 on it.
2921
2922 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
2923
2924 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
2925 with vm.
2926
2927 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
2928
2929 * ginclude/stdarg.h: Test __cplusplus instead of
2930 __GXX_EXPERIMENTAL_CXX0X__.
2931
2932 2016-01-29 Richard Biener <rguenther@suse.de>
2933
2934 PR tree-optimization/69547
2935 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2936 Do not mark clobbers necessary.
2937 (mark_all_reaching_defs_necessary_1): Likewise.
2938
2939 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2940
2941 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
2942 declaration name with %qs and print it in both error messages.
2943 Also fix indentation.
2944
2945 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2946
2947 PR other/69006
2948 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
2949 trailing blank line from error message.
2950
2951 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
2952
2953 PR c++/69462
2954 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
2955 for C++-11.
2956
2957 2016-01-29 Richard Biener <rguenther@suse.de>
2958
2959 PR middle-end/69537
2960 * match.pd: Allow all integral types when simplifying a
2961 widening or sign-changing conversion.
2962
2963 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2964
2965 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
2966 back to setting codegen_error to fail codegen.
2967
2968 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
2969
2970 PR target/69459
2971 * config/i386/constraints.md (C): Only accept constant zero operand.
2972 (BC): New constraint.
2973 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
2974 instead of C constraint.
2975 * doc/md.texi (Machine Constraints): Update description
2976 of C constraint.
2977
2978 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
2979
2980 PR target/68400
2981 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
2982
2983 2016-01-28 Jakub Jelinek <jakub@redhat.com>
2984
2985 PR middle-end/69542
2986 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
2987 non-debug insns.
2988
2989 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
2990
2991 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
2992 branches if using guessed profile.
2993
2994 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
2995
2996 * graphite-optimize-isl.c (optimize_isl): Fix dump.
2997
2998 2016-01-28 Richard Henderson <rth@redhat.com>
2999
3000 PR target/69305
3001 * config/aarch64/aarch64-modes.def (CC_Cmode): New
3002 * config/aarch64/aarch64-protos.h: Update.
3003 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
3004 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
3005 (aarch64_get_condition_code_1): Handle CC_Cmode.
3006 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
3007 (*add<mode>3_compareC_cconly_imm): New.
3008 (*add<mode>3_compareC_cconly): New.
3009 (*add<mode>3_compareC_imm): New.
3010 (add<mode>3_compareC): New.
3011 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
3012 to be first. Use aarch64_carry_operation.
3013 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
3014 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
3015 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
3016 (subti3): Use subdi3_compare1.
3017 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
3018 (sub<mode>3_compare1): New.
3019 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
3020 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
3021 (*subsi3_carryin_uxtw): Likewise.
3022 (*ngc<mode>, *ngcsi_uxtw): Likewise.
3023 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
3024 * config/aarch64/iterators.md (DWI): New.
3025 * config/aarch64/predicates.md (aarch64_carry_operation): New.
3026 (aarch64_borrow_operation): New.
3027
3028 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3029
3030 * graphite-optimize-isl.c (optimize_isl): Print a different debug
3031 message when isl does not return a valid schedule.
3032
3033 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3034
3035 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3036 Remove comments from class declarations: they are already in the code
3037 close by the defs.
3038
3039 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3040
3041 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
3042 codegen_error_p.
3043 (ternary_op_to_tree): Same.
3044 (unary_op_to_tree): Same.
3045 (nary_op_to_tree): Same.
3046 (gcc_expression_from_isl_expr_op): Same.
3047 (gcc_expression_from_isl_expression): Same.
3048 (graphite_create_new_loop): Same.
3049 (graphite_create_new_loop_guard): Same.
3050 (build_iv_mapping): Same.
3051 (graphite_create_new_guard): Same.
3052 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
3053 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
3054
3055 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3056
3057 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
3058 instead of setting codegen_error to fail codegen.
3059
3060 2016-01-28 Jason Merrill <jason@redhat.com>
3061
3062 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
3063
3064 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
3065
3066 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3067 Remove CONST_INT_P check in CCMP cost calculation.
3068
3069 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
3070
3071 * config/aarch64/aarch64.c (generic_vector_cost):
3072 Set vec_permute_cost.
3073 (cortexa57_vector_cost): Likewise.
3074 (exynosm1_vector_cost): Likewise.
3075 (xgene1_vector_cost): Likewise.
3076 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
3077 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
3078 Add vec_permute_cost entry.
3079
3080 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
3081
3082 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
3083 immediate as %1.
3084 (add<mode>3_compare0): Likewise.
3085 (addsi3_compare0_uxtw): Likewise.
3086 (add<mode>3nr_compare0): Likewise.
3087 (compare_neg<mode>): Likewise.
3088 (<optab><mode>3): Likewise.
3089
3090 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
3091
3092 * tree-vect-stmts.c (vectorizable_comparison): Add
3093 NULL check for vectype.
3094
3095 2016-01-28 Richard Biener <rguenther@suse.de>
3096
3097 PR tree-optimization/69466
3098 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3099 Account for PHIs we couldn't duplicate.
3100
3101 2016-01-28 Martin Liska <mliska@suse.cz>
3102
3103 PR pch/68758
3104 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
3105 instead of ENABLE_VALGRIND_CHECKING.
3106
3107 2016-01-27 Richard Henderson <rth@redhat.com>
3108
3109 PR rtl-opt/69447
3110 * lra-remat.c (subreg_regs): New.
3111 (dump_candidates_and_remat_bb_data): Dump it.
3112 (operand_to_remat): Reject if operand in subreg_regs.
3113 (set_bb_regs): Collect subreg_regs.
3114 (lra_remat): Init and free subreg_regs. Compute
3115 calculate_local_reg_remat_bb_data before create_cands.
3116
3117 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
3118
3119 PR target/68986
3120 * config/i386/i386.c (ix86_update_stack_boundary): Don't
3121 change stack_alignment_needed for __tls_get_addr call.
3122
3123 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
3124
3125 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
3126
3127 2016-01-27 Jeff Law <law@redhat.com>
3128
3129 PR tree-optimization/68398
3130 PR tree-optimization/69196
3131 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
3132 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
3133 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3134 Only count PHIs in the last block in the path. The others will
3135 const/copy propagate away. Add heuristic to allow more irreducible
3136 subloops to be created when it is likely profitable to do so.
3137
3138 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3139 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
3140 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
3141
3142 2016-01-27 Jakub Jelinek <jakub@redhat.com>
3143
3144 PR lto/69254
3145 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
3146 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
3147 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
3148 * tree-streamer-in.c: Include asan.h.
3149 (streamer_get_builtin_tree): For builtins in sanitizer
3150 range call initialize_sanitizer_builtins and retry.
3151
3152 2016-01-27 Ian Lance Taylor <iant@google.com>
3153
3154 * common.opt (fkeep-gc-roots-live): New undocumented option.
3155 * tree-ssa-loop-ivopts.c (add_candidate_1): If
3156 -fkeep-gc-roots-live, skip pointers.
3157 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
3158 NULL.
3159
3160 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
3161
3162 PR target/69512
3163 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
3164 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
3165
3166 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
3167
3168 PR target/68380
3169 * configure.ac: NetBSD provides SSP in its C library.
3170 * configure: Updated.
3171
3172 2016-01-27 Richard Biener <rguenther@suse.de>
3173
3174 PR tree-optimization/69166
3175 * tree-vect-loop.c (vect_is_simple_reduction): Always check
3176 reduction code for commutativity / associativity.
3177
3178 2016-01-27 Martin Jambor <mjambor@suse.cz>
3179
3180 PR tree-optimization/69355
3181 * tree-sra.c (analyze_access_subtree): Correct hole detection when
3182 total_scalarization fails.
3183
3184 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
3185
3186 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
3187 power9.
3188
3189 2016-01-27 Christian Bruel <christian.bruel@st.com>
3190
3191 PR target/69245
3192 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
3193 Move arm_reset_previous_fndecl and set_target_option_current_node in
3194 the conditional part. Call save_restore_target_globals.
3195 * config/arm/arm.c (arm_set_current_function):
3196 Refactor to better support #pragma target and attribute mix.
3197 Call save_restore_target_globals.
3198 * config/arm/arm-protos.h (save_restore_target_globals): New function.
3199
3200 2016-01-27 Martin Liska <mliska@suse.cz>
3201
3202 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
3203 reference for an HSA kernel and its host function.
3204
3205 2016-01-27 Jakub Jelinek <jakub@redhat.com>
3206
3207 PR tree-optimization/69399
3208 * wide-int.h (wi::lrshift): For larger precisions, only
3209 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
3210
3211 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
3212
3213 * config/arc/predicates.md (proper_comparison_operator): Reject
3214 constant-constant comparison.
3215
3216 2016-01-26 Tom de Vries <tom@codesourcery.com>
3217
3218 PR tree-optimization/69110
3219 * tree-data-ref.c (initialize_data_dependence_relation): Handle
3220 DR_NUM_DIMENSIONS == 0.
3221
3222 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3223 Sebastian Pop <s.pop@samsung.com>
3224
3225 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
3226 isl_ast_op_cond and isl_ast_op_select.
3227 (gcc_expression_from_isl_expr_op): Same.
3228
3229 2016-01-26 Jason Merrill <jason@redhat.com>
3230
3231 PR c++/68782
3232 * tree.c (recompute_constructor_flags): Split out from
3233 build_constructor.
3234 (verify_constructor_flags): New.
3235 * tree.h: Declare them.
3236
3237 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
3238
3239 PR rtl-optimization/69217
3240 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
3241 are no TYPE_FIELDS set for the record type.
3242
3243 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3244
3245 PR target/68662
3246 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
3247 toc_label_name unconditionally.
3248 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
3249 SYMBOL_REF string. Use toc_label_name instead of constructing
3250 LCTOC1.
3251 (rs6000_elf_declare_function_name): Use toc_label_name instead of
3252 constructing LCTOC1.
3253
3254 2016-01-26 Martin Sebor <msebor@redhat.com>
3255
3256 PR other/69477
3257 * doc/extend.texi (Common Type Attributes): Move text that talks about
3258 attribute packed from attribute aligned to the section discussing
3259 the former attribute for clarity.
3260
3261 2016-01-26 Richard Henderson <rth@redhat.com>
3262
3263 PR middle-end/60908
3264 * trans-mem.c (tm_region_init): Mark entry block as visited.
3265
3266 2016-01-26 David Malcolm <dmalcolm@redhat.com>
3267
3268 PR other/69006
3269 * diagnostic-show-locus.c (layout::print_source_line): Replace
3270 call to pp_newline with call to layout::print_newline.
3271 (layout::print_annotation_line): Likewise.
3272 (layout::move_to_column): Likewise.
3273 (layout::print_any_fixits): After printing any fixits, print a
3274 trailing newline, if necessary.
3275 (layout::print_newline): New method, resetting any colorization
3276 before a newline.
3277 (diagnostic_show_locus): Move the pp_newline to before the
3278 early bailout. Remove dummy block enclosing the layout instance.
3279 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
3280 of pp_newline_and_flush with pp_flush.
3281 (diagnostic_append_note): Delete use of pp_newline.
3282 (diagnostic_append_note_at_rich_loc): Delete.
3283 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
3284 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
3285 when newline characters are added to the buffer.
3286
3287 2016-01-26 Michael Matz <matz@suse.de>
3288
3289 * configure.ac (ac_cv_std_swap_in_utility): New test.
3290 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
3291 * configure: Regenerate.
3292 * config.in: Regenerate.
3293
3294 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
3295
3296 * config/arc/arc.md (cstoresi4): Force operand into register.
3297 (arcset<code>): Fix predicate.
3298 (arcsetltu): Likewise.
3299 (arcsetgeu): Likewise.
3300 (arcsethi): Likewise.
3301 (arcsetls): Likewise.
3302
3303 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3304
3305 PR tree-optimization/69483
3306 * gimple-fold.c (canonicalize_constructor_val): Return NULL
3307 if base has error_mark_node type.
3308
3309 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
3310
3311 PR target/68620
3312 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
3313 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
3314 New helper macros.
3315 (vget_lane_f16): Handle big-endian.
3316 (vgetq_lane_f16): Likewise.
3317 (vset_lane_f16): Likewise.
3318 (vsetq_lane_f16): Likewise.
3319 * config/arm/iterators.md (VQXMOV): Add V8HF.
3320 (VDQ): Add V4HF and V8HF.
3321 (V_reg): Handle V4HF and V8HF.
3322 (Is_float_mode): Likewise.
3323 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
3324 neon_vdup_nv8hf): New patterns.
3325 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
3326 Use VD_LANE iterator.
3327 (neon_vld1_dup<mode>): Use VQ2 iterator.
3328
3329 2016-01-26 Nathan Sidwell <nathan@acm.org>
3330
3331 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
3332 (set_oacc_fn_attrib): Add IS_KERNEL arg.
3333 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
3334 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
3335 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
3336 (oacc_validate_dims): Add LEVEL arg, don't return level.
3337 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
3338 oacc_validate_dims.
3339 (execute_oacc_device_lower): Adjust, add more dump output.
3340 * tree-ssa-loop.c (gate_oacc_kernels): Use
3341 oacc_fn_attrib_kernels_p.
3342 * tree-parloops.c (create_parallel_loop): Adjust
3343 set_oacc_fn_attrib call.
3344
3345 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3346
3347 PR lto/69254
3348 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
3349 (append_compiler_options): Handle -fcilkplus.
3350 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
3351
3352 2016-01-26 Nick Clifton <nickc@redhat.com>
3353
3354 PR target/66655
3355 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
3356 been marked as DECL_ONE_ONLY but we do not the means to make it
3357 so, then do not allow it to bind locally.
3358
3359 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3360
3361 PR lto/69254
3362 * opts.h (parse_sanitizer_options): New prototype.
3363 * opts.c (sanitizer_opts): New array.
3364 (parse_sanitizer_options): New function.
3365 (common_handle_option): Use parse_sanitizer_options.
3366
3367 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
3368
3369 PR target/68986
3370 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
3371 alignment adjustment to ...
3372 (ix86_update_stack_boundary): Here. Don't over-align stack for
3373 __tls_get_addr.
3374 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
3375 if __tls_get_addr is called.
3376
3377 2016-01-26 Christian Bruel <christian.bruel@st.com>
3378
3379 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
3380
3381 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
3382
3383 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
3384
3385 2016-01-26 Richard Biener <rguenther@suse.de>
3386
3387 PR middle-end/69467
3388 * match.pd: Guard X * CST CMP 0 pattern with single_use.
3389
3390 2016-01-26 Richard Biener <rguenther@suse.de>
3391
3392 PR tree-optimization/69452
3393 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
3394 (move_computations_dom_walker::before_dom_children): Rename
3395 to ...
3396 (move_computations_worker): This.
3397 (move_computations): Perform an RPO rather than a DOM walk.
3398
3399 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3400
3401 PR target/69442
3402 * combine.c (combine_instructions): For REG_EQUAL note with
3403 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
3404 to the underlying register.
3405 * doc/rtl.texi (REG_EQUAL): Document the behavior of
3406 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
3407
3408 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
3409
3410 PR target/67896
3411 * config/aarch64/aarch64-builtins.c
3412 (aarch64_init_simd_builtin_types): Do not set structural
3413 equality to __Poly{8,16,64,128}_t types.
3414
3415 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
3416
3417 PR tree-optimization/69400
3418 * wide-int.cc (wi_pack): Take the precision as argument and
3419 perform canonicalization here rather than in the callers.
3420 Use the main loop to handle all full-width HWIs. Add a
3421 zero HWI if in_len isn't a full result.
3422 (wi::divmod_internal): Update accordingly.
3423 (wi::mul_internal): Likewise. Simplify.
3424
3425 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
3426 Sebastian Pop <s.pop@samsung.com>
3427
3428 * graphite-poly.c (apply_poly_transforms): Simplify.
3429 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
3430 (print_isl_map): Same.
3431 (print_isl_union_map): Same.
3432 (print_isl_schedule): New.
3433 (debug_isl_schedule): New.
3434 * graphite-dependences.c (scop_get_reads): Do not call
3435 isl_union_map_add_map that is undocumented isl functionality.
3436 (scop_get_must_writes): Same.
3437 (scop_get_may_writes): Same.
3438 (scop_get_original_schedule): Remove.
3439 (scop_get_dependences): Do not call isl_union_map_compute_flow that
3440 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
3441 (compute_deps): Remove.
3442 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
3443 (debug_schedule_ast): New.
3444 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
3445 set_separate_option.
3446 (graphite_regenerate_ast_isl): Add dump.
3447 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
3448 from scop->transformed_schedule.
3449 (graphite_regenerate_ast_isl): Add more dump.
3450 * graphite-optimize-isl.c (optimize_isl): Set
3451 scop->transformed_schedule. Check whether schedules are equal.
3452 (apply_poly_transforms): Move here.
3453 * graphite-poly.c (apply_poly_transforms): ... from here.
3454 (free_poly_bb): Static.
3455 (free_scop): Static.
3456 (pbb_number_of_iterations_at_time): Remove.
3457 (print_isl_ast): New.
3458 (debug_isl_ast): New.
3459 (debug_scop_pbb): New.
3460 * graphite-scop-detection.c (print_edge): Move.
3461 (print_sese): Move.
3462 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3463 (build_scop_scattering): Remove.
3464 (create_pw_aff_from_tree): Assert instead of bailing out.
3465 (add_condition_to_pbb): Remove unused code, do not fail.
3466 (add_conditions_to_domain): Same.
3467 (add_conditions_to_constraints): Remove.
3468 (build_scop_context): New.
3469 (add_iter_domain_dimension): New.
3470 (build_iteration_domains): Initialize pbb->iterators.
3471 Call add_conditions_to_domain.
3472 (nested_in): New.
3473 (loop_at): New.
3474 (index_outermost_in_loop): New.
3475 (index_pbb_in_loop): New.
3476 (outermost_pbb_in): New.
3477 (add_in_sequence): New.
3478 (add_outer_projection): New.
3479 (outer_projection_mupa): New.
3480 (add_loop_schedule): New.
3481 (build_schedule_pbb): New.
3482 (build_schedule_loop): New.
3483 (embed_in_surrounding_loops): New.
3484 (build_schedule_loop_nest): New.
3485 (build_original_schedule): New.
3486 (build_poly_scop): Call build_original_schedule.
3487 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
3488 (free_poly_dr): Remove.
3489 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
3490 (free_poly_bb): Remove.
3491 (debug_loop_vec): Remove.
3492 (print_isl_ast): Declare.
3493 (debug_isl_ast): Declare.
3494 (scop_do_interchange): Remove.
3495 (scop_do_strip_mine): Remove.
3496 (scop_do_block): Remove.
3497 (flatten_all_loops): Remove.
3498 (optimize_isl): Remove.
3499 (pbb_number_of_iterations_at_time): Remove.
3500 (debug_scop_pbb): Declare.
3501 (print_schedule_ast): Declare.
3502 (debug_schedule_ast): Declare.
3503 (struct scop): Remove schedule. Add original_schedule,
3504 transformed_schedule.
3505 (free_gimple_poly_bb): Remove.
3506 (print_generated_program): Remove.
3507 (debug_generated_program): Remove.
3508 (unify_scattering_dimensions): Remove.
3509 * sese.c (print_edge): ... here.
3510 (print_sese): ... here.
3511 (debug_edge): ... here.
3512 (debug_sese): ... here.
3513 * sese.h (print_edge): Declare.
3514 (print_sese): Declare.
3515 (dump_edge): Declare.
3516 (dump_sese): Declare.
3517
3518 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
3519 Sebastian Pop <s.pop@samsung.com>
3520
3521 * Makefile.in: Set ISLVER in site.exp.
3522
3523 2016-01-25 Jakub Jelinek <jakub@redhat.com>
3524
3525 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
3526 DECL_VALUE_EXPR of new_var even for the non-array case. Look
3527 through DECL_VALUE_EXPR for expansion.
3528
3529 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3530
3531 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
3532 the frame info after reload completed.
3533
3534 2016-01-25 Jeff Law <law@redhat.com>
3535
3536 PR tree-optimization/69196
3537 PR tree-optimization/68398
3538 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
3539 tree-ssa-threadupdate.c.
3540 (determine_bb_domination_status): Prototype
3541 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
3542 (determine_bb_domination_status): No longer static.
3543 (valid_jump_thread_path): Remove code to detect characteristics
3544 of the jump thread path not associated with correctness.
3545 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
3546 Correct test for thread path length. Count PHIs for real operands as
3547 statements that need to be copied. Do not count ASSERT_EXPRs.
3548 Look at all the blocks in the thread path. Compute and selectively
3549 filter thread paths based on threading through the latch, threading
3550 a multiway branch or crossing a multiway branch.
3551
3552 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3553
3554 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
3555 decl with __attribute__ ((unused)) annotation.
3556
3557 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
3558
3559 PR target/69421
3560 * tree-vect-stmts.c (vectorizable_condition): Check vectype
3561 of operands is compatible with a statement vectype.
3562
3563 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
3564
3565 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
3566 improve wording for mixed storage order support.
3567
3568 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
3569
3570 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
3571 (vcvt_u64_f64): Likewise.
3572 (vcvta_s64_f64): Likewise.
3573 (vcvta_u64_f64): Likewise.
3574 (vcvtm_s64_f64): Likewise.
3575 (vcvtm_u64_f64): Likewise.
3576 (vcvtn_s64_f64): Likewise.
3577 (vcvtn_u64_f64): Likewise.
3578 (vcvtp_s64_f64): Likewise.
3579 (vcvtp_u64_f64): Likewise.
3580
3581 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
3582
3583 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
3584 (arc_init): Check validity mll64 option.
3585 (arc_save_restore): Use double load/store instruction.
3586 (arc_expand_movmem): Likewise.
3587 (arc_split_move): Don't split if we have double load/store
3588 instructions. Returns a boolean.
3589 (arc_process_double_reg_moves): Change function to return boolean
3590 instead of a sequence of instructions.
3591 (arc_dwarf_register_span): New function.
3592 * config/arc/arc-protos.h (arc_split_move): Change prototype.
3593 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
3594 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
3595 (*movdf_insn): Likewise.
3596 * config/arc/arc.opt (mll64): New option.
3597 * config/arc/predicates.md (even_register_operand): New predicate.
3598 * doc/invoke.texi (ARC Options): Add mll64 documentation.
3599
3600 2016-01-25 Richard Biener <rguenther@suse.de>
3601
3602 PR lto/69393
3603 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
3604 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
3605 DECL_NAMELESS.
3606 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
3607
3608 2016-01-25 Richard Biener <rguenther@suse.de>
3609
3610 PR tree-optimization/69376
3611 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
3612 flag.
3613 (VN_INFO_ANTI_RANGE_P): New inline.
3614 (VN_INFO_RANGE_TYPE): Likewise.
3615 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
3616 SSA_NAME_ANTI_RANGE_P.
3617 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
3618 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3619 Properly query VN_INFO_RANGE_TYPE.
3620
3621 2016-01-25 Nick Clifton <nickc@redhat.com>
3622
3623 PR target/66655
3624 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
3625
3626 2016-01-23 Tom de Vries <tom@codesourcery.com>
3627
3628 PR tree-optimization/69426
3629 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
3630 removed clobber.
3631
3632 2016-01-23 Jakub Jelinek <jakub@redhat.com>
3633
3634 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
3635 "the the" with "the" in the comments.
3636 * ipa-devirt.c (build_type_inheritance_graph,
3637 update_type_inheritance_graph): Likewise.
3638 * tree.c (build_function_type_list_1): Likewise.
3639 * cfgloopmanip.c (scale_loop_profile): Likewise.
3640 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
3641 * gimple-ssa-split-paths.c
3642 (find_block_to_duplicate_for_splitting_paths): Likewise.
3643 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
3644 * expr.c (convert_move): Likewise.
3645 * var-tracking.c (vt_stack_adjustments): Likewise.
3646 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3647 * tree-vrp.c (test_for_singularity): Likewise.
3648
3649 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
3650 directly instead of building a temporary tree.
3651
3652 PR bootstrap/69434
3653 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
3654 remove <algorithm> include.
3655
3656 2016-01-22 Jakub Jelinek <jakub@redhat.com>
3657
3658 PR target/69432
3659 * config/i386/i386.c: Include dojump.h.
3660 (expand_small_movmem_or_setmem,
3661 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
3662 fixes.
3663 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
3664 if dynamic_check != -1.
3665
3666 2016-01-21 Jeff Law <law@redhat.com>
3667
3668 PR middle-end/69347
3669 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
3670 record_temporary_equivalences. Rewritten to avoid unnecessary calls
3671 into dominated_by_p.
3672 (cprop_into_successor_phis): Avoid unnecessary tests.
3673
3674 2016-01-22 Richard Henderson <rth@redhat.com>
3675
3676 PR target/69416
3677 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
3678 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
3679
3680 2016-01-22 Michael Matz <matz@suse.de>
3681
3682 * system.h (string, algorithm): Include only conditionally.
3683 (new): Include always under C++.
3684 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
3685 * final.c (toplevel): Ditto.
3686 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
3687 * genconditions.c (write_header): Make gencondmd.c define
3688 INCLUDE_STRING.
3689 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
3690
3691 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
3692 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
3693
3694 2016-01-22 Christian Bruel <christian.bruel@st.com>
3695
3696 PR target/68674
3697 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
3698
3699 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3700
3701 PR target/69403
3702 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
3703 define_insn_and_split. Ensure operands[1] and operands[0] do not
3704 get assigned the same register.
3705
3706 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
3707
3708 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
3709
3710 2016-01-22 Christian Bruel <christian.bruel@st.com>
3711
3712 * config/arm/arm-c.c (arm_pragma_target_parse):
3713 Remove warn_builtin_macro_redefined overwrite.
3714
3715 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
3716
3717 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
3718 flag_non_call_exceptions compatibility.
3719
3720 2016-01-22 Jakub Jelinek <jakub@redhat.com>
3721
3722 PR debug/66668
3723 * dwarf2out.c (add_child_die_after): New function.
3724 (dwarf_qual_info_t): New type.
3725 (dwarf_qual_info): New variable.
3726 (qualified_die_p): New function.
3727 (modified_type_die): For -fdebug-types-section, ensure
3728 canonical order of qualifiers. Put qualified DIEs adjacent
3729 to the corresponding non-qualified type DIE and search there
3730 for existing qualified DIEs.
3731
3732 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
3733
3734 * doc/extend.texi (scalar_storage_order type attribute): Document
3735 restriction on type punning and aliasing, and remove future tense.
3736
3737 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
3738
3739 PR target/69252
3740 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
3741 first stage.
3742
3743 2016-01-21 Jeff Law <law@redhat.com>
3744
3745 PR middle-end/69347
3746 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
3747 useless call to record_temporary_equivalences.
3748 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
3749 allocate 10 slots in the bb_path vector and let it grow as needed.
3750 (fsm_find_control_statement_thread_paths): Similarly for the next_path
3751 vector.
3752
3753 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
3754
3755 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
3756 Detangle.
3757 * configure: Regenerate.
3758
3759 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
3760
3761 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
3762 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
3763
3764 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
3765
3766 PR middle-end/66178
3767 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
3768 drop EXPAND_INITIALIZER.
3769 * rtl.h (contains_symbolic_reference_p): Declare.
3770 * rtlanal.c (contains_symbolic_reference_p): New function.
3771 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
3772 a subtraction into a NOT if symbolic constants are involved.
3773
3774 2016-01-21 Anton Blanchard <anton@samba.org>
3775 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3776
3777 PR target/63354
3778 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
3779 #define.
3780 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
3781 function.
3782
3783 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
3784
3785 * config/microblaze/microblaze.c
3786 (get_branch_target): New.
3787 (insert_wic_for_ilb_runout): New.
3788 (insert_wic): New.
3789 (microblaze_machine_dependent_reorg): New.
3790 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
3791 * config/microblaze/microblaze.md
3792 (UNSPEC_IPREFETCH): Define.
3793 (iprefetch): New pattern
3794 * config/microblaze/microblaze.opt
3795 (mxl-prefetch): New flag.
3796
3797 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
3798
3799 * config/microblaze/microblaze.h
3800 (FIXED_REGISTERS): Update in macro.
3801 (CALL_USED_REGISTERS): Update in macro.
3802
3803 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
3804
3805 PR rtl-optimization/68920
3806 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
3807 moves.
3808
3809 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
3810
3811 PR rtl-optimization/68990
3812 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
3813 pseudo instead of inheritance ones.
3814
3815 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3816 Nick Clifton <nickc@redhat.com>
3817
3818 PR target/69129
3819 PR target/69012
3820 * config/mips/mips.c (mips_compute_frame_info): Initialise
3821 args_size and hard_frame_pointer_offset fields of the frame
3822 structure before calling mips_global_pointer.
3823
3824 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
3825
3826 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
3827 label reference.
3828 * configure: Regenerate.
3829
3830 2016-01-21 Richard Biener <rguenther@suse.de>
3831
3832 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
3833
3834 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3835
3836 * config/s390/s390.c (s390_asm_declare_function_size): Add code
3837 to actually emit the .size directive.
3838
3839 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
3840 Jakub Jelinek <jakub@redhat.com>
3841
3842 PR target/69187
3843 PR target/65624
3844 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
3845 args array size by one to avoid buffer overflow.
3846
3847 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3848
3849 * config/s390/s390.md (pool_section_start): Use switch_to_section
3850 to select proper read-only data section instead of hardcoding
3851 .rodata.
3852 (pool_section_end): Use switch_to_section to match the above.
3853
3854 2016-01-21 Richard Biener <rguenther@suse.de>
3855
3856 PR tree-optimization/69378
3857 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
3858 (set_ssa_val_to): Use it for dominance checks taking into
3859 account not executable edges.
3860
3861 2016-01-21 Jakub Jelinek <jakub@redhat.com>
3862
3863 PR c++/69355
3864 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
3865 for bitsize instead of GET_MODE_PRECISION (mode).
3866
3867 2016-01-20 Martin Sebor <msebor@redhat.com>
3868
3869 PR c/52291
3870 * extend.texi (__sync Builtins): Clarify the semantics of
3871 __sync_fetch_and_OP built-ins on pointers.
3872 (__atomic Builtins): Same.
3873
3874 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3875 Sebastian Pop <s.pop@samsung.com>
3876
3877 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
3878 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
3879 (is_valid_rename): Same.
3880 (translate_isl_ast_to_gimple::get_rename): Same.
3881 (translate_isl_ast_to_gimple::rename_all_uses): Same.
3882 (translate_isl_ast_to_gimple::rename_uses): Same.
3883 (get_new_name): Check for close_phi nodes.
3884 (copy_loop_phi_args): Use phi_node_kind.
3885 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3886 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
3887
3888 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3889 Sebastian Pop <s.pop@samsung.com>
3890
3891 Revert commit r229783.
3892 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3893 Remove use of parameter_rename_map.
3894 (copy_def): Remove.
3895 (copy_internal_parameters): Remove.
3896 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3897 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3898 (free_sese_info): Do not free parameter_rename_map.
3899 (set_rename): Do not use parameter_rename_map.
3900 (rename_uses): Update call to set_rename.
3901 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3902 * sese.h (parameter_rename_map_t): Remove.
3903 (struct sese_info_t): Remove field parameter_rename_map.
3904
3905 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3906 Sebastian Pop <s.pop@samsung.com>
3907
3908 * graphite-isl-ast-to-gimple.c: Fix comment.
3909 * graphite-scop-detection.c (defined_in_loop_p): New.
3910 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
3911 names defined in loop.
3912
3913 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3914 Sebastian Pop <s.pop@samsung.com>
3915
3916 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
3917 Discard unstructured if-then-else regions.
3918
3919 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3920 Sebastian Pop <s.pop@samsung.com>
3921
3922 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
3923 (cleanup_loop_iter_dom): Remove.
3924 (build_loop_iteration_domains): Remove.
3925 (build_scop_context): Remove.
3926 (build_scop_iteration_domain): Remove.
3927 (add_loop_constraints): New.
3928 (build_iteration_domains): New.
3929 (build_poly_scop): Call build_iteration_domains.
3930
3931 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3932 Sebastian Pop <s.pop@samsung.com>
3933
3934 * graphite-scop-detection.c
3935 (scop_detection::harmful_loop_in_region): Free dom and loops.
3936 (scop_detection::loop_body_is_valid_scop): Free bbs.
3937
3938 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3939 Sebastian Pop <s.pop@samsung.com>
3940
3941 * graphite-scop-detection.c (record_loop_in_sese): New.
3942 (gather_bbs::before_dom_children): Call record_loop_in_sese.
3943 (build_scops): Remove call to build_sese_loop_nests.
3944 * sese.c (sese_record_loop): Remove.
3945 (build_sese_loop_nests): Remove.
3946 (new_sese_info): Remove region->loops.
3947 (free_sese_info): Same.
3948 * sese.h (sese_contains_loop): Same.
3949 (build_sese_loop_nests): Remove.
3950 (sese_contains_loop): Remove.
3951
3952 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3953 Sebastian Pop <s.pop@samsung.com>
3954
3955 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
3956 loop_is_valid_in_scop.
3957 (scop_detection::harmful_stmt_in_region): Renamed
3958 harmful_loop_in_region.
3959 Call loop_is_valid_in_scop.
3960
3961 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3962 Sebastian Pop <s.pop@samsung.com>
3963
3964 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
3965 isl_ast_node_mark.
3966
3967 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3968 Sebastian Pop <s.pop@samsung.com>
3969
3970 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
3971 * graphite.h (struct poly_bb): Remove field is_reduction.
3972 (PBB_IS_REDUCTION): Remove.
3973
3974 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3975 Sebastian Pop <s.pop@samsung.com>
3976
3977 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
3978 (add_pdr_constraints): Same.
3979 (scop_get_reads): Same.
3980 (scop_get_must_writes): Same.
3981 (scop_get_may_writes): Same.
3982 (scop_get_original_schedule): Same.
3983 (extend_schedule): Same.
3984 (apply_schedule_on_deps): Same.
3985 (carries_deps): Same.
3986 (compute_deps): Same.
3987 (scop_get_dependences): Same.
3988 * graphite-isl-ast-to-gimple.c
3989 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
3990 * graphite-optimize-isl.c (get_schedule_for_band): Same.
3991 (get_schedule_for_band_list): Same.
3992 (get_schedule_map): Same.
3993 (apply_schedule_map_to_scop): Same.
3994 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3995 (build_loop_iteration_domains): Same.
3996 (add_condition_to_pbb): Same.
3997 (add_param_constraints): Same.
3998 (pdr_add_memory_accesses): Same.
3999 (pdr_add_data_dimensions): Same.
4000
4001 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
4002
4003 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
4004 requirements.
4005
4006 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
4007
4008 * common.opt (feliminate-dwarf2-dups): Replace references to
4009 "DWARF 2" with just "DWARF".
4010 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
4011 * doc/extend.texi: Likewise.
4012 * doc/cpp.texi: Likewise.
4013 * doc/invoke.texi: Likewise.
4014 (Option Summary): Add -gdwarf to list of Debugging Options.
4015 (Debugging Options): Document -gdwarf.
4016 * doc/contrib.texi: Spell "DWARF" like that.
4017
4018 2016-01-21 Jakub Jelinek <jakub@redhat.com>
4019
4020 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
4021 warning. Fix up formatting.
4022
4023 PR middle-end/67653
4024 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
4025 attempt to mark memory input operand addressable and
4026 call prepare_gimple_addressable in that case. Don't adjust
4027 input_location for diagnostics, use error_at instead.
4028
4029 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
4030
4031 * config/rs6000/ppc-auxv.h: New file.
4032 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
4033 (cpu_is): Likewise.
4034 (cpu_supports): Likewise.
4035 * config/rs6000/rs6000.c: include "ppc-auxv.h".
4036 (cpu_is_info): New variable.
4037 (cpu_supports_info): Likewise.
4038 (tcb_verification_symbol): Likewise.
4039 (cpu_builtin_p): Likewise.
4040 (cpu_expand_builtin): New function.
4041 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
4042 (rs6000_init_builtins): Likewise.
4043 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
4044 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
4045 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
4046 * configure: Regenerate.
4047 * config.in: Likewise.
4048 * doc/extend.texi (PowerPC Built-in Functions): Document
4049 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
4050
4051 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
4052
4053 PR target/68609
4054 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
4055 domain check.
4056 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
4057 for V4SFmode.
4058
4059 2016-01-20 Richard Henderson <rth@redhat.com>
4060
4061 PR bootstrap/69343
4062 PR bootstrap/69339
4063 PR tree-opt/68964
4064 Revert:
4065 * tree.c (tm_define_builtin): New.
4066 (find_tm_vector_type): New.
4067 (build_tm_vector_builtins): New.
4068 (build_common_builtin_nodes): Call it.
4069
4070 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
4071
4072 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
4073 (arm_fp_ok): Likewise.
4074 (arm_fp): Likewise.
4075 (arm_crypto): Likewise.
4076
4077 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
4078 Richard Biener <rguenther@suse.de>
4079
4080 PR tree-optimization/69328
4081 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
4082 vectors have same number of elements.
4083 (vectorizable_condition): Fix masked version recognition.
4084
4085 2016-01-20 Richard Biener <rguenther@suse.de>
4086
4087 PR tree-optimization/69345
4088 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
4089 (VN_INFO_PTR_INFO): Likewise.
4090 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
4091 info when it is equal between non-dominating SSA names.
4092 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4093 Make sure to look at original SSA infos.
4094
4095 2016-01-20 Jeff Law <law@redhat.com>
4096
4097 PR target/25114
4098 * config/m68k/predicates.md (pow2_m1_operand): New predicate
4099 extracted from ...
4100 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
4101 (pc_or_label_operand): New predicate.
4102 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
4103 tests for small integers that are 2^n - 1.
4104
4105 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
4106
4107 * doc/invoke.texi (Options Summary): Add '.' after @xref.
4108
4109 2016-01-19 Jeff Law <law@redhat.com>
4110
4111 PR middle-end/69347
4112 * tree-ssa-threadbackwards.c
4113 (fsm_find_control_statement_thread_paths): Do not try to lookup
4114 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
4115
4116 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4117
4118 * doc/lto.texi: Remove text that says only Gold has linker plugin
4119 support.
4120
4121 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
4122
4123 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
4124 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
4125 the DIE accordingly.
4126 (modified_type_die): Add REVERSE parameter and pass it recursively,
4127 as well as to base_type_die. Adjust presence check accordingly.
4128 (base_type_for_mode): Adjust call to modified_type_die.
4129 (add_type_attribute): Add REVERSE parameter and pass it to
4130 modified_type_die.
4131 (generic_parameter_die): Adjust call to add_type_attribute.
4132 (add_scalar_info): Likewise.
4133 (add_subscript_info): Likewise.
4134 (gen_array_type_die): Likewise.
4135 (gen_descr_array_type_die): Likewise.
4136 (gen_entry_point_die): Likewise.
4137 (gen_enumeration_type_die): Likewise.
4138 (gen_formal_parameter_die): Likewise.
4139 (gen_subprogram_die): Likewise.
4140 (gen_variable_die ): Likewise.
4141 (gen_const_die): Likewise.
4142 (gen_field_die): Likewise.
4143 (gen_pointer_type_die): Likewise.
4144 (gen_reference_type_die): Likewise.
4145 (gen_ptr_to_mbr_type_die): Likewise.
4146 (gen_inheritance_die): Likewise.
4147 (gen_subroutine_type_die): Likewise.
4148 (gen_typedef_die): Likewise.
4149 (force_type_die): Adjust call to modified_type_die.
4150
4151 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
4152
4153 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
4154 flow throughout the file. Fix broken link to Objective-C 2.0
4155 documentation.
4156 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
4157 errors.
4158
4159 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4160
4161 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
4162
4163 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4164
4165 PR ipa/66223
4166 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
4167 (maybe_record_node): Record cxa_pure_virtual as the only possible
4168 target if there are not ohter candidates.
4169 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
4170
4171 2016-01-19 Richard Biener <rguenther@suse.de>
4172
4173 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
4174 (get_memory_order): Likewise.
4175
4176 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
4177
4178 * tree-vect-stmts.c (vectorizable_store): Check
4179 rhs vectype.
4180
4181 2016-01-19 David Malcolm <dmalcolm@redhat.com>
4182
4183 PR jit/68446
4184 * gcc.c (driver::decode_argv): Add call to
4185 init_opts_obstack before init_options_struct.
4186 * opts.c (init_opts_obstack): Remove idempotency.
4187 (init_options_struct): Replace call to init_opts_obstack
4188 with a gcc_assert to verify that it has already been called.
4189 * toplev.c (toplev::main): Add call to init_opts_obstack before
4190 calls to init_options_struct.
4191 (toplev::finalize): Move cleanup of opts_obstack next to
4192 cleanup of save_decoded_options, clearing the latter, and
4193 save_decoded_options_count.
4194
4195 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4196
4197 PR target/69135
4198 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
4199 attribute to unconditional. Remove %? from output template.
4200
4201 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4202 Jiong Wang <jiong.wang@arm.com>
4203
4204 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
4205 generated from different expand order.
4206
4207 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4208
4209 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4210 Add support for CCMP costing.
4211
4212 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4213
4214 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
4215 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
4216 (fccmpe<mode>): Likewise.
4217 (fcmp): Rename to fcmp and globalize pattern.
4218 (fcmpe): Likewise.
4219 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
4220 (aarch64_gen_ccmp_next): Add FP support.
4221
4222 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4223
4224 * target.def (gen_ccmp_first): Update documentation.
4225 (gen_ccmp_next): Likewise.
4226 * doc/tm.texi (gen_ccmp_first): Update documentation.
4227 (gen_ccmp_next): Likewise.
4228 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
4229 expand_ccmp_expr_1. Improve comments.
4230 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
4231 (ccmp_ior<mode>): Remove pattern.
4232 (cmp<mode>): Remove expand.
4233 (cmp): Globalize pattern.
4234 (cstorecc4): Use cc_register.
4235 (mov<mode>cc): Remove ccmp_cc_register check.
4236 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
4237 Simplify after removal of CC_DNE/* modes.
4238 (aarch64_ccmp_mode_to_code): Remove.
4239 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
4240 In 'k' case use integer as condition.
4241 (aarch64_nzcv_codes): Remove inverted cases.
4242 (aarch64_code_to_ccmode): Remove.
4243 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
4244 comparison with CC register to be used in folowing CCMP/branch/CSEL.
4245 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
4246 pattern. Return the comparison with CC register. Invert conditions
4247 when bitcode is OR.
4248 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
4249 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
4250
4251 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4252
4253 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4254 instrumented_version.
4255
4256 2016-01-19 Richard Biener <rguenther@suse.de>
4257
4258 PR tree-optimization/69336
4259 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
4260 handled components with get_ref_base_and_extent.
4261 (equal_mem_array_ref_p): Adjust.
4262
4263 2016-01-19 Jakub Jelinek <jakub@redhat.com>
4264
4265 PR debug/65779
4266 * shrink-wrap.c: Include valtrack.h.
4267 (move_insn_for_shrink_wrap): Add DEBUG argument. If
4268 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
4269 in between insn and where it will be moved to. Call
4270 dead_debug_insert_temp.
4271 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
4272 first and dead_debug_local_finish at the end.
4273 For uses and defs bitmap, handle all regs in between REGNO and
4274 END_REGNO, not just the first one.
4275
4276 2016-01-19 Richard Biener <rguenther@suse.de>
4277
4278 PR tree-optimization/69352
4279 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
4280 (equal_mem_array_ref_p): Constrain size and max size properly.
4281 Compare the reverse flag.
4282
4283 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
4284
4285 * ira.c (ira): Update regstat data if we deleted insns.
4286
4287 2016-01-19 Jakub Jelinek <jakub@redhat.com>
4288
4289 PR rtl-optimization/68955
4290 PR rtl-optimization/64557
4291 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
4292 here. Fix up formatting.
4293 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
4294
4295 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4296
4297 PR lto/69133
4298 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
4299 assume that the node has body.
4300 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
4301 check.
4302
4303 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4304
4305 * lto-streamer-out.c (lto_output): Do not stream instrumentation
4306 thunks.
4307
4308 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4309
4310 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
4311 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
4312
4313 2016-01-19 Martin Jambor <mjambor@suse.cz>
4314 Martin Liska <mliska@suse.cz>
4315 Michael Matz <matz@suse.de>
4316
4317 * Makefile.in (OBJS): Add new source files.
4318 (GTFILES): Add hsa.c.
4319 * common.opt (disable_hsa): New variable.
4320 (-Whsa): New warning.
4321 * config.in (ENABLE_HSA): New.
4322 * configure.ac: Treat hsa differently from other accelerators.
4323 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
4324 $enable_offloading.
4325 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
4326 * doc/install.texi (Configuration): Document --with-hsa-runtime,
4327 --with-hsa-runtime-include, --with-hsa-runtime-lib and
4328 --with-hsa-kmt-lib.
4329 * doc/invoke.texi (-Whsa): Document.
4330 (hsa-gen-debug-stores): Likewise.
4331 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
4332 to invoke offload compiler for hsa acclerator.
4333 * opts.c (common_handle_option): Determine whether HSA offloading
4334 should be performed.
4335 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
4336 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
4337 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
4338 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
4339 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
4340 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
4341 GF_OMP_FOR_KIND_GRID_LOOP.
4342 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
4343 (pp_gimple_stmt_1): Likewise.
4344 * gimple-walk.c (walk_gimple_stmt): Likewise.
4345 * gimple.c (gimple_build_omp_grid_body): New function.
4346 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
4347 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
4348 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
4349 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
4350 GF_OMP_TEAMS_GRID_PHONY.
4351 (gimple_statement_omp_single_layout): Updated comments.
4352 (gimple_build_omp_grid_body): New function.
4353 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
4354 (gimple_omp_for_grid_phony): New function.
4355 (gimple_omp_for_set_grid_phony): Likewise.
4356 (gimple_omp_parallel_grid_phony): Likewise.
4357 (gimple_omp_parallel_set_grid_phony): Likewise.
4358 (gimple_omp_teams_grid_phony): Likewise.
4359 (gimple_omp_teams_set_grid_phony): Likewise.
4360 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
4361 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
4362 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
4363 (BUILT_IN_GOMP_TARGET): Updated type.
4364 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
4365 (adjust_for_condition): New function.
4366 (get_omp_for_step_from_incr): Likewise.
4367 (extract_omp_for_data): Moved parts to adjust_for_condition and
4368 get_omp_for_step_from_incr.
4369 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
4370 (fixup_child_record_type): Bail out if receiver_decl is NULL.
4371 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
4372 (scan_omp_parallel): Do not create child functions for phony
4373 constructs.
4374 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
4375 (scan_omp_1_op): Checking assert we are not remapping to
4376 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
4377 (parallel_needs_hsa_kernel_p): New function.
4378 (expand_parallel_call): Register apprpriate parallel child
4379 functions as HSA kernels.
4380 (grid_launch_attributes_trees): New type.
4381 (grid_attr_trees): New variable.
4382 (grid_create_kernel_launch_attr_types): New function.
4383 (grid_insert_store_range_dim): Likewise.
4384 (grid_get_kernel_launch_attributes): Likewise.
4385 (get_target_argument_identifier_1): Likewise.
4386 (get_target_argument_identifier): Likewise.
4387 (get_target_argument_value): Likewise.
4388 (push_target_argument_according_to_value): Likewise.
4389 (get_target_arguments): Likewise.
4390 (expand_omp_target): Call get_target_arguments instead of looking
4391 up for teams and thread limit.
4392 (grid_expand_omp_for_loop): New function.
4393 (grid_arg_decl_map): New type.
4394 (grid_remap_kernel_arg_accesses): New function.
4395 (grid_expand_target_kernel_body): New function.
4396 (expand_omp): Call it.
4397 (lower_omp_for): Do not emit phony constructs.
4398 (lower_omp_taskreg): Do not emit phony constructs but create for them
4399 a temporary variable receiver_decl.
4400 (lower_omp_taskreg): Do not emit phony constructs.
4401 (lower_omp_teams): Likewise.
4402 (lower_omp_grid_body): New function.
4403 (lower_omp_1): Call it.
4404 (grid_reg_assignment_to_local_var_p): New function.
4405 (grid_seq_only_contains_local_assignments): Likewise.
4406 (grid_find_single_omp_among_assignments_1): Likewise.
4407 (grid_find_single_omp_among_assignments): Likewise.
4408 (grid_find_ungridifiable_statement): Likewise.
4409 (grid_target_follows_gridifiable_pattern): Likewise.
4410 (grid_remap_prebody_decls): Likewise.
4411 (grid_copy_leading_local_assignments): Likewise.
4412 (grid_process_kernel_body_copy): Likewise.
4413 (grid_attempt_target_gridification): Likewise.
4414 (grid_gridify_all_targets_stmt): Likewise.
4415 (grid_gridify_all_targets): Likewise.
4416 (execute_lower_omp): Call grid_gridify_all_targets.
4417 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
4418 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
4419 (tree_omp_clause): Added union field dimension.
4420 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
4421 * tree.c (omp_clause_num_ops): Added number of arguments of
4422 OMP_CLAUSE__GRIDDIM_.
4423 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
4424 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
4425 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
4426 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
4427 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
4428 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
4429 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
4430 * tree-pass.h (make_pass_gen_hsail): Declare.
4431 (make_pass_ipa_hsa): Likewise.
4432 * ipa-hsa.c: New file.
4433 * lto-section-in.c (lto_section_name): Add hsa section name.
4434 * lto-streamer.h (lto_section_type): Add hsa section.
4435 * timevar.def (TV_IPA_HSA): New.
4436 * hsa-brig-format.h: New file.
4437 * hsa-brig.c: New file.
4438 * hsa-dump.c: Likewise.
4439 * hsa-gen.c: Likewise.
4440 * hsa.c: Likewise.
4441 * hsa.h: Likewise.
4442 * toplev.c (compile_file): Call hsa_output_brig.
4443 * hsa-regalloc.c: New file.
4444
4445 2016-01-18 Jeff Law <law@redhat.com>
4446
4447 PR tree-optimization/69320
4448 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
4449 ranged object, do nothing if the RHS constant is not [0..1].
4450 (optimize_stmt): Comparing a boolean ranged object against a
4451 constant outside [0..1] results in a compile-time constant.
4452
4453 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
4454 test.
4455
4456 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
4457
4458 * doc/invoke.texi (Invoking GCC): Add new section to menu.
4459 (Option Summary): Update to reflect new section and moved options.
4460 (C++ Dialect Options): Move -fstats to new section.
4461 (Debugging Options): Move all dump, statistics, and other GCC
4462 developer options to new section. Rewrite section introduction
4463 and re-order remaining options to put the more basic ones first.
4464 (Optimization Options): Move -fira-verbose and -flto-report* to
4465 new section.
4466 (Developer Options): New section incorporating moved options.
4467 * doc/cppopts.texi (-dM): Update cross-reference.
4468
4469 2016-01-18 Richard Henderson <rth@redhat.com>
4470
4471 PR target/69176
4472 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
4473 operands to pseudo only if CSE is expected. Split long immediate
4474 operands only after reload, and for the stack pointer.
4475 (*add<GPI>3_pluslong): Remove.
4476 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
4477 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
4478 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
4479 (*add<GPI>3 peepholes): New.
4480 (*add<GPI>3 splitters): New.
4481 * config/aarch64/constraints.md (Upl): New.
4482 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
4483
4484 2016-01-18 Richard Biener <rguenther@suse.de>
4485
4486 PR tree-optimization/69297
4487 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
4488 stmt at most once.
4489 (vect_bb_vectorization_profitable_p): Clear visited flag again.
4490
4491 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
4492
4493 PR middle-end/68542
4494 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
4495 of mixind vector and scalar types.
4496 (fold_relational_const): Add handling of vector
4497 comparison with boolean result.
4498 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
4499 comparison of vector operands with boolean result for EQ/NE only.
4500 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
4501 (verify_gimple_cond): Likewise.
4502 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
4503 valid type of VAL.
4504
4505 2016-01-18 Joseph Myers <joseph@codesourcery.com>
4506
4507 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
4508 !TARGET_OCTEON.
4509
4510 2016-01-18 Richard Biener <rguenther@suse.de>
4511
4512 PR middle-end/69308
4513 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
4514
4515 2016-01-18 Tom de Vries <tom@codesourcery.com>
4516
4517 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
4518
4519 2016-01-18 Tom de Vries <tom@codesourcery.com>
4520
4521 * omp-low.c (set_oacc_fn_attrib): Make extern.
4522 * omp-low.h (set_oacc_fn_attrib): Declare.
4523 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
4524 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
4525 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
4526 Add and handle function parameter oacc_kernels_p.
4527 (find_reduc_addr, get_omp_data_i_param): New function.
4528 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
4529 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
4530 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
4531 Calculate dominance info. Skip loops that are not in a kernels region
4532 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
4533 (pass_parallelize_loops::execute): Call parallelize_loops with
4534 oacc_kernels_p argument.
4535 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
4536 New member function.
4537 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
4538 * passes.def: Add argument to pass_parallelize_loops instantation.
4539
4540 2016-01-18 Tom de Vries <tom@codesourcery.com>
4541
4542 * tree-parloops.c (pass_parallelize_loops::execute): Allow
4543 pass_parallelize_loops to be run outside the loop pipeline.
4544
4545 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
4546
4547 * tree-scalar-evolution.c (follow_copies_to_constant): New.
4548 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
4549
4550 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
4551
4552 PR target/63679
4553 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
4554 using get_ref_base_and_extent.
4555 (equal_mem_array_ref_p): New.
4556 (hashable_expr_equal_p): Add call to previous.
4557
4558 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
4559
4560 PR target/63679
4561 * tree-sra.c (disqualified_constants, constant_decl_p): New.
4562 (sra_initialize): Allocate disqualified_constants.
4563 (sra_deinitialize): Free disqualified_constants.
4564 (disqualify_candidate): Update disqualified_constants when appropriate.
4565 (create_access): Scan for constant-pool entries as we go along.
4566 (scalarizable_type_p): Add check against type_contains_placeholder_p.
4567 (maybe_add_sra_candidate): Allow constant-pool entries.
4568 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
4569 (initialize_constant_pool_replacements): New.
4570 (sra_modify_assign): Avoid mangling assignments created by previous,
4571 and don't generate writes into constant pool.
4572 (sra_modify_function_body): Call initialize_constant_pool_replacements.
4573
4574 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4575
4576 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
4577 andnot instruction.
4578 (scalar_chain::convert_op): Likewise.
4579 * config/i386/i386.md (*andndi3_doubleword): New.
4580
4581 2016-01-18 Richard Biener <rguenther@suse.de>
4582
4583 PR tree-optimization/69170
4584 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
4585 building a vector from scalar results of a pattern stmt.
4586
4587 2016-01-18 Jakub Jelinek <jakub@redhat.com>
4588
4589 * haifa-sched.c (autopref_multipass_init): Work around
4590 -Wmaybe-uninitialized warning.
4591
4592 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4593
4594 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
4595 against the constant 0.
4596
4597 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4598
4599 PR tree-optimization/68799
4600 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
4601 look up phi candidates in the statement-candidate map.
4602 (phi_add_costs): Likewise.
4603 (record_phi_increments): Likewise.
4604 (phi_incr_cost): Likewise.
4605 (ncd_with_phi): Likewise.
4606 (all_phi_incrs_profitable): Likewise.
4607
4608 2016-01-17 Jakub Jelinek <jakub@redhat.com>
4609
4610 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
4611 -Wmaybe-uninitialized warning.
4612
4613 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
4614
4615 * doc/invoke.texi (Invoking GCC): Add new section to menu.
4616 (Option Summary): Update to reflect new section and moved options.
4617 (C++ Dialect Options): Move -fvtable-verify and related options.
4618 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
4619 and profiling-related options.
4620 (Optimization Options): Move profile generation options and
4621 -fstack-protector and related options.
4622 (Instrumentation Options): New section incorporating moved options.
4623 (Code Generation Options): Move -finstrument-functions and
4624 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
4625
4626 2016-01-16 Tom de Vries <tom@codesourcery.com>
4627
4628 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
4629
4630 2016-01-16 Tom de Vries <tom@codesourcery.com>
4631
4632 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
4633
4634 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
4635
4636 * hash-table.h (hash_table::empty): Turn into an inline wrapper
4637 that checks whether the table is already empty. Rename the
4638 original implementation to...
4639 (hash_table::empty_slot): ...this new private function.
4640
4641 2016-01-15 David Malcolm <dmalcolm@redhat.com>
4642
4643 PR diagnostic/68899
4644 * diagnostic-show-locus.c (layout::print_source_line): Move x
4645 offset of line until after call to
4646 get_line_width_without_trailing_whitespace.
4647
4648 2016-01-15 Jeff Law <law@redhat.com>
4649
4650 PR tree-optimization/69270
4651 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
4652 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
4653 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
4654 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
4655 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
4656 ssa_name_has_boolean_range and constant_boolean_node.
4657
4658 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
4659
4660 PR rtl-optimization/69030
4661 * lra-spills.c (remove_pseudos): Check nrefs and make the function
4662 returning bool.
4663 (spill_pseudos): Delete debug insn for dead pseudo.
4664 (lra_spill): Initiate spill_hard_reg and slots memory separately.
4665
4666 2016-01-15 Jiong Wang <jiong.wang@arm.com>
4667
4668 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
4669 New.
4670 (TYPES_UNOPUS): Likewise.
4671 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
4672 builtin type, from UNOP to UNOPUS.
4673 (lbtruncuv4sf): Likewise.
4674 (lbtruncuv2df): Likewise.
4675 (lrounduv2sf): Likewise.
4676 (lrounduv4sf): Likewise.
4677 (lrounduv2df): Likewise.
4678 (lroundusf): Likewise.
4679 (lroundusf): Likewise.
4680 (lceiluv2sf): Likewise.
4681 (lceiluv4sf): Likewise.
4682 (lceiluv2df): Likewise.
4683 (lceilusf): Likewise.
4684 (lceiludf): Likewise.
4685 (lflooruv2sf): Likewise.
4686 (lflooruv4sf): Likewise.
4687 (lflooruv2df): Likewise.
4688 (lfloorusf): Likewise.
4689 (lfloorudf): Likewise.
4690 (lfrintnuv2sf): Likewise.
4691 (lfrintnuv4sf): Likewise.
4692 (lfrintnuv2df): Likewise.
4693 (lfrintnusf): Likewise.
4694 (lfrintnudf): Likewise.
4695 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
4696 conversion.
4697 (vcvtq_u32_f32): Likewise.
4698 (vcvtq_u64_f64): Likewise.
4699 (vcvta_u32_f32): Likewise.
4700 (vcvtaq_u32_f32): Likewise.
4701 (vcvtaq_u64_f64): Likewise.
4702 (vcvtm_u32_f32): Likewise.
4703 (vcvtmq_u32_f32): Likewise.
4704 (vcvtmq_u64_f64): Likewise.
4705 (vcvtn_u32_f32): Likwise.
4706 (vcvtnq_u32_f32): Likewise.
4707 (vcvtnq_u64_f64): Likewise.
4708 (vcvtp_u32_f32): Likewise.
4709 (vcvtpq_u32_f32): Likewise.
4710 (vcvtpq_u64_f64): Likewise.
4711 (vcvtmd_u64_f64): Likewise.
4712 (vcvtms_u32_f32): Likewise.
4713 (vcvtad_u64_f64): Likewise.
4714 (vcvtas_u32_f32): Likewise.
4715 (vcvtnd_u64_f64): Likewise.
4716 (vcvtns_u32_f32): Likewise.
4717 (vcvtpd_u64_f64): Likewise.
4718 (vcvtps_u32_f32): Likewise.
4719
4720 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4721
4722 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
4723 CSEL of zero_extended registers.
4724
4725 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4726
4727 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
4728 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
4729
4730 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4731
4732 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
4733 false when argument string is not found in the attributes table
4734 at all.
4735
4736 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
4737
4738 PR target/68609
4739 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
4740 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
4741 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
4742 precision estimate.
4743
4744 2016-01-15 Richard Biener <rguenther@suse.de>
4745
4746 PR tree-optimization/66856
4747 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
4748 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
4749 (vect_create_new_slp_node): Increment stmt reference count.
4750 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
4751 an SLP tree before swapping operands.
4752 (vect_build_slp_tree): Likewise.
4753 (destroy_bb_vec_info): Free stmt info after SLP instances.
4754 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
4755 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
4756 (STMT_VINFO_NUM_SLP_USES): New macro.
4757
4758 2016-01-15 Richard Biener <rguenther@suse.de>
4759
4760 PR debug/69137
4761 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
4762 (add_linkage_name): ... here.
4763 (gen_typedef_die): Use add_linkage_name_raw instead of
4764 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
4765 if necessary.
4766
4767 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4768
4769 * gimplify.c (oacc_default_clause): Decode reference and pointer
4770 types for both kernels and parallel regions.
4771
4772 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
4773
4774 PR middle-end/69246
4775 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
4776
4777 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
4778
4779 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
4780 (convert_scalars_to_vector): Likewise.
4781
4782 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
4783
4784 * doc/extend.texi (Type Traits): Fix grammar.
4785
4786 2016-01-15 Martin Jambor <mjambor@suse.cz>
4787
4788 * tree-inline.c (remap_decl): Use existing dclarations if
4789 remapping a type and prevent_decl_creation_for_types.
4790 (replace_locals_stmt): Do an initial remapping of non-VLA typed
4791 decls first. Do real remapping with
4792 prevent_decl_creation_for_types set.
4793 * tree-inline.h (copy_body_data): New field
4794 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
4795 padding.
4796
4797 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
4798
4799 * config/s390/s390.opt (mmvcle): More verbose help text.
4800
4801 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
4802
4803 * config/s390/s390.opt: Add period to -mzvector option text.
4804
4805 2016-01-15 Richard Biener <rguenther@suse.de>
4806
4807 PR tree-optimization/68961
4808 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
4809 of invariants in stores again.
4810
4811 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
4812
4813 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
4814
4815 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
4816
4817 * config/i386/i386.c (ix86_expand_branch): Don't split
4818 DI mode xor instruction to SI mode.
4819
4820 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
4821
4822 PR ipa/68148
4823 * ipa-icf.c (sem_function::merge): Virtual functions may become
4824 reachable even if they address is not taken and there are no
4825 idrect calls.
4826
4827 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
4828
4829 * lto-streamer-out.c (subtract_estimated_size): New function.
4830 (get_symbol_initial_value): Use it.
4831
4832 2016-01-15 Christian Bruel <christian.bruel@st.com>
4833
4834 PR target/65837
4835 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
4836 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
4837 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
4838 use add_builtin_function_ext_scope instead of add_builtin_function.
4839 (neon_set_p, neon_crypto_set_p): Remove.
4840 (arm_init_builtins): Always call arm_init_neon_builtins and
4841 arm_init_crypto_builtins.
4842 (arm_expand_builtin): Check that builtins are allowed for the arch.
4843 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
4844 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
4845 arm_init_neon_builtins call.
4846
4847 2016-01-15 Richard Biener <rguenther@suse.de>
4848
4849 PR tree-optimization/69117
4850 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
4851 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
4852 of the leader conservatively.
4853 (free_scc_vn): Restore original SSA name infos.
4854
4855 2016-01-14 Jeff Law <law@redhat.com>
4856
4857 PR tree-optimization/69270
4858 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
4859 single bit of precision, verify it's also unsigned.
4860 (record_edge_info): Use constant_boolean_node rather than fold_convert
4861 to convert boolean_true/boolean_false to the right type.
4862
4863 2016-01-14 Richard Henderson <rth@redhat.com>
4864
4865 PR rtl-opt/69014
4866 * loop-doloop.c (record_reg_sets): New.
4867 (doloop_optimize): Reject the transform if the sequence
4868 clobbers registers live at the end of the loop block.
4869 (doloop_optimize_loops): Enable df_live if needed.
4870
4871 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4872
4873 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
4874 * gcc/config/rs6000/rs6000.c: Likewise.
4875 * gcc/config/rs6000/rs6000.h: Likewise.
4876 * gcc/config/rs6000/rs6000.md: Likewise.
4877 * gcc/doc/extend.texi: Likewsie.
4878
4879 2016-01-14 Jeff Law <law@redhat.com>
4880
4881 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
4882 typo.
4883
4884 2016-01-14 Richard Henderson <rth@redhat.com>
4885
4886 PR c/69272
4887 PR tree-opt/68964
4888 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
4889 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
4890 instead of builtin_decl_declared_p to test for declaration.
4891
4892 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
4893
4894 * doc/loop.texi (Loop Analysis and Representation): Document
4895 loop_depth function.
4896
4897 2016-01-14 Tom de Vries <tom@codesourcery.com>
4898
4899 PR tree-optimization/68773
4900 * omp-low.c (expand_omp_target): Don't set force_output.
4901 * varpool.c (varpool_node::get_create): Same.
4902 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
4903 offload_funcs with force_output.
4904
4905 2016-01-14 Jakub Jelinek <jakub@redhat.com>
4906
4907 PR debug/69244
4908 * lra-eliminations.c (move_plus_up): Don't change anything if either
4909 the outer or inner subreg mode is not MODE_INT.
4910 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
4911 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
4912
4913 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
4914
4915 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
4916 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
4917 reduc_uplus_@var{m}): Remove.
4918 * expr.c (expand_expr_real_2): Remove expansion path for
4919 reduc_[us](min|max|plus) optabs.
4920 * optabs-tree.c (scalar_reduc_to_vector): Remove.
4921 * optabs-tree.h (scalar_reduc_to_vector): Remove.
4922 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
4923 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
4924 * tree-vect-loop.c (vectorizable_reduction): Remove test for
4925 reduc_[us](min|max|plus) optabs.
4926
4927 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
4928
4929 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
4930 (reduc_plus_scal_v2sf): New.
4931 (reduc_smax_v2sf): Rename to...
4932 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
4933 (reduc_smin_v2sf): Rename to...
4934 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
4935
4936 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
4937
4938 * alias.c (compare_base_symbol_refs): New function.
4939 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
4940 it.
4941
4942 2016-01-14 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR middle-end/68146
4945 PR tree-optimization/69155
4946 * tree-complex.c: Include cfganal.h.
4947 (phis_to_revisit): New variable.
4948 (extract_component): Add phiarg_p argument. Assert that returned
4949 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
4950 (update_phi_components): Partly rewrite to use loop over real/imag
4951 components instead of code duplication. If extract_component returns
4952 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
4953 create_tmp_reg into the PHI node instead, and mention the phi triplet
4954 in phis_to_revisit.
4955 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
4956 in phis_to_revisit at the end.
4957
4958 2016-01-14 Richard Biener <rguenther@suse.de>
4959
4960 PR tree-optimization/68060
4961 * tree-vect-loop.c (vect_is_simple_reduction): Check the
4962 outer loop reduction is only used in the inner loop before
4963 detecting a double reduction.
4964
4965 2016-01-14 Jakub Jelinek <jakub@redhat.com>
4966
4967 PR target/68269
4968 * combine.c (expand_field_assignment): Punt if compute_mode is
4969 unsupported scalar mode.
4970
4971 2016-01-14 Richard Biener <rguenther@suse.de>
4972
4973 PR tree-optimization/66856
4974 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
4975 SLP node only if it built successfully.
4976 (vect_analyze_slp_instance): Adjust.
4977
4978 2016-01-14 Jeff Law <law@redhat.com>
4979
4980 PR tree-optimization/69270
4981 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
4982 (record_edge_info): Use it. Convert boolean_{true,false}_node
4983 to the type of op0.
4984
4985 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
4986
4987 PR ipa/66487
4988 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
4989 use block_ultimate_origin
4990 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
4991
4992 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
4993
4994 * doc/invoke.texi (Submodel Options): Rename section to
4995 "Machine-Dependent Options" to better reflect its content.
4996 Rewrite introductory text to remove archaic CPU names.
4997 Update references.
4998
4999 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
5000
5001 * doc/invoke.texi (Code Gen Options): Move section up in file,
5002 before target-specific options. Update menu and option summary
5003 to reflect the new section ordering.
5004
5005 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
5006
5007 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
5008 (C++ Dialect Options): Add cross-reference to -std option.
5009 * doc/standards.texi (C++ Language): Document C++14 support.
5010
5011 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5012
5013 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
5014 for pack/unpack functions for __ibm128.
5015 (PACK_IF): Likewise.
5016 (UNPACK_IF): Likewise.
5017
5018 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5019 support for __ibm128 pack/unpack functions.
5020 (rs6000_invalid_builtin): Likewise.
5021 (rs6000_init_builtins): Likewise.
5022 (rs6000_opt_masks): Likewise.
5023
5024 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
5025 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
5026 functions
5027 (RS6000_BTM_COMMON): Likewise.
5028
5029 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
5030 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
5031 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
5032 128-bit floating point. Add support for the double values to be
5033 in Altivec registers for TF/IF packing and unpacking, but restrict
5034 TD packing sub-fields to be FPR registers. Don't allow overlapped
5035 register support for packing. Allow pack inputs to be memory
5036 locations. Don't build generator functions for unpack<mode>_dm
5037 and unpack<mode>_nodm.
5038 (unpack<mode>_dm): Likewise.
5039 (unpack<mode>_nodm): Likewise.
5040 (pack<mode>): Likewise.
5041
5042 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
5043 built-in functions to pack/unpack explicit __ibm128 values.
5044 (__builtin_unpack_ibm128): Likewise.
5045
5046 * doc/extend.texi (PowerPC Built-in Functions): Document
5047 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
5048
5049 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
5050
5051 PR c/66208
5052 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
5053 Add new arg loc and pass it down as context.
5054 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
5055 to the location to use for the warning.
5056 (check_function_arguments): New arg loc. All callers changed. Pass
5057 it to check_function_nonnull.
5058 * c-common.h (check_function_arguments): Adjust declaration.
5059
5060 2016-01-13 Jakub Jelinek <jakub@redhat.com>
5061
5062 PR tree-optimization/69156
5063 * gimple.c (validate_type): Removed.
5064 (gimple_builtin_call_types_compatible_p): Use
5065 useless_type_conversion_p instead of validate_type.
5066 * value-prof.c (gimple_stringop_fixed_value): Fold
5067 icall_size to correct type.
5068
5069 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
5070
5071 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
5072 effects.
5073
5074 2016-01-13 Richard Henderson <rth@redhat.com>
5075
5076 PR tree-opt/68964
5077 * target.def (builtin_tm_load, builtin_tm_store): Remove.
5078 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
5079 (ix86_builtin_tm_store): Remove.
5080 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5081 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5082 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5083 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5084 * doc/tm.texi: Rebuild.
5085
5086 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
5087 (BUILT_IN_TM_MEMCPY_RTWN): New.
5088 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
5089 fallback from vector to integer helpers.
5090 (build_tm_load): Handle vector types directly, instead of
5091 via target hook.
5092 (build_tm_store): Likewise.
5093 (expand_assign_tm): Prepare for register types not handled by
5094 the above. Copy them to memory and use memcpy.
5095 * tree.c (tm_define_builtin): New.
5096 (find_tm_vector_type): New.
5097 (build_tm_vector_builtins): New.
5098 (build_common_builtin_nodes): Call it.
5099
5100 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
5101
5102 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
5103 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
5104
5105 2016-01-13 Tom de Vries <tom@codesourcery.com>
5106
5107 PR tree-optimization/69169
5108 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
5109 handled_struct_type param.
5110 (create_variable_info_for, intra_create_variable_infos): Call
5111 create_variable_info_for_1 with extra arg.
5112
5113 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
5114
5115 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
5116 and "armv8.1-a+crc" entries.
5117
5118 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
5119
5120 PR target/69228
5121 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
5122 Change first operand predicate from register_or_constm1_operand
5123 to register_operand.
5124 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
5125 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
5126 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
5127 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
5128 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
5129 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
5130 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
5131 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
5132 comparison with constm1_rtx from vec_prefetch_gen part.
5133
5134 2016-01-13 Richard Biener <rguenther@suse.de>
5135
5136 PR tree-optimization/69013
5137 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
5138 Exchange assert for a test.
5139
5140 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5141
5142 PR target/69247
5143 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
5144
5145 2016-01-13 Richard Biener <rguenther@suse.de>
5146
5147 PR tree-optimization/69242
5148 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
5149 assert with a check.
5150
5151 2016-01-13 Richard Biener <rguenther@suse.de>
5152
5153 PR tree-optimization/69186
5154 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5155 Properly guard vect_update_misalignment_for_peel call.
5156
5157 2016-01-12 Jeff Law <law@redhat.com>
5158
5159 PR tree-optimization/pr67755
5160 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
5161 "need_profile_correction".
5162 (thread_block_1): Initialize new field to false by default. If we
5163 have multiple thread paths through a common joiner to different
5164 final targets, then set new field to true.
5165 (compute_path_counts): Only do count adjustment when it's really
5166 needed.
5167
5168 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
5169
5170 * doc/invoke.texi (Spec Files): Move section down in file, past
5171 all command-line option descriptions.
5172
5173 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5174
5175 PR middle-end/54809
5176 * doc/gty.texi: Remove documentation of mark_hook.
5177 * gengtype.c (struct write_types_data): Remove code to support
5178 mark_hook attribute.
5179 (walk_type): Likewise.
5180 (write_func_for_structure): Likewise.
5181
5182 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
5183
5184 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
5185 Directory Options, and -specs= to Overall Options.
5186 (Overall Options): Adjust similarly. Reorder to group related
5187 options together. Make -specs= cross-reference the spec file details.
5188 (Directory Options): Adjust similarly.
5189
5190 2016-01-12 Jeff Law <law@redhat.com>
5191
5192 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
5193
5194 2016-01-12 Olivier Hainque <hainque@adacore.com>
5195
5196 * gcc.c (spec_undefvar_allowed): New global.
5197 (process_command): Set to true when running for --version or --help,
5198 alone or together.
5199 (getenv_spec_function): When the variable is not defined, use the
5200 variable name as the variable value if we're allowed not to issue
5201 a fatal error.
5202
5203 2016-01-12 Bin Cheng <bin.cheng@arm.com>
5204
5205 PR tree-optimization/68911
5206 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
5207 information computed for expression "init + nit * step".
5208
5209 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
5210
5211 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
5212 about name of GCC executable. Remove deleted node from menu.
5213 (Directory Options) <-B>: Remove cross-reference to deleted node.
5214 (Target Options): Delete section.
5215
5216 2016-01-12 Christian Bruel <christian.bruel@st.com>
5217
5218 PR target/69180
5219 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
5220 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
5221
5222 2016-01-12 Jakub Jelinek <jakub@redhat.com>
5223
5224 PR target/69198
5225 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
5226 aligned_mem is properly set for AVX512-VL floating point masked
5227 stores.
5228
5229 PR target/69175
5230 * ifcvt.c (cond_exec_process_if_block): When removing the last
5231 insn from then_bb, remove also any possible barriers that follow it.
5232
5233 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
5234
5235 PR target/68456
5236 PR target/69226
5237 * config/i386/iamcu.h (SIZE_TYPE): New macro.
5238 (PTRDIFF_TYPE): Likewise.
5239 (WCHAR_TYPE): Likewise.
5240 (WCHAR_TYPE_SIZE): Likewise.
5241 (STDINT_LONG32): Likewise.
5242
5243 2016-01-12 Richard Biener <rguenther@suse.de>
5244
5245 PR tree-optimization/69053
5246 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
5247 convert initial value for cond reductions.
5248
5249 2016-01-12 Richard Biener <rguenther@suse.de>
5250
5251 PR tree-optimization/69007
5252 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
5253 widen_sum after dot_prod and sad.
5254
5255 2016-01-12 Richard Biener <rguenther@suse.de>
5256
5257 PR tree-optimization/69168
5258 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
5259 pattern stmt SLP type.
5260 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
5261 end up unused so cope with that case.
5262
5263 2016-01-12 Richard Biener <rguenther@suse.de>
5264
5265 PR tree-optimization/69157
5266 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5267 stmts def type only during analyze phase.
5268 (vectorizable_call): Likewise.
5269 (vectorizable_simd_clone_call): Likewise.
5270 (vectorizable_conversion): Likewise.
5271 (vectorizable_assignment): Likewise.
5272 (vectorizable_shift): Likewise.
5273 (vectorizable_operation): Likewise.
5274 (vectorizable_store): Likewise.
5275 (vectorizable_load): Likewise.
5276
5277 2016-01-12 Richard Biener <rguenther@suse.de>
5278
5279 PR tree-optimization/69174
5280 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
5281 space.
5282 (vectorizable_load): Properly compute the number of loads needed
5283 for permuted strided SLP loads and do not spuriously assign
5284 to SLP_TREE_VEC_STMTS.
5285
5286 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
5287
5288 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
5289 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
5290 (MD_EXEC_PREFIX): Remove.
5291 (MD_STARTFILE_PREFIX) Removee.
5292 (FILE_NAME_ABSOLUTE_P): Remove.
5293 (CPP_SPEC): Do not read macros from sys/version.h.
5294 (LINK_COMMAND_SPEC): Remove.
5295 (LOCAL_INCLUDE_DIR): Remove.
5296 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
5297 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
5298 (POST_LINK_SPEC): Define to invoke stubify after linker
5299 (LIBSTDCXX): Remove define
5300 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
5301 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
5302 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
5303 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
5304 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
5305 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
5306 (i386_djgpp_asm_named_section): Add propotype of new procedure
5307
5308 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
5309 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
5310 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
5311 in config/i386/djgpp.h).
5312 (STANDARD_STARTFILE_PREFIX_2): Define identical to
5313 STANDARD_STARTFILE_PREFIX_1.
5314 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
5315 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
5316 installation errors.
5317 (MAX_OFILE_ALIGNMENT): Define to 128.
5318 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
5319
5320 * config/i386/djgpp.c: New file. Add implementation of
5321 i386_djgpp_asm_named_section.
5322
5323 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
5324
5325 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
5326 Add rule for building djgpp.o.
5327
5328 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5329
5330 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
5331 (rtx_is_swappable_p): Reductions are swappable.
5332 (insn_is_swappable_p): V2DF reductions are swappable.
5333
5334 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
5335
5336 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
5337 reloads for other unsupported memory operands.
5338
5339 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5340 Jim Wilson <jim.wilson@linaro.org>
5341
5342 PR target/69194
5343 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
5344 copy_to_mode_reg instead of force_reg.
5345
5346 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
5347
5348 PR target/69225
5349 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
5350 TARGET_80387 is true.
5351
5352 2016-01-11 Jakub Jelinek <jakub@redhat.com>
5353
5354 PR target/69071
5355 * lra-eliminations.c (move_plus_up): Only move plus up
5356 if subreg of the constant can be simplified into constant
5357 and use the simplified subreg of the constant instead of
5358 the original constant.
5359
5360 * fold-const.c (fold_convertible_p): Don't return true
5361 for conversion of VECTOR_TYPE to same sized integral type.
5362 (fold_convert_loc): Fix up formatting. Fold conversion of
5363 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
5364 instead of NOP_EXPR.
5365
5366 PR tree-optimization/69214
5367 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
5368 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5369 Formatting fix.
5370
5371 PR tree-optimization/69207
5372 * tree-vect-slp.c (vect_get_constant_vectors): For
5373 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
5374 fold_convertible_p to vector_type's element type, and always
5375 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
5376
5377 2016-01-11 Richard Biener <rguenther@suse.de>
5378
5379 PR tree-optimization/69173
5380 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
5381 fixup the cycle if all stmts are in a pattern.
5382
5383 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
5384
5385 PR middle-end/68999
5386 * alias.c (base_alias_check): Move check for addresses with
5387 alignment ANDs before the call for compare_base_decls.
5388 (memrefs_conflict_p): Return -1 for different decls
5389 that went through alignment adjustments.
5390
5391 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5392
5393 PR rtl-optimization/68796
5394 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
5395 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
5396 and QImode comparisons against zero with CC_NZmode.
5397 * config/aarch64/iterators.md (short_mask): New mode_attr.
5398
5399 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
5400
5401 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
5402 (<avx512>_store<mode>_mask): Likewise.
5403
5404 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
5405 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5406
5407 PR rtl-optimization/68841
5408 * ifcvt.c (struct noce_if_info): Add orig_x field.
5409 (bbs_ok_for_cmove_arith): Add to_rename parameter.
5410 Don't record conflicts on to_rename if it's present.
5411 Allow memory destinations in sets.
5412 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
5413 blocks, passing orig_x to the checks.
5414 (noce_process_if_block): Set if_info->orig_x appropriately.
5415
5416 2016-01-11 Tom de Vries <tom@codesourcery.com>
5417
5418 PR tree-optimization/69069
5419 * tree-parloops.c (create_parallel_loop): Add missing phi args.
5420
5421 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
5422
5423 PR rtl-optimization/68920
5424 * config/i386/i386.c (ix86_option_override_internal): Restrict number
5425 of conditional moves for RTL if-conversion to 1 for
5426 TARGET_ONE_IF_CONV_INSN.
5427 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
5428 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
5429 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
5430 parameter to restirct number of conditional moves for
5431 RTL if-conversion.
5432 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
5433 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
5434 conditionl moves.
5435
5436 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
5437
5438 PR bootstrap/69123
5439 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
5440 onepart vars. Fix typo in comment. Fix reversed condition in
5441 unshare test.
5442 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
5443
5444 PR bootstrap/69123
5445 * var-tracking.c (dump_onepart_variable_differences): New.
5446 (dataflow_set_different): If a detailed dump is requested,
5447 delay early returns and dump differences between onepart
5448 variables present before and after, and added variables.
5449
5450 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
5451
5452 PR target/69010
5453 * expr.c (expand_expr_real_1): For boolean vector constants
5454 with a scalar mode use const_scalar_mask_from_tree.
5455 (const_scalar_mask_from_tree): New.
5456 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
5457 assigned to a mask type to handle constants.
5458
5459 2016-01-11 Martin Jambor <mjambor@suse.cz>
5460
5461 PR ipa/69044
5462 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
5463 useless parameters if we cannot change function signature.
5464
5465 2016-01-11 Martin Jambor <mjambor@suse.cz>
5466
5467 PR ipa/66616
5468 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
5469 flag.
5470
5471 2016-01-11 Tom de Vries <tom@codesourcery.com>
5472
5473 PR tree-optimization/69109
5474 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
5475 latch with phi.
5476
5477 2016-01-11 Tom de Vries <tom@codesourcery.com>
5478
5479 PR tree-optimization/69108
5480 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
5481 res is not used in a phi.
5482
5483 2016-01-11 Yury Gribov <y.gribov@samsung.com>
5484
5485 PR 67425
5486 * common.opt (frandom-seed): Fix parameter name.
5487 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
5488
5489 2016-01-11 Tom de Vries <tom@codesourcery.com>
5490
5491 PR tree-optimization/69058
5492 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
5493 not supported.
5494
5495 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
5496
5497 * config/arc/arc.opt (mdiv-rem): Add period to the end.
5498 (mcode-density): Likewise.
5499
5500 2016-01-10 Tom de Vries <tom@codesourcery.com>
5501
5502 PR tree-optimization/69062
5503 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
5504 (parallelize_loops): Don't paralelize loop that has phi with address
5505 arg.
5506
5507 2016-01-10 Tom de Vries <tom@codesourcery.com>
5508
5509 PR tree-optimization/69039
5510 * tree-parloops.c (try_create_reduction_list): Only allow single exit
5511 phi for reduction.
5512
5513 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
5514
5515 PR middle-end/68743
5516 * match.pd: Require target has function_c99_misc before doing
5517 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
5518
5519 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
5520
5521 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
5522 use GMPINC.
5523 * configure: Regenerate.
5524
5525 2016-01-09 Jakub Jelinek <jakub@redhat.com>
5526
5527 PR middle-end/50865
5528 PR tree-optimization/69097
5529 * fold-const.h (expr_not_equal_to): New prototype.
5530 * fold-const.c: Include stringpool.h and tree-ssanames.h.
5531 (expr_not_equal_to): New function.
5532 * match.pd (X % -Y is the same as X % Y): Don't optimize
5533 unless X is known not to be equal to minimum or Y is known
5534 not to be equal to -1.
5535 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
5536 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
5537 (simplify_stmt_using_ranges): Adjust caller.
5538 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
5539 substitute_and_fold.
5540
5541 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
5542
5543 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
5544 w/o DECL_NAME.
5545
5546 2016-01-08 Jakub Jelinek <jakub@redhat.com>
5547
5548 PR tree-optimization/69167
5549 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
5550 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
5551 ops[0] comparison.
5552 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
5553
5554 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
5555 Richard Biener <rguenther@suse.de>
5556
5557 PR tree-optimization/68707
5558 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
5559 instances that can be handled via vect_load_lanes.
5560
5561 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
5562
5563 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
5564 if we can't determine address equivalence.
5565 * alias.c (compare_base_decl): Update for changed return value of
5566 symtab_node::equal_address_to.
5567
5568 2016-01-08 Jason Merrill <jason@redhat.com>
5569
5570 PR c++/68983
5571 PR c++/67557
5572 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
5573 * expr.c (store_field): Not here.
5574 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
5575 call with TREE_ADDRESSABLE type.
5576 * tree-cfg.c (verify_gimple_call): Adjust.
5577
5578 2016-01-08 Olivier Hainque <hainque@adacore.com>
5579
5580 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
5581 libc_internal.
5582
5583 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
5584
5585 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
5586 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
5587 (reduc_smin_v2sf): Rename to...
5588 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
5589 (reduc_splus_v2sf): Rename to...
5590 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
5591
5592 2016-01-08 Jakub Jelinek <jakub@redhat.com>
5593
5594 PR tree-optimization/69162
5595 * gimplify.c (gimplify_va_arg_expr): Encode original type of
5596 valist argument in another argument.
5597 (gimplify_modify_expr): Adjust for the above change. Cleanup.
5598 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
5599 to determine the va_list type, build a MEM_REF instead of
5600 build_fold_indirect_ref.
5601
5602 PR tree-optimization/69172
5603 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
5604 gimple_build.
5605
5606 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
5607
5608 PR tree-optimization/67781
5609 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5610 and cmpnop in two steps: first the ones not accessed in original
5611 gimple expression in a endian independent way and then the ones not
5612 accessed in the final result in an endian-specific way.
5613
5614 2016-01-08 Jakub Jelinek <jakub@redhat.com>
5615
5616 PR tree-optimization/69083
5617 * tree-vect-slp.c (vect_get_constant_vectors): For
5618 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
5619 element type. If op is fold_convertible_p to vector_type's element
5620 type, use NOP_EXPR instead of VCE.
5621
5622 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
5623
5624 PR rtl-optimization/67778
5625 PR rtl-optimization/68634
5626 PR rtl-optimization/68909
5627 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
5628 block from the stack until done with it. Remove a superfluous
5629 bitmap set. Remove a superfluous bitmap test.
5630
5631 2016-01-07 Martin Sebor <msebor@redhat.com>
5632
5633 PR c/68966
5634 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
5635 constraint on the type of arguments.
5636
5637 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
5638
5639 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
5640 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
5641 unaligned_access on the gcc_options set.
5642 * config/arm/arm.c (arm_option_override_internal): Use
5643 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
5644
5645 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
5646
5647 PR target/69140
5648 * config/i386/i386.c (ix86_frame_pointer_required): Enable
5649 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
5650
5651 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
5652
5653 Revert
5654 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
5655
5656 PR target/69140
5657 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5658 depending on frame_pointer_needed before remaining integer and SSE
5659 registers are saved.
5660
5661 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
5662
5663 PR 1078
5664 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
5665
5666 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5667
5668 PR target/69171
5669 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
5670 Use the "xBm" constraint.
5671 (float<sseintvecmodelower><mode>2<mask_name><round_name):
5672 Likewise.
5673 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
5674 (sse_cvtsi2ssq<round_name>): Likewise.
5675 (sse_cvtss2si<round_name>): Likewise.
5676 (sse_cvtss2siq<round_name>): Likewise.
5677 (sse2_cvtsi2sdq<round_name>): Likewise.
5678 (sse2_cvtsd2si<round_name>): Likewise.
5679 (sse2_cvtsd2siq<round_name>): Likewise.
5680 * config/i386/subst.md (round_nimm_scalar_predicate): New
5681 predicate.
5682
5683 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
5684
5685 PR middle-end/67639
5686 * varasm.c (make_decl_rtl): Mark invalid register vars as
5687 DECL_EXTERNAL.
5688
5689 PR rtl-optimization/66206
5690 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
5691 All callers changed.
5692
5693 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5694
5695 PR tree-optimization/69141
5696 * tree-ssa-pre.c: Include langhooks.h.
5697 (eliminate_dom_walker::before_dom_children): Use
5698 lang_hooks.decl_printable_name instead of
5699 cgraph_node::get ()->name ().
5700
5701 PR middle-end/68960
5702 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
5703 it and DECL_ALIGN too.
5704
5705 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
5706
5707 * config/mips/mips-ftypes.def: Sort to lexicographical order.
5708
5709 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
5710
5711 PR target/69140
5712 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5713 depending on frame_pointer_needed before remaining integer and SSE
5714 registers are saved.
5715
5716 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5717
5718 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
5719 mode iterator with VSX_M2.
5720 (*p9_vecstore_<mode>): Likewise.
5721 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
5722 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
5723 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
5724 (define_split for VSX_LE128 stores): Likewise.
5725 (define_peephole2 for TImode LE swaps): Likewise.
5726 (define_split for VSX_LE128 post-reload stores): Likewise.
5727
5728 2016-01-06 Marek Polacek <polacek@redhat.com>
5729
5730 PR sanitizer/69099
5731 * convert.c (convert_to_integer_1): Adjust call to
5732 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
5733 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
5734 EXPR instead of ARG.
5735 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
5736
5737 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
5738
5739 PR 1078
5740 * doc/extend.texi (RL78 Variable Attributes): New section.
5741
5742 2016-01-05 Marek Polacek <polacek@redhat.com>
5743
5744 PR c/69104
5745 * builtins.c (get_memmodel): Use expansion point location rather than
5746 the input location. Call warning_at rather than warning.
5747 (expand_builtin_atomic_compare_exchange): Likewise.
5748 (expand_builtin_atomic_load): Likewise.
5749 (expand_builtin_atomic_store): Likewise.
5750 (expand_builtin_atomic_clear): Likewise.
5751
5752 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
5753
5754 PR target/68991
5755 * config/i386/i386.c (ix86_expand_vector_logical_operator):
5756 Replace nonimmediate_operand with vector_operand.
5757 * config/i386/predicates.md (vector_operand): New predicate.
5758 (general_vector_operand): Replace nonimmediate_operand with
5759 vector_operand.
5760 * config/i386/sse.md: Replace nonimmediate_operand with
5761 vector_operand and m constraint with Bm constraint on SSE
5762 patterns with 16-byte memory operand.
5763 * config/i386/subst.md (round_nimm_predicate): Replace
5764 nonimmediate_operand with vector_operand.
5765 (round_saeonly_nimm_predicate): Likewise.
5766 (round_saeonly_nimm_scalar_predicate): New.
5767
5768 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
5769
5770 PR target/68991
5771 * config/i386/constraints.md (Bm): New constraint.
5772 * config/i386/predicates.md (vector_memory_operand): New
5773 predicate.
5774 * config/i386/sse.md: Replace xm with xBm in plusminus and
5775 any_logic patterns.
5776
5777 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
5778
5779 PR 1078
5780 * doc/extend.texi (V850 Function Attributes): New section.
5781 (V850 Variable Attributes): New section.
5782
5783 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
5784
5785 PR 1078
5786 * doc/extend.texi (MicroBlaze Function Attributes): Document
5787 interrupt_handler and fast_interrupt attributes.
5788
5789 2016-01-05 Sergei Trofimovich <siarheit@google.com>
5790
5791 PR other/60465
5792 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
5793 for local symbolic operands.
5794 * config/ia64/predicates.md (local_symbolic_operand64): New
5795 predicate.
5796
5797 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5798
5799 PR rtl-optimization/68651
5800 * combine.c (combine_simplify_rtx): Canonicalize x + x into
5801 x << 1.
5802
5803 2016-01-05 Nathan Sidwell <nathan@acm.org>
5804
5805 * alias.c (compare_base_decls): Use symtab_node::get.
5806
5807 2016-01-05 Nick Clifton <nickc@redhat.com>
5808
5809 PR target/68770
5810 * ira-costs.c (copy_cost): Initialise the t_icode field of the
5811 secondary_reload_info structure.
5812
5813 PR target/66655
5814 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
5815 decls if weak support is available.
5816
5817 2016-01-04 Martin Sebor <msebor@redhat.com>
5818
5819 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
5820
5821 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5822
5823 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5824 OPTION_MASK_P9_DFORM.
5825
5826 * config/rs6000/constraints.md (wo constraint): New constraint for
5827 ISA 3.0 (power9).
5828
5829 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
5830 for wo constraint.
5831 (rs6000_init_hard_regno_mode_ok): Likewise.
5832
5833 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
5834 wo constraint.
5835
5836 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
5837 expanders not to have constraints. Add support for ISA 3.0 xxperm
5838 instruction. Add support for fusing xxlor with xxperm.
5839 (altivec_vperm_<mode>_internal): Likewise.
5840 (altivec_vperm_v8hiv16qi): Likewise.
5841 (altivec_vperm_<mode>v16q): Likewise.
5842 (altivec_vperm_<mode>_uns): Likewise.
5843 (vperm_v8hiv4si): Likewise.
5844 (vperm_v16qiv8hi): Likewise.
5845
5846 * doc/md.texi (RS/6000 constraints): Document wo constraint.
5847
5848 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5849
5850 Update copyright years.
5851
5852 * gcc.c (process_command): Update copyright notice dates.
5853 * gcov-dump.c (print_version): Ditto.
5854 * gcov.c (print_version): Ditto.
5855 * gcov-tool.c (print_version): Ditto.
5856 * gengtype.c (create_file): Ditto.
5857 * doc/cpp.texi: Bump @copying's copyright year.
5858 * doc/cppinternals.texi: Ditto.
5859 * doc/gcc.texi: Ditto.
5860 * doc/gccint.texi: Ditto.
5861 * doc/gcov.texi: Ditto.
5862 * doc/install.texi: Ditto.
5863 * doc/invoke.texi: Ditto.
5864
5865 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
5866
5867 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
5868 modes larger than TImode as TImode if NEON is not enabled.
5869
5870 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
5871
5872 PR target/69100
5873 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
5874 mode for %f0-%f31 only if TARGET_FPU.
5875
5876 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
5877
5878 PR target/69072
5879 * config/sparc/sparc.c (scan_record_type): Take into account subfields
5880 to compute the PACKED_P predicate.
5881 (function_arg_record_value): Minor tweaks.
5882
5883 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5884
5885 * doc/install.texi (--with-multilib-list): Describe the meaning of the
5886 option for arm*-*-* targets.
5887
5888 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
5889
5890 * doc/extend.texi (Common Function Attributes): Move docs for
5891 MSP430-specific attributes to....
5892 (MSP430 Function Attributes): ...here. Delete the redundant
5893 entries and copy-edit the remaining text.
5894 (MSP430 Variable Attributes): Use uniform format for index
5895 entries and add a cross-reference to the corresponding function
5896 attribute docs.
5897
5898 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
5899
5900 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
5901 -finite-math typo.
5902 (x86 Options): Likewise.
5903
5904 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
5905
5906 PR 1078
5907
5908 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
5909 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
5910 to corresponding attribute.
5911
5912 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
5913
5914 * doc/extend.texi (Common Function Attributes) <noplt>: Move
5915 to correct alphabetization of table. Copy-edit and correct
5916 markup.
5917 <stack_protect>: Likewise.
5918 <target_clones>: Likewise.
5919 <simd>: Likewise.
5920 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
5921 Correct punctuation.
5922 (Code Gen Options) <-fno-plt>: Copy-edit.
5923
5924 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5925
5926 PR target/68917
5927 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
5928 SI values. Explicitly convert SI to DI and vice-versa.
5929
5930 2016-01-01 Jakub Jelinek <jakub@redhat.com>
5931
5932 PR tree-optimization/69070
5933 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
5934 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
5935
5936 PR sanitizer/69055
5937 * ubsan.c (ubsan_instrument_float_cast): Call
5938 initialize_sanitizer_builtins.
5939
5940 PR target/69015
5941 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
5942 \f
5943 Copyright (C) 2016 Free Software Foundation, Inc.
5944
5945 Copying and distribution of this file, with or without modification,
5946 are permitted in any medium without royalty provided the copyright
5947 notice and this notice are preserved.