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