]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Merge BUILT_IN_GOACC_HOST_DATA into BUILT_IN_GOACC_DATA_START
[thirdparty/gcc.git] / gcc / ChangeLog
1 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
2
3 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
4 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
5 instead.
6
7 2016-02-02 Richard Biener <rguenther@suse.de>
8
9 PR tree-optimization/69606
10 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
11 info on the result before moving a stmt.
12
13 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
14
15 PR middle-end/68542
16 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
17 branch with vector comparison.
18 * config/i386/sse.md (VI48_AVX): New mode iterator.
19 (define_expand "cbranch<mode>4): Add support for conditional branch
20 with vector comparison.
21 * tree-vect-loop.c (optimize_mask_stores): New function.
22 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23 has_mask_store field of vect_info.
24 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
25 vectorized loops having masked stores after vec_info destroy.
26 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
27 correspondent macros.
28 (optimize_mask_stores): Add prototype.
29
30 2016-02-02 Alan Modra <amodra@gmail.com>
31
32 PR target/69548
33 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
34 allow subregs.
35
36 2016-02-02 Alan Modra <amodra@gmail.com>
37
38 PR target/68662
39 * config/rs6000/rs6000.c (need_toc_init): New var, set it
40 whenever toc_label_name used.
41 (rs6000_file_start): Don't set up toc section here,
42 (rs6000_output_function_epilogue): do so here instead,
43 (rs6000_xcoff_file_start): and here.
44 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
45 (load_toc_aix_di): Likewise.
46
47 2016-02-01 Jakub Jelinek <jakub@redhat.com>
48
49 PR rtl-optimization/69592
50 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
51 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
52 (num_sign_bit_copies_binary_arith_p): New inline function.
53 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
54
55 2016-02-01 Jeff Law <law@redhat.com>
56
57 PR tree-optimization/69580
58 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
59 * tree-ssa-threadbackward.c
60 (fsm_find_control_statement_thread_paths): Do not try to walk
61 through large PHI nodes.
62
63 2016-02-01 Jakub Jelinek <jakub@redhat.com>
64
65 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
66 when count is incremented above limit, don't analyze further
67 insns afterwards.
68
69 * omp-low.c (oacc_parse_default_dims): Avoid
70 -Wsign-compare warning, make sure value fits into int
71 rather than just unsigned int.
72
73 2016-02-01 Bin Cheng <bin.cheng@arm.com>
74
75 PR tree-optimization/67921
76 * fold-const.c (split_tree): New parameters. Convert pointer
77 type variable part to proper type before negating.
78 (fold_binary_loc): Pass new arguments to split_tree.
79
80 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
81
82 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
83 (nvptx_goacc_validate_dims): Extend to handle global defaults.
84 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
85 * doc/tm.texti: Rebuilt.
86 * doc/invoke.texi (fopenacc-dim): Document.
87 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
88 (append_compiler_options): Likewise.
89 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
90 (oacc_parse_default_dims): New.
91 (oacc_validate_dims): Add USED arg. Select non-unity default when
92 possible.
93 (oacc_loop_fixed_partitions): Return mask of used partitions.
94 (oacc_loop_auto_partitions): Emit dump info.
95 (oacc_loop_partition): Return mask of used partitions.
96 (execute_oacc_device_lower): Parse default dimension arg. Adjust
97 loop partitioning and validation calls.
98
99 2016-02-01 Richard Biener <rguenther@suse.de>
100
101 PR middle-end/69556
102 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
103
104 2016-02-01 Richard Biener <rguenther@suse.de>
105
106 PR tree-optimization/69574
107 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
108 of asserting return chrec_dont_know.
109
110 2016-02-01 Martin Liska <mliska@suse.cz>
111
112 * mem-stats-traits.h: Add copyright header.
113 * mem-stats.h: Likewise.
114
115 2016-02-01 Richard Biener <rguenther@suse.de>
116
117 PR tree-optimization/69579
118 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
119 Do not propagate through abnormal PHI results.
120
121 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
122
123 * postreload.c (reload_cse_simplify): Remove dead code.
124
125 2016-02-01 Jakub Jelinek <jakub@redhat.com>
126
127 PR rtl-optimization/69570
128 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
129 if there is more than one set, not if there is a single set.
130
131 2016-02-01 Richard Henderson <rth@redhat.com>
132
133 PR rtl-opt/69535
134 * combine.c (make_compound_operation): When looking through a
135 subreg, make sure to re-extend to the width of the outer mode.
136
137 2016-01-30 Jakub Jelinek <jakub@redhat.com>
138
139 PR tree-optimization/69546
140 * wide-int.cc (wi::divmod_internal): For unsigned division
141 where both operands fit into uhwi, if o1 is 1 and o0 has
142 msb set, if divident_prec is larger than bits per hwi,
143 clear another quotient word and return 2 instead of 1.
144 Similarly for remainder with msb in HWI set, if dividend_prec
145 is larger than bits per hwi.
146
147 2016-01-29 Martin Jambor <mjambor@suse.cz>
148
149 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
150 Use short lowercase names.
151 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
152 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
153 acq_rel one. Protect warning agains segfaults if
154 get_memory_order_name returns NULL.
155 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
156 with release semantics. Do not warn if get_memory_order already did.
157 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
158 semantics. Fix check for relaxed or acquire semantics. Do not warn
159 if get_memory_order already did.
160
161 2016-01-29 Sebastian Pop <s.pop@samsung.com>
162
163 * doc/install.texi: Document that isl-0.16 is supported.
164
165 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
166
167 PR target/69299
168 * config/i386/constraints.md (Bm): Describe as special memory
169 constraint.
170 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
171 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
172 * genpreds.c (struct constraint_data): Add is_special_memory.
173 (have_special_memory_constraints, special_memory_start): New
174 static vars.
175 (special_memory_end): Ditto.
176 (add_constraint): Add new arg is_special_memory. Add code to
177 process its true value. Update have_special_memory_constraints.
178 (process_define_constraint): Pass the new arg.
179 (process_define_register_constraint): Ditto.
180 (choose_enum_order): Process special memory.
181 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
182 function insn_extra_special_memory_constraint.
183 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
184 * gensupport.c (process_rtx): Process
185 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
186 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
187 * ira-lives.c (single_reg_class): Use
188 insn_extra_special_memory_constraint.
189 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
190 * lra-constraints.c (process_alt_operands): Ditto.
191 (curr_insn_transform): Use insn_extra_special_memory_constraint.
192 * recog.c (asm_operand_ok, preprocess_constraints): Process
193 CT_SPECIAL_MEMORY.
194 * reload.c (find_reloads): Ditto.
195 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
196 * stmt.c (parse_input_constraint): Use
197 insn_extra_special_memory_constraint.
198
199 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
200
201 PR target/69530
202 * lra-splill.c (lra_final_code_change): Revert r229087 by
203 removing all sub-registers.
204
205 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
206
207 PR target/65604
208 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
209
210 2016-01-29 Jakub Jelinek <jakub@redhat.com>
211
212 PR target/69551
213 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
214 SSE1, copy target into the temporary reg first before recursing
215 on it.
216
217 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
218
219 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
220 with vm.
221
222 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
223
224 * ginclude/stdarg.h: Test __cplusplus instead of
225 __GXX_EXPERIMENTAL_CXX0X__.
226
227 2016-01-29 Richard Biener <rguenther@suse.de>
228
229 PR tree-optimization/69547
230 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
231 Do not mark clobbers necessary.
232 (mark_all_reaching_defs_necessary_1): Likewise.
233
234 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
235
236 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
237 declaration name with %qs and print it in both error messages.
238 Also fix indentation.
239
240 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
241
242 PR other/69006
243 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
244 trailing blank line from error message.
245
246 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
247
248 PR c++/69462
249 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
250 for C++-11.
251
252 2016-01-29 Richard Biener <rguenther@suse.de>
253
254 PR middle-end/69537
255 * match.pd: Allow all integral types when simplifying a
256 widening or sign-changing conversion.
257
258 2016-01-28 Sebastian Pop <s.pop@samsung.com>
259
260 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
261 back to setting codegen_error to fail codegen.
262
263 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
264
265 PR target/69459
266 * config/i386/constraints.md (C): Only accept constant zero operand.
267 (BC): New constraint.
268 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
269 instead of C constraint.
270 * doc/md.texi (Machine Constraints): Update description
271 of C constraint.
272
273 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
274
275 PR target/68400
276 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
277
278 2016-01-28 Jakub Jelinek <jakub@redhat.com>
279
280 PR middle-end/69542
281 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
282 non-debug insns.
283
284 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
285
286 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
287 branches if using guessed profile.
288
289 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
290
291 * graphite-optimize-isl.c (optimize_isl): Fix dump.
292
293 2016-01-28 Richard Henderson <rth@redhat.com>
294
295 PR target/69305
296 * config/aarch64/aarch64-modes.def (CC_Cmode): New
297 * config/aarch64/aarch64-protos.h: Update.
298 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
299 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
300 (aarch64_get_condition_code_1): Handle CC_Cmode.
301 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
302 (*add<mode>3_compareC_cconly_imm): New.
303 (*add<mode>3_compareC_cconly): New.
304 (*add<mode>3_compareC_imm): New.
305 (add<mode>3_compareC): New.
306 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
307 to be first. Use aarch64_carry_operation.
308 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
309 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
310 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
311 (subti3): Use subdi3_compare1.
312 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
313 (sub<mode>3_compare1): New.
314 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
315 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
316 (*subsi3_carryin_uxtw): Likewise.
317 (*ngc<mode>, *ngcsi_uxtw): Likewise.
318 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
319 * config/aarch64/iterators.md (DWI): New.
320 * config/aarch64/predicates.md (aarch64_carry_operation): New.
321 (aarch64_borrow_operation): New.
322
323 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
324
325 * graphite-optimize-isl.c (optimize_isl): Print a different debug
326 message when isl does not return a valid schedule.
327
328 2016-01-28 Sebastian Pop <s.pop@samsung.com>
329
330 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
331 Remove comments from class declarations: they are already in the code
332 close by the defs.
333
334 2016-01-28 Sebastian Pop <s.pop@samsung.com>
335
336 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
337 codegen_error_p.
338 (ternary_op_to_tree): Same.
339 (unary_op_to_tree): Same.
340 (nary_op_to_tree): Same.
341 (gcc_expression_from_isl_expr_op): Same.
342 (gcc_expression_from_isl_expression): Same.
343 (graphite_create_new_loop): Same.
344 (graphite_create_new_loop_guard): Same.
345 (build_iv_mapping): Same.
346 (graphite_create_new_guard): Same.
347 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
348 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
349
350 2016-01-28 Sebastian Pop <s.pop@samsung.com>
351
352 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
353 instead of setting codegen_error to fail codegen.
354
355 2016-01-28 Jason Merrill <jason@redhat.com>
356
357 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
358
359 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
360
361 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
362 Remove CONST_INT_P check in CCMP cost calculation.
363
364 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
365
366 * config/aarch64/aarch64.c (generic_vector_cost):
367 Set vec_permute_cost.
368 (cortexa57_vector_cost): Likewise.
369 (exynosm1_vector_cost): Likewise.
370 (xgene1_vector_cost): Likewise.
371 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
372 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
373 Add vec_permute_cost entry.
374
375 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
376
377 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
378 immediate as %1.
379 (add<mode>3_compare0): Likewise.
380 (addsi3_compare0_uxtw): Likewise.
381 (add<mode>3nr_compare0): Likewise.
382 (compare_neg<mode>): Likewise.
383 (<optab><mode>3): Likewise.
384
385 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
386
387 * tree-vect-stmts.c (vectorizable_comparison): Add
388 NULL check for vectype.
389
390 2016-01-28 Richard Biener <rguenther@suse.de>
391
392 PR tree-optimization/69466
393 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
394 Account for PHIs we couldn't duplicate.
395
396 2016-01-28 Martin Liska <mliska@suse.cz>
397
398 PR pch/68758
399 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
400 instead of ENABLE_VALGRIND_CHECKING.
401
402 2016-01-27 Richard Henderson <rth@redhat.com>
403
404 PR rtl-opt/69447
405 * lra-remat.c (subreg_regs): New.
406 (dump_candidates_and_remat_bb_data): Dump it.
407 (operand_to_remat): Reject if operand in subreg_regs.
408 (set_bb_regs): Collect subreg_regs.
409 (lra_remat): Init and free subreg_regs. Compute
410 calculate_local_reg_remat_bb_data before create_cands.
411
412 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
413
414 PR target/68986
415 * config/i386/i386.c (ix86_update_stack_boundary): Don't
416 change stack_alignment_needed for __tls_get_addr call.
417
418 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
419
420 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
421
422 2016-01-27 Jeff Law <law@redhat.com>
423
424 PR tree-optimization/68398
425 PR tree-optimization/69196
426 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
427 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
428 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
429 Only count PHIs in the last block in the path. The others will
430 const/copy propagate away. Add heuristic to allow more irreducible
431 subloops to be created when it is likely profitable to do so.
432
433 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
434 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
435 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
436
437 2016-01-27 Jakub Jelinek <jakub@redhat.com>
438
439 PR lto/69254
440 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
441 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
442 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
443 * tree-streamer-in.c: Include asan.h.
444 (streamer_get_builtin_tree): For builtins in sanitizer
445 range call initialize_sanitizer_builtins and retry.
446
447 2016-01-27 Ian Lance Taylor <iant@google.com>
448
449 * common.opt (fkeep-gc-roots-live): New undocumented option.
450 * tree-ssa-loop-ivopts.c (add_candidate_1): If
451 -fkeep-gc-roots-live, skip pointers.
452 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
453 NULL.
454
455 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
456
457 PR target/69512
458 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
459 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
460
461 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
462
463 PR target/68380
464 * configure.ac: NetBSD provides SSP in its C library.
465 * configure: Updated.
466
467 2016-01-27 Richard Biener <rguenther@suse.de>
468
469 PR tree-optimization/69166
470 * tree-vect-loop.c (vect_is_simple_reduction): Always check
471 reduction code for commutativity / associativity.
472
473 2016-01-27 Martin Jambor <mjambor@suse.cz>
474
475 PR tree-optimization/69355
476 * tree-sra.c (analyze_access_subtree): Correct hole detection when
477 total_scalarization fails.
478
479 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
480
481 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
482 power9.
483
484 2016-01-27 Christian Bruel <christian.bruel@st.com>
485
486 PR target/69245
487 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
488 Move arm_reset_previous_fndecl and set_target_option_current_node in
489 the conditional part. Call save_restore_target_globals.
490 * config/arm/arm.c (arm_set_current_function):
491 Refactor to better support #pragma target and attribute mix.
492 Call save_restore_target_globals.
493 * config/arm/arm-protos.h (save_restore_target_globals): New function.
494
495 2016-01-27 Martin Liska <mliska@suse.cz>
496
497 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
498 reference for an HSA kernel and its host function.
499
500 2016-01-27 Jakub Jelinek <jakub@redhat.com>
501
502 PR tree-optimization/69399
503 * wide-int.h (wi::lrshift): For larger precisions, only
504 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
505
506 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
507
508 * config/arc/predicates.md (proper_comparison_operator): Reject
509 constant-constant comparison.
510
511 2016-01-26 Tom de Vries <tom@codesourcery.com>
512
513 PR tree-optimization/69110
514 * tree-data-ref.c (initialize_data_dependence_relation): Handle
515 DR_NUM_DIMENSIONS == 0.
516
517 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
518 Sebastian Pop <s.pop@samsung.com>
519
520 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
521 isl_ast_op_cond and isl_ast_op_select.
522 (gcc_expression_from_isl_expr_op): Same.
523
524 2016-01-26 Jason Merrill <jason@redhat.com>
525
526 PR c++/68782
527 * tree.c (recompute_constructor_flags): Split out from
528 build_constructor.
529 (verify_constructor_flags): New.
530 * tree.h: Declare them.
531
532 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
533
534 PR rtl-optimization/69217
535 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
536 are no TYPE_FIELDS set for the record type.
537
538 2016-01-26 Jakub Jelinek <jakub@redhat.com>
539
540 PR target/68662
541 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
542 toc_label_name unconditionally.
543 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
544 SYMBOL_REF string. Use toc_label_name instead of constructing
545 LCTOC1.
546 (rs6000_elf_declare_function_name): Use toc_label_name instead of
547 constructing LCTOC1.
548
549 2016-01-26 Martin Sebor <msebor@redhat.com>
550
551 PR other/69477
552 * doc/extend.texi (Common Type Attributes): Move text that talks about
553 attribute packed from attribute aligned to the section discussing
554 the former attribute for clarity.
555
556 2016-01-26 Richard Henderson <rth@redhat.com>
557
558 PR middle-end/60908
559 * trans-mem.c (tm_region_init): Mark entry block as visited.
560
561 2016-01-26 David Malcolm <dmalcolm@redhat.com>
562
563 PR other/69006
564 * diagnostic-show-locus.c (layout::print_source_line): Replace
565 call to pp_newline with call to layout::print_newline.
566 (layout::print_annotation_line): Likewise.
567 (layout::move_to_column): Likewise.
568 (layout::print_any_fixits): After printing any fixits, print a
569 trailing newline, if necessary.
570 (layout::print_newline): New method, resetting any colorization
571 before a newline.
572 (diagnostic_show_locus): Move the pp_newline to before the
573 early bailout. Remove dummy block enclosing the layout instance.
574 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
575 of pp_newline_and_flush with pp_flush.
576 (diagnostic_append_note): Delete use of pp_newline.
577 (diagnostic_append_note_at_rich_loc): Delete.
578 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
579 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
580 when newline characters are added to the buffer.
581
582 2016-01-26 Michael Matz <matz@suse.de>
583
584 * configure.ac (ac_cv_std_swap_in_utility): New test.
585 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
586 * configure: Regenerate.
587 * config.in: Regenerate.
588
589 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
590
591 * config/arc/arc.md (cstoresi4): Force operand into register.
592 (arcset<code>): Fix predicate.
593 (arcsetltu): Likewise.
594 (arcsetgeu): Likewise.
595 (arcsethi): Likewise.
596 (arcsetls): Likewise.
597
598 2016-01-26 Jakub Jelinek <jakub@redhat.com>
599
600 PR tree-optimization/69483
601 * gimple-fold.c (canonicalize_constructor_val): Return NULL
602 if base has error_mark_node type.
603
604 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
605
606 PR target/68620
607 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
608 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
609 New helper macros.
610 (vget_lane_f16): Handle big-endian.
611 (vgetq_lane_f16): Likewise.
612 (vset_lane_f16): Likewise.
613 (vsetq_lane_f16): Likewise.
614 * config/arm/iterators.md (VQXMOV): Add V8HF.
615 (VDQ): Add V4HF and V8HF.
616 (V_reg): Handle V4HF and V8HF.
617 (Is_float_mode): Likewise.
618 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
619 neon_vdup_nv8hf): New patterns.
620 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
621 Use VD_LANE iterator.
622 (neon_vld1_dup<mode>): Use VQ2 iterator.
623
624 2016-01-26 Nathan Sidwell <nathan@acm.org>
625
626 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
627 (set_oacc_fn_attrib): Add IS_KERNEL arg.
628 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
629 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
630 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
631 (oacc_validate_dims): Add LEVEL arg, don't return level.
632 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
633 oacc_validate_dims.
634 (execute_oacc_device_lower): Adjust, add more dump output.
635 * tree-ssa-loop.c (gate_oacc_kernels): Use
636 oacc_fn_attrib_kernels_p.
637 * tree-parloops.c (create_parallel_loop): Adjust
638 set_oacc_fn_attrib call.
639
640 2016-01-26 Jakub Jelinek <jakub@redhat.com>
641
642 PR lto/69254
643 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
644 (append_compiler_options): Handle -fcilkplus.
645 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
646
647 2016-01-26 Nick Clifton <nickc@redhat.com>
648
649 PR target/66655
650 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
651 been marked as DECL_ONE_ONLY but we do not the means to make it
652 so, then do not allow it to bind locally.
653
654 2016-01-26 Jakub Jelinek <jakub@redhat.com>
655
656 PR lto/69254
657 * opts.h (parse_sanitizer_options): New prototype.
658 * opts.c (sanitizer_opts): New array.
659 (parse_sanitizer_options): New function.
660 (common_handle_option): Use parse_sanitizer_options.
661
662 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
663
664 PR target/68986
665 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
666 alignment adjustment to ...
667 (ix86_update_stack_boundary): Here. Don't over-align stack for
668 __tls_get_addr.
669 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
670 if __tls_get_addr is called.
671
672 2016-01-26 Christian Bruel <christian.bruel@st.com>
673
674 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
675
676 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
677
678 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
679
680 2016-01-26 Richard Biener <rguenther@suse.de>
681
682 PR middle-end/69467
683 * match.pd: Guard X * CST CMP 0 pattern with single_use.
684
685 2016-01-26 Richard Biener <rguenther@suse.de>
686
687 PR tree-optimization/69452
688 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
689 (move_computations_dom_walker::before_dom_children): Rename
690 to ...
691 (move_computations_worker): This.
692 (move_computations): Perform an RPO rather than a DOM walk.
693
694 2016-01-26 Jakub Jelinek <jakub@redhat.com>
695
696 PR target/69442
697 * combine.c (combine_instructions): For REG_EQUAL note with
698 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
699 to the underlying register.
700 * doc/rtl.texi (REG_EQUAL): Document the behavior of
701 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
702
703 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
704
705 PR target/67896
706 * config/aarch64/aarch64-builtins.c
707 (aarch64_init_simd_builtin_types): Do not set structural
708 equality to __Poly{8,16,64,128}_t types.
709
710 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
711
712 PR tree-optimization/69400
713 * wide-int.cc (wi_pack): Take the precision as argument and
714 perform canonicalization here rather than in the callers.
715 Use the main loop to handle all full-width HWIs. Add a
716 zero HWI if in_len isn't a full result.
717 (wi::divmod_internal): Update accordingly.
718 (wi::mul_internal): Likewise. Simplify.
719
720 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
721 Sebastian Pop <s.pop@samsung.com>
722
723 * graphite-poly.c (apply_poly_transforms): Simplify.
724 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
725 (print_isl_map): Same.
726 (print_isl_union_map): Same.
727 (print_isl_schedule): New.
728 (debug_isl_schedule): New.
729 * graphite-dependences.c (scop_get_reads): Do not call
730 isl_union_map_add_map that is undocumented isl functionality.
731 (scop_get_must_writes): Same.
732 (scop_get_may_writes): Same.
733 (scop_get_original_schedule): Remove.
734 (scop_get_dependences): Do not call isl_union_map_compute_flow that
735 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
736 (compute_deps): Remove.
737 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
738 (debug_schedule_ast): New.
739 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
740 set_separate_option.
741 (graphite_regenerate_ast_isl): Add dump.
742 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
743 from scop->transformed_schedule.
744 (graphite_regenerate_ast_isl): Add more dump.
745 * graphite-optimize-isl.c (optimize_isl): Set
746 scop->transformed_schedule. Check whether schedules are equal.
747 (apply_poly_transforms): Move here.
748 * graphite-poly.c (apply_poly_transforms): ... from here.
749 (free_poly_bb): Static.
750 (free_scop): Static.
751 (pbb_number_of_iterations_at_time): Remove.
752 (print_isl_ast): New.
753 (debug_isl_ast): New.
754 (debug_scop_pbb): New.
755 * graphite-scop-detection.c (print_edge): Move.
756 (print_sese): Move.
757 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
758 (build_scop_scattering): Remove.
759 (create_pw_aff_from_tree): Assert instead of bailing out.
760 (add_condition_to_pbb): Remove unused code, do not fail.
761 (add_conditions_to_domain): Same.
762 (add_conditions_to_constraints): Remove.
763 (build_scop_context): New.
764 (add_iter_domain_dimension): New.
765 (build_iteration_domains): Initialize pbb->iterators.
766 Call add_conditions_to_domain.
767 (nested_in): New.
768 (loop_at): New.
769 (index_outermost_in_loop): New.
770 (index_pbb_in_loop): New.
771 (outermost_pbb_in): New.
772 (add_in_sequence): New.
773 (add_outer_projection): New.
774 (outer_projection_mupa): New.
775 (add_loop_schedule): New.
776 (build_schedule_pbb): New.
777 (build_schedule_loop): New.
778 (embed_in_surrounding_loops): New.
779 (build_schedule_loop_nest): New.
780 (build_original_schedule): New.
781 (build_poly_scop): Call build_original_schedule.
782 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
783 (free_poly_dr): Remove.
784 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
785 (free_poly_bb): Remove.
786 (debug_loop_vec): Remove.
787 (print_isl_ast): Declare.
788 (debug_isl_ast): Declare.
789 (scop_do_interchange): Remove.
790 (scop_do_strip_mine): Remove.
791 (scop_do_block): Remove.
792 (flatten_all_loops): Remove.
793 (optimize_isl): Remove.
794 (pbb_number_of_iterations_at_time): Remove.
795 (debug_scop_pbb): Declare.
796 (print_schedule_ast): Declare.
797 (debug_schedule_ast): Declare.
798 (struct scop): Remove schedule. Add original_schedule,
799 transformed_schedule.
800 (free_gimple_poly_bb): Remove.
801 (print_generated_program): Remove.
802 (debug_generated_program): Remove.
803 (unify_scattering_dimensions): Remove.
804 * sese.c (print_edge): ... here.
805 (print_sese): ... here.
806 (debug_edge): ... here.
807 (debug_sese): ... here.
808 * sese.h (print_edge): Declare.
809 (print_sese): Declare.
810 (dump_edge): Declare.
811 (dump_sese): Declare.
812
813 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
814 Sebastian Pop <s.pop@samsung.com>
815
816 * Makefile.in: Set ISLVER in site.exp.
817
818 2016-01-25 Jakub Jelinek <jakub@redhat.com>
819
820 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
821 DECL_VALUE_EXPR of new_var even for the non-array case. Look
822 through DECL_VALUE_EXPR for expansion.
823
824 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
825
826 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
827 the frame info after reload completed.
828
829 2016-01-25 Jeff Law <law@redhat.com>
830
831 PR tree-optimization/69196
832 PR tree-optimization/68398
833 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
834 tree-ssa-threadupdate.c.
835 (determine_bb_domination_status): Prototype
836 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
837 (determine_bb_domination_status): No longer static.
838 (valid_jump_thread_path): Remove code to detect characteristics
839 of the jump thread path not associated with correctness.
840 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
841 Correct test for thread path length. Count PHIs for real operands as
842 statements that need to be copied. Do not count ASSERT_EXPRs.
843 Look at all the blocks in the thread path. Compute and selectively
844 filter thread paths based on threading through the latch, threading
845 a multiway branch or crossing a multiway branch.
846
847 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
848
849 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
850 decl with __attribute__ ((unused)) annotation.
851
852 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
853
854 PR target/69421
855 * tree-vect-stmts.c (vectorizable_condition): Check vectype
856 of operands is compatible with a statement vectype.
857
858 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
859
860 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
861 improve wording for mixed storage order support.
862
863 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
864
865 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
866 (vcvt_u64_f64): Likewise.
867 (vcvta_s64_f64): Likewise.
868 (vcvta_u64_f64): Likewise.
869 (vcvtm_s64_f64): Likewise.
870 (vcvtm_u64_f64): Likewise.
871 (vcvtn_s64_f64): Likewise.
872 (vcvtn_u64_f64): Likewise.
873 (vcvtp_s64_f64): Likewise.
874 (vcvtp_u64_f64): Likewise.
875
876 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
877
878 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
879 (arc_init): Check validity mll64 option.
880 (arc_save_restore): Use double load/store instruction.
881 (arc_expand_movmem): Likewise.
882 (arc_split_move): Don't split if we have double load/store
883 instructions. Returns a boolean.
884 (arc_process_double_reg_moves): Change function to return boolean
885 instead of a sequence of instructions.
886 (arc_dwarf_register_span): New function.
887 * config/arc/arc-protos.h (arc_split_move): Change prototype.
888 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
889 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
890 (*movdf_insn): Likewise.
891 * config/arc/arc.opt (mll64): New option.
892 * config/arc/predicates.md (even_register_operand): New predicate.
893 * doc/invoke.texi (ARC Options): Add mll64 documentation.
894
895 2016-01-25 Richard Biener <rguenther@suse.de>
896
897 PR lto/69393
898 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
899 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
900 DECL_NAMELESS.
901 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
902
903 2016-01-25 Richard Biener <rguenther@suse.de>
904
905 PR tree-optimization/69376
906 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
907 flag.
908 (VN_INFO_ANTI_RANGE_P): New inline.
909 (VN_INFO_RANGE_TYPE): Likewise.
910 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
911 SSA_NAME_ANTI_RANGE_P.
912 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
913 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
914 Properly query VN_INFO_RANGE_TYPE.
915
916 2016-01-25 Nick Clifton <nickc@redhat.com>
917
918 PR target/66655
919 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
920
921 2016-01-23 Tom de Vries <tom@codesourcery.com>
922
923 PR tree-optimization/69426
924 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
925 removed clobber.
926
927 2016-01-23 Jakub Jelinek <jakub@redhat.com>
928
929 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
930 "the the" with "the" in the comments.
931 * ipa-devirt.c (build_type_inheritance_graph,
932 update_type_inheritance_graph): Likewise.
933 * tree.c (build_function_type_list_1): Likewise.
934 * cfgloopmanip.c (scale_loop_profile): Likewise.
935 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
936 * gimple-ssa-split-paths.c
937 (find_block_to_duplicate_for_splitting_paths): Likewise.
938 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
939 * expr.c (convert_move): Likewise.
940 * var-tracking.c (vt_stack_adjustments): Likewise.
941 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
942 * tree-vrp.c (test_for_singularity): Likewise.
943
944 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
945 directly instead of building a temporary tree.
946
947 PR bootstrap/69434
948 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
949 remove <algorithm> include.
950
951 2016-01-22 Jakub Jelinek <jakub@redhat.com>
952
953 PR target/69432
954 * config/i386/i386.c: Include dojump.h.
955 (expand_small_movmem_or_setmem,
956 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
957 fixes.
958 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
959 if dynamic_check != -1.
960
961 2016-01-21 Jeff Law <law@redhat.com>
962
963 PR middle-end/69347
964 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
965 record_temporary_equivalences. Rewritten to avoid unnecessary calls
966 into dominated_by_p.
967 (cprop_into_successor_phis): Avoid unnecessary tests.
968
969 2016-01-22 Richard Henderson <rth@redhat.com>
970
971 PR target/69416
972 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
973 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
974
975 2016-01-22 Michael Matz <matz@suse.de>
976
977 * system.h (string, algorithm): Include only conditionally.
978 (new): Include always under C++.
979 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
980 * final.c (toplevel): Ditto.
981 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
982 * genconditions.c (write_header): Make gencondmd.c define
983 INCLUDE_STRING.
984 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
985
986 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
987 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
988
989 2016-01-22 Christian Bruel <christian.bruel@st.com>
990
991 PR target/68674
992 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
993
994 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
995
996 PR target/69403
997 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
998 define_insn_and_split. Ensure operands[1] and operands[0] do not
999 get assigned the same register.
1000
1001 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
1002
1003 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
1004
1005 2016-01-22 Christian Bruel <christian.bruel@st.com>
1006
1007 * config/arm/arm-c.c (arm_pragma_target_parse):
1008 Remove warn_builtin_macro_redefined overwrite.
1009
1010 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
1011
1012 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
1013 flag_non_call_exceptions compatibility.
1014
1015 2016-01-22 Jakub Jelinek <jakub@redhat.com>
1016
1017 PR debug/66668
1018 * dwarf2out.c (add_child_die_after): New function.
1019 (dwarf_qual_info_t): New type.
1020 (dwarf_qual_info): New variable.
1021 (qualified_die_p): New function.
1022 (modified_type_die): For -fdebug-types-section, ensure
1023 canonical order of qualifiers. Put qualified DIEs adjacent
1024 to the corresponding non-qualified type DIE and search there
1025 for existing qualified DIEs.
1026
1027 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
1028
1029 * doc/extend.texi (scalar_storage_order type attribute): Document
1030 restriction on type punning and aliasing, and remove future tense.
1031
1032 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
1033
1034 PR target/69252
1035 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
1036 first stage.
1037
1038 2016-01-21 Jeff Law <law@redhat.com>
1039
1040 PR middle-end/69347
1041 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
1042 useless call to record_temporary_equivalences.
1043 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
1044 allocate 10 slots in the bb_path vector and let it grow as needed.
1045 (fsm_find_control_statement_thread_paths): Similarly for the next_path
1046 vector.
1047
1048 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
1049
1050 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
1051 Detangle.
1052 * configure: Regenerate.
1053
1054 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
1055
1056 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
1057 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
1058
1059 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
1060
1061 PR middle-end/66178
1062 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
1063 drop EXPAND_INITIALIZER.
1064 * rtl.h (contains_symbolic_reference_p): Declare.
1065 * rtlanal.c (contains_symbolic_reference_p): New function.
1066 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
1067 a subtraction into a NOT if symbolic constants are involved.
1068
1069 2016-01-21 Anton Blanchard <anton@samba.org>
1070 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1071
1072 PR target/63354
1073 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
1074 #define.
1075 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
1076 function.
1077
1078 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
1079
1080 * config/microblaze/microblaze.c
1081 (get_branch_target): New.
1082 (insert_wic_for_ilb_runout): New.
1083 (insert_wic): New.
1084 (microblaze_machine_dependent_reorg): New.
1085 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
1086 * config/microblaze/microblaze.md
1087 (UNSPEC_IPREFETCH): Define.
1088 (iprefetch): New pattern
1089 * config/microblaze/microblaze.opt
1090 (mxl-prefetch): New flag.
1091
1092 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
1093
1094 * config/microblaze/microblaze.h
1095 (FIXED_REGISTERS): Update in macro.
1096 (CALL_USED_REGISTERS): Update in macro.
1097
1098 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
1099
1100 PR rtl-optimization/68920
1101 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
1102 moves.
1103
1104 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
1105
1106 PR rtl-optimization/68990
1107 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
1108 pseudo instead of inheritance ones.
1109
1110 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1111 Nick Clifton <nickc@redhat.com>
1112
1113 PR target/69129
1114 PR target/69012
1115 * config/mips/mips.c (mips_compute_frame_info): Initialise
1116 args_size and hard_frame_pointer_offset fields of the frame
1117 structure before calling mips_global_pointer.
1118
1119 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
1120
1121 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
1122 label reference.
1123 * configure: Regenerate.
1124
1125 2016-01-21 Richard Biener <rguenther@suse.de>
1126
1127 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
1128
1129 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
1130
1131 * config/s390/s390.c (s390_asm_declare_function_size): Add code
1132 to actually emit the .size directive.
1133
1134 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
1135 Jakub Jelinek <jakub@redhat.com>
1136
1137 PR target/69187
1138 PR target/65624
1139 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
1140 args array size by one to avoid buffer overflow.
1141
1142 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
1143
1144 * config/s390/s390.md (pool_section_start): Use switch_to_section
1145 to select proper read-only data section instead of hardcoding
1146 .rodata.
1147 (pool_section_end): Use switch_to_section to match the above.
1148
1149 2016-01-21 Richard Biener <rguenther@suse.de>
1150
1151 PR tree-optimization/69378
1152 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
1153 (set_ssa_val_to): Use it for dominance checks taking into
1154 account not executable edges.
1155
1156 2016-01-21 Jakub Jelinek <jakub@redhat.com>
1157
1158 PR c++/69355
1159 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
1160 for bitsize instead of GET_MODE_PRECISION (mode).
1161
1162 2016-01-20 Martin Sebor <msebor@redhat.com>
1163
1164 PR c/52291
1165 * extend.texi (__sync Builtins): Clarify the semantics of
1166 __sync_fetch_and_OP built-ins on pointers.
1167 (__atomic Builtins): Same.
1168
1169 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1170 Sebastian Pop <s.pop@samsung.com>
1171
1172 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
1173 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
1174 (is_valid_rename): Same.
1175 (translate_isl_ast_to_gimple::get_rename): Same.
1176 (translate_isl_ast_to_gimple::rename_all_uses): Same.
1177 (translate_isl_ast_to_gimple::rename_uses): Same.
1178 (get_new_name): Check for close_phi nodes.
1179 (copy_loop_phi_args): Use phi_node_kind.
1180 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1181 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
1182
1183 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1184 Sebastian Pop <s.pop@samsung.com>
1185
1186 Revert commit r229783.
1187 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1188 Remove use of parameter_rename_map.
1189 (copy_def): Remove.
1190 (copy_internal_parameters): Remove.
1191 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1192 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1193 (free_sese_info): Do not free parameter_rename_map.
1194 (set_rename): Do not use parameter_rename_map.
1195 (rename_uses): Update call to set_rename.
1196 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1197 * sese.h (parameter_rename_map_t): Remove.
1198 (struct sese_info_t): Remove field parameter_rename_map.
1199
1200 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1201 Sebastian Pop <s.pop@samsung.com>
1202
1203 * graphite-isl-ast-to-gimple.c: Fix comment.
1204 * graphite-scop-detection.c (defined_in_loop_p): New.
1205 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
1206 names defined in loop.
1207
1208 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1209 Sebastian Pop <s.pop@samsung.com>
1210
1211 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1212 Discard unstructured if-then-else regions.
1213
1214 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1215 Sebastian Pop <s.pop@samsung.com>
1216
1217 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
1218 (cleanup_loop_iter_dom): Remove.
1219 (build_loop_iteration_domains): Remove.
1220 (build_scop_context): Remove.
1221 (build_scop_iteration_domain): Remove.
1222 (add_loop_constraints): New.
1223 (build_iteration_domains): New.
1224 (build_poly_scop): Call build_iteration_domains.
1225
1226 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1227 Sebastian Pop <s.pop@samsung.com>
1228
1229 * graphite-scop-detection.c
1230 (scop_detection::harmful_loop_in_region): Free dom and loops.
1231 (scop_detection::loop_body_is_valid_scop): Free bbs.
1232
1233 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1234 Sebastian Pop <s.pop@samsung.com>
1235
1236 * graphite-scop-detection.c (record_loop_in_sese): New.
1237 (gather_bbs::before_dom_children): Call record_loop_in_sese.
1238 (build_scops): Remove call to build_sese_loop_nests.
1239 * sese.c (sese_record_loop): Remove.
1240 (build_sese_loop_nests): Remove.
1241 (new_sese_info): Remove region->loops.
1242 (free_sese_info): Same.
1243 * sese.h (sese_contains_loop): Same.
1244 (build_sese_loop_nests): Remove.
1245 (sese_contains_loop): Remove.
1246
1247 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1248 Sebastian Pop <s.pop@samsung.com>
1249
1250 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
1251 loop_is_valid_in_scop.
1252 (scop_detection::harmful_stmt_in_region): Renamed
1253 harmful_loop_in_region.
1254 Call loop_is_valid_in_scop.
1255
1256 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1257 Sebastian Pop <s.pop@samsung.com>
1258
1259 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
1260 isl_ast_node_mark.
1261
1262 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1263 Sebastian Pop <s.pop@samsung.com>
1264
1265 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
1266 * graphite.h (struct poly_bb): Remove field is_reduction.
1267 (PBB_IS_REDUCTION): Remove.
1268
1269 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1270 Sebastian Pop <s.pop@samsung.com>
1271
1272 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
1273 (add_pdr_constraints): Same.
1274 (scop_get_reads): Same.
1275 (scop_get_must_writes): Same.
1276 (scop_get_may_writes): Same.
1277 (scop_get_original_schedule): Same.
1278 (extend_schedule): Same.
1279 (apply_schedule_on_deps): Same.
1280 (carries_deps): Same.
1281 (compute_deps): Same.
1282 (scop_get_dependences): Same.
1283 * graphite-isl-ast-to-gimple.c
1284 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
1285 * graphite-optimize-isl.c (get_schedule_for_band): Same.
1286 (get_schedule_for_band_list): Same.
1287 (get_schedule_map): Same.
1288 (apply_schedule_map_to_scop): Same.
1289 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1290 (build_loop_iteration_domains): Same.
1291 (add_condition_to_pbb): Same.
1292 (add_param_constraints): Same.
1293 (pdr_add_memory_accesses): Same.
1294 (pdr_add_data_dimensions): Same.
1295
1296 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
1297
1298 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
1299 requirements.
1300
1301 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
1302
1303 * common.opt (feliminate-dwarf2-dups): Replace references to
1304 "DWARF 2" with just "DWARF".
1305 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
1306 * doc/extend.texi: Likewise.
1307 * doc/cpp.texi: Likewise.
1308 * doc/invoke.texi: Likewise.
1309 (Option Summary): Add -gdwarf to list of Debugging Options.
1310 (Debugging Options): Document -gdwarf.
1311 * doc/contrib.texi: Spell "DWARF" like that.
1312
1313 2016-01-21 Jakub Jelinek <jakub@redhat.com>
1314
1315 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
1316 warning. Fix up formatting.
1317
1318 PR middle-end/67653
1319 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
1320 attempt to mark memory input operand addressable and
1321 call prepare_gimple_addressable in that case. Don't adjust
1322 input_location for diagnostics, use error_at instead.
1323
1324 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
1325
1326 * config/rs6000/ppc-auxv.h: New file.
1327 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
1328 (cpu_is): Likewise.
1329 (cpu_supports): Likewise.
1330 * config/rs6000/rs6000.c: include "ppc-auxv.h".
1331 (cpu_is_info): New variable.
1332 (cpu_supports_info): Likewise.
1333 (tcb_verification_symbol): Likewise.
1334 (cpu_builtin_p): Likewise.
1335 (cpu_expand_builtin): New function.
1336 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
1337 (rs6000_init_builtins): Likewise.
1338 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
1339 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
1340 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
1341 * configure: Regenerate.
1342 * config.in: Likewise.
1343 * doc/extend.texi (PowerPC Built-in Functions): Document
1344 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
1345
1346 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
1347
1348 PR target/68609
1349 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
1350 domain check.
1351 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
1352 for V4SFmode.
1353
1354 2016-01-20 Richard Henderson <rth@redhat.com>
1355
1356 PR bootstrap/69343
1357 PR bootstrap/69339
1358 PR tree-opt/68964
1359 Revert:
1360 * tree.c (tm_define_builtin): New.
1361 (find_tm_vector_type): New.
1362 (build_tm_vector_builtins): New.
1363 (build_common_builtin_nodes): Call it.
1364
1365 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
1366
1367 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
1368 (arm_fp_ok): Likewise.
1369 (arm_fp): Likewise.
1370 (arm_crypto): Likewise.
1371
1372 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
1373 Richard Biener <rguenther@suse.de>
1374
1375 PR tree-optimization/69328
1376 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
1377 vectors have same number of elements.
1378 (vectorizable_condition): Fix masked version recognition.
1379
1380 2016-01-20 Richard Biener <rguenther@suse.de>
1381
1382 PR tree-optimization/69345
1383 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
1384 (VN_INFO_PTR_INFO): Likewise.
1385 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
1386 info when it is equal between non-dominating SSA names.
1387 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1388 Make sure to look at original SSA infos.
1389
1390 2016-01-20 Jeff Law <law@redhat.com>
1391
1392 PR target/25114
1393 * config/m68k/predicates.md (pow2_m1_operand): New predicate
1394 extracted from ...
1395 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
1396 (pc_or_label_operand): New predicate.
1397 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
1398 tests for small integers that are 2^n - 1.
1399
1400 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
1401
1402 * doc/invoke.texi (Options Summary): Add '.' after @xref.
1403
1404 2016-01-19 Jeff Law <law@redhat.com>
1405
1406 PR middle-end/69347
1407 * tree-ssa-threadbackwards.c
1408 (fsm_find_control_statement_thread_paths): Do not try to lookup
1409 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
1410
1411 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
1412
1413 * doc/lto.texi: Remove text that says only Gold has linker plugin
1414 support.
1415
1416 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
1417
1418 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
1419 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
1420 the DIE accordingly.
1421 (modified_type_die): Add REVERSE parameter and pass it recursively,
1422 as well as to base_type_die. Adjust presence check accordingly.
1423 (base_type_for_mode): Adjust call to modified_type_die.
1424 (add_type_attribute): Add REVERSE parameter and pass it to
1425 modified_type_die.
1426 (generic_parameter_die): Adjust call to add_type_attribute.
1427 (add_scalar_info): Likewise.
1428 (add_subscript_info): Likewise.
1429 (gen_array_type_die): Likewise.
1430 (gen_descr_array_type_die): Likewise.
1431 (gen_entry_point_die): Likewise.
1432 (gen_enumeration_type_die): Likewise.
1433 (gen_formal_parameter_die): Likewise.
1434 (gen_subprogram_die): Likewise.
1435 (gen_variable_die ): Likewise.
1436 (gen_const_die): Likewise.
1437 (gen_field_die): Likewise.
1438 (gen_pointer_type_die): Likewise.
1439 (gen_reference_type_die): Likewise.
1440 (gen_ptr_to_mbr_type_die): Likewise.
1441 (gen_inheritance_die): Likewise.
1442 (gen_subroutine_type_die): Likewise.
1443 (gen_typedef_die): Likewise.
1444 (force_type_die): Adjust call to modified_type_die.
1445
1446 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
1447
1448 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
1449 flow throughout the file. Fix broken link to Objective-C 2.0
1450 documentation.
1451 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
1452 errors.
1453
1454 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1455
1456 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
1457
1458 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1459
1460 PR ipa/66223
1461 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
1462 (maybe_record_node): Record cxa_pure_virtual as the only possible
1463 target if there are not ohter candidates.
1464 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
1465
1466 2016-01-19 Richard Biener <rguenther@suse.de>
1467
1468 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
1469 (get_memory_order): Likewise.
1470
1471 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
1472
1473 * tree-vect-stmts.c (vectorizable_store): Check
1474 rhs vectype.
1475
1476 2016-01-19 David Malcolm <dmalcolm@redhat.com>
1477
1478 PR jit/68446
1479 * gcc.c (driver::decode_argv): Add call to
1480 init_opts_obstack before init_options_struct.
1481 * opts.c (init_opts_obstack): Remove idempotency.
1482 (init_options_struct): Replace call to init_opts_obstack
1483 with a gcc_assert to verify that it has already been called.
1484 * toplev.c (toplev::main): Add call to init_opts_obstack before
1485 calls to init_options_struct.
1486 (toplev::finalize): Move cleanup of opts_obstack next to
1487 cleanup of save_decoded_options, clearing the latter, and
1488 save_decoded_options_count.
1489
1490 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1491
1492 PR target/69135
1493 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
1494 attribute to unconditional. Remove %? from output template.
1495
1496 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1497 Jiong Wang <jiong.wang@arm.com>
1498
1499 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
1500 generated from different expand order.
1501
1502 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1503
1504 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1505 Add support for CCMP costing.
1506
1507 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1508
1509 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
1510 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
1511 (fccmpe<mode>): Likewise.
1512 (fcmp): Rename to fcmp and globalize pattern.
1513 (fcmpe): Likewise.
1514 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
1515 (aarch64_gen_ccmp_next): Add FP support.
1516
1517 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1518
1519 * target.def (gen_ccmp_first): Update documentation.
1520 (gen_ccmp_next): Likewise.
1521 * doc/tm.texi (gen_ccmp_first): Update documentation.
1522 (gen_ccmp_next): Likewise.
1523 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
1524 expand_ccmp_expr_1. Improve comments.
1525 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
1526 (ccmp_ior<mode>): Remove pattern.
1527 (cmp<mode>): Remove expand.
1528 (cmp): Globalize pattern.
1529 (cstorecc4): Use cc_register.
1530 (mov<mode>cc): Remove ccmp_cc_register check.
1531 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
1532 Simplify after removal of CC_DNE/* modes.
1533 (aarch64_ccmp_mode_to_code): Remove.
1534 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
1535 In 'k' case use integer as condition.
1536 (aarch64_nzcv_codes): Remove inverted cases.
1537 (aarch64_code_to_ccmode): Remove.
1538 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
1539 comparison with CC register to be used in folowing CCMP/branch/CSEL.
1540 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
1541 pattern. Return the comparison with CC register. Invert conditions
1542 when bitcode is OR.
1543 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
1544 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
1545
1546 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1547
1548 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1549 instrumented_version.
1550
1551 2016-01-19 Richard Biener <rguenther@suse.de>
1552
1553 PR tree-optimization/69336
1554 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
1555 handled components with get_ref_base_and_extent.
1556 (equal_mem_array_ref_p): Adjust.
1557
1558 2016-01-19 Jakub Jelinek <jakub@redhat.com>
1559
1560 PR debug/65779
1561 * shrink-wrap.c: Include valtrack.h.
1562 (move_insn_for_shrink_wrap): Add DEBUG argument. If
1563 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
1564 in between insn and where it will be moved to. Call
1565 dead_debug_insert_temp.
1566 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
1567 first and dead_debug_local_finish at the end.
1568 For uses and defs bitmap, handle all regs in between REGNO and
1569 END_REGNO, not just the first one.
1570
1571 2016-01-19 Richard Biener <rguenther@suse.de>
1572
1573 PR tree-optimization/69352
1574 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
1575 (equal_mem_array_ref_p): Constrain size and max size properly.
1576 Compare the reverse flag.
1577
1578 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
1579
1580 * ira.c (ira): Update regstat data if we deleted insns.
1581
1582 2016-01-19 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR rtl-optimization/68955
1585 PR rtl-optimization/64557
1586 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
1587 here. Fix up formatting.
1588 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
1589
1590 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1591
1592 PR lto/69133
1593 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
1594 assume that the node has body.
1595 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
1596 check.
1597
1598 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1599
1600 * lto-streamer-out.c (lto_output): Do not stream instrumentation
1601 thunks.
1602
1603 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1604
1605 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
1606 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
1607
1608 2016-01-19 Martin Jambor <mjambor@suse.cz>
1609 Martin Liska <mliska@suse.cz>
1610 Michael Matz <matz@suse.de>
1611
1612 * Makefile.in (OBJS): Add new source files.
1613 (GTFILES): Add hsa.c.
1614 * common.opt (disable_hsa): New variable.
1615 (-Whsa): New warning.
1616 * config.in (ENABLE_HSA): New.
1617 * configure.ac: Treat hsa differently from other accelerators.
1618 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
1619 $enable_offloading.
1620 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
1621 * doc/install.texi (Configuration): Document --with-hsa-runtime,
1622 --with-hsa-runtime-include, --with-hsa-runtime-lib and
1623 --with-hsa-kmt-lib.
1624 * doc/invoke.texi (-Whsa): Document.
1625 (hsa-gen-debug-stores): Likewise.
1626 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
1627 to invoke offload compiler for hsa acclerator.
1628 * opts.c (common_handle_option): Determine whether HSA offloading
1629 should be performed.
1630 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
1631 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1632 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1633 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1634 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
1635 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
1636 GF_OMP_FOR_KIND_GRID_LOOP.
1637 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
1638 (pp_gimple_stmt_1): Likewise.
1639 * gimple-walk.c (walk_gimple_stmt): Likewise.
1640 * gimple.c (gimple_build_omp_grid_body): New function.
1641 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
1642 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
1643 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
1644 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
1645 GF_OMP_TEAMS_GRID_PHONY.
1646 (gimple_statement_omp_single_layout): Updated comments.
1647 (gimple_build_omp_grid_body): New function.
1648 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
1649 (gimple_omp_for_grid_phony): New function.
1650 (gimple_omp_for_set_grid_phony): Likewise.
1651 (gimple_omp_parallel_grid_phony): Likewise.
1652 (gimple_omp_parallel_set_grid_phony): Likewise.
1653 (gimple_omp_teams_grid_phony): Likewise.
1654 (gimple_omp_teams_set_grid_phony): Likewise.
1655 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
1656 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
1657 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
1658 (BUILT_IN_GOMP_TARGET): Updated type.
1659 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
1660 (adjust_for_condition): New function.
1661 (get_omp_for_step_from_incr): Likewise.
1662 (extract_omp_for_data): Moved parts to adjust_for_condition and
1663 get_omp_for_step_from_incr.
1664 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
1665 (fixup_child_record_type): Bail out if receiver_decl is NULL.
1666 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
1667 (scan_omp_parallel): Do not create child functions for phony
1668 constructs.
1669 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
1670 (scan_omp_1_op): Checking assert we are not remapping to
1671 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
1672 (parallel_needs_hsa_kernel_p): New function.
1673 (expand_parallel_call): Register apprpriate parallel child
1674 functions as HSA kernels.
1675 (grid_launch_attributes_trees): New type.
1676 (grid_attr_trees): New variable.
1677 (grid_create_kernel_launch_attr_types): New function.
1678 (grid_insert_store_range_dim): Likewise.
1679 (grid_get_kernel_launch_attributes): Likewise.
1680 (get_target_argument_identifier_1): Likewise.
1681 (get_target_argument_identifier): Likewise.
1682 (get_target_argument_value): Likewise.
1683 (push_target_argument_according_to_value): Likewise.
1684 (get_target_arguments): Likewise.
1685 (expand_omp_target): Call get_target_arguments instead of looking
1686 up for teams and thread limit.
1687 (grid_expand_omp_for_loop): New function.
1688 (grid_arg_decl_map): New type.
1689 (grid_remap_kernel_arg_accesses): New function.
1690 (grid_expand_target_kernel_body): New function.
1691 (expand_omp): Call it.
1692 (lower_omp_for): Do not emit phony constructs.
1693 (lower_omp_taskreg): Do not emit phony constructs but create for them
1694 a temporary variable receiver_decl.
1695 (lower_omp_taskreg): Do not emit phony constructs.
1696 (lower_omp_teams): Likewise.
1697 (lower_omp_grid_body): New function.
1698 (lower_omp_1): Call it.
1699 (grid_reg_assignment_to_local_var_p): New function.
1700 (grid_seq_only_contains_local_assignments): Likewise.
1701 (grid_find_single_omp_among_assignments_1): Likewise.
1702 (grid_find_single_omp_among_assignments): Likewise.
1703 (grid_find_ungridifiable_statement): Likewise.
1704 (grid_target_follows_gridifiable_pattern): Likewise.
1705 (grid_remap_prebody_decls): Likewise.
1706 (grid_copy_leading_local_assignments): Likewise.
1707 (grid_process_kernel_body_copy): Likewise.
1708 (grid_attempt_target_gridification): Likewise.
1709 (grid_gridify_all_targets_stmt): Likewise.
1710 (grid_gridify_all_targets): Likewise.
1711 (execute_lower_omp): Call grid_gridify_all_targets.
1712 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
1713 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
1714 (tree_omp_clause): Added union field dimension.
1715 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
1716 * tree.c (omp_clause_num_ops): Added number of arguments of
1717 OMP_CLAUSE__GRIDDIM_.
1718 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
1719 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
1720 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
1721 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
1722 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
1723 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
1724 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
1725 * tree-pass.h (make_pass_gen_hsail): Declare.
1726 (make_pass_ipa_hsa): Likewise.
1727 * ipa-hsa.c: New file.
1728 * lto-section-in.c (lto_section_name): Add hsa section name.
1729 * lto-streamer.h (lto_section_type): Add hsa section.
1730 * timevar.def (TV_IPA_HSA): New.
1731 * hsa-brig-format.h: New file.
1732 * hsa-brig.c: New file.
1733 * hsa-dump.c: Likewise.
1734 * hsa-gen.c: Likewise.
1735 * hsa.c: Likewise.
1736 * hsa.h: Likewise.
1737 * toplev.c (compile_file): Call hsa_output_brig.
1738 * hsa-regalloc.c: New file.
1739
1740 2016-01-18 Jeff Law <law@redhat.com>
1741
1742 PR tree-optimization/69320
1743 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
1744 ranged object, do nothing if the RHS constant is not [0..1].
1745 (optimize_stmt): Comparing a boolean ranged object against a
1746 constant outside [0..1] results in a compile-time constant.
1747
1748 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
1749 test.
1750
1751 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
1752
1753 * doc/invoke.texi (Invoking GCC): Add new section to menu.
1754 (Option Summary): Update to reflect new section and moved options.
1755 (C++ Dialect Options): Move -fstats to new section.
1756 (Debugging Options): Move all dump, statistics, and other GCC
1757 developer options to new section. Rewrite section introduction
1758 and re-order remaining options to put the more basic ones first.
1759 (Optimization Options): Move -fira-verbose and -flto-report* to
1760 new section.
1761 (Developer Options): New section incorporating moved options.
1762 * doc/cppopts.texi (-dM): Update cross-reference.
1763
1764 2016-01-18 Richard Henderson <rth@redhat.com>
1765
1766 PR target/69176
1767 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
1768 operands to pseudo only if CSE is expected. Split long immediate
1769 operands only after reload, and for the stack pointer.
1770 (*add<GPI>3_pluslong): Remove.
1771 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
1772 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
1773 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
1774 (*add<GPI>3 peepholes): New.
1775 (*add<GPI>3 splitters): New.
1776 * config/aarch64/constraints.md (Upl): New.
1777 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
1778
1779 2016-01-18 Richard Biener <rguenther@suse.de>
1780
1781 PR tree-optimization/69297
1782 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
1783 stmt at most once.
1784 (vect_bb_vectorization_profitable_p): Clear visited flag again.
1785
1786 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1787
1788 PR middle-end/68542
1789 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
1790 of mixind vector and scalar types.
1791 (fold_relational_const): Add handling of vector
1792 comparison with boolean result.
1793 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
1794 comparison of vector operands with boolean result for EQ/NE only.
1795 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
1796 (verify_gimple_cond): Likewise.
1797 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
1798 valid type of VAL.
1799
1800 2016-01-18 Joseph Myers <joseph@codesourcery.com>
1801
1802 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
1803 !TARGET_OCTEON.
1804
1805 2016-01-18 Richard Biener <rguenther@suse.de>
1806
1807 PR middle-end/69308
1808 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
1809
1810 2016-01-18 Tom de Vries <tom@codesourcery.com>
1811
1812 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
1813
1814 2016-01-18 Tom de Vries <tom@codesourcery.com>
1815
1816 * omp-low.c (set_oacc_fn_attrib): Make extern.
1817 * omp-low.h (set_oacc_fn_attrib): Declare.
1818 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
1819 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
1820 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
1821 Add and handle function parameter oacc_kernels_p.
1822 (find_reduc_addr, get_omp_data_i_param): New function.
1823 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
1824 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
1825 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
1826 Calculate dominance info. Skip loops that are not in a kernels region
1827 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
1828 (pass_parallelize_loops::execute): Call parallelize_loops with
1829 oacc_kernels_p argument.
1830 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
1831 New member function.
1832 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
1833 * passes.def: Add argument to pass_parallelize_loops instantation.
1834
1835 2016-01-18 Tom de Vries <tom@codesourcery.com>
1836
1837 * tree-parloops.c (pass_parallelize_loops::execute): Allow
1838 pass_parallelize_loops to be run outside the loop pipeline.
1839
1840 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
1841
1842 * tree-scalar-evolution.c (follow_copies_to_constant): New.
1843 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
1844
1845 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
1846
1847 PR target/63679
1848 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
1849 using get_ref_base_and_extent.
1850 (equal_mem_array_ref_p): New.
1851 (hashable_expr_equal_p): Add call to previous.
1852
1853 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
1854
1855 PR target/63679
1856 * tree-sra.c (disqualified_constants, constant_decl_p): New.
1857 (sra_initialize): Allocate disqualified_constants.
1858 (sra_deinitialize): Free disqualified_constants.
1859 (disqualify_candidate): Update disqualified_constants when appropriate.
1860 (create_access): Scan for constant-pool entries as we go along.
1861 (scalarizable_type_p): Add check against type_contains_placeholder_p.
1862 (maybe_add_sra_candidate): Allow constant-pool entries.
1863 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
1864 (initialize_constant_pool_replacements): New.
1865 (sra_modify_assign): Avoid mangling assignments created by previous,
1866 and don't generate writes into constant pool.
1867 (sra_modify_function_body): Call initialize_constant_pool_replacements.
1868
1869 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1870
1871 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
1872 andnot instruction.
1873 (scalar_chain::convert_op): Likewise.
1874 * config/i386/i386.md (*andndi3_doubleword): New.
1875
1876 2016-01-18 Richard Biener <rguenther@suse.de>
1877
1878 PR tree-optimization/69170
1879 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
1880 building a vector from scalar results of a pattern stmt.
1881
1882 2016-01-18 Jakub Jelinek <jakub@redhat.com>
1883
1884 * haifa-sched.c (autopref_multipass_init): Work around
1885 -Wmaybe-uninitialized warning.
1886
1887 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1888
1889 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
1890 against the constant 0.
1891
1892 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1893
1894 PR tree-optimization/68799
1895 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
1896 look up phi candidates in the statement-candidate map.
1897 (phi_add_costs): Likewise.
1898 (record_phi_increments): Likewise.
1899 (phi_incr_cost): Likewise.
1900 (ncd_with_phi): Likewise.
1901 (all_phi_incrs_profitable): Likewise.
1902
1903 2016-01-17 Jakub Jelinek <jakub@redhat.com>
1904
1905 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
1906 -Wmaybe-uninitialized warning.
1907
1908 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
1909
1910 * doc/invoke.texi (Invoking GCC): Add new section to menu.
1911 (Option Summary): Update to reflect new section and moved options.
1912 (C++ Dialect Options): Move -fvtable-verify and related options.
1913 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
1914 and profiling-related options.
1915 (Optimization Options): Move profile generation options and
1916 -fstack-protector and related options.
1917 (Instrumentation Options): New section incorporating moved options.
1918 (Code Generation Options): Move -finstrument-functions and
1919 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
1920
1921 2016-01-16 Tom de Vries <tom@codesourcery.com>
1922
1923 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
1924
1925 2016-01-16 Tom de Vries <tom@codesourcery.com>
1926
1927 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
1928
1929 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
1930
1931 * hash-table.h (hash_table::empty): Turn into an inline wrapper
1932 that checks whether the table is already empty. Rename the
1933 original implementation to...
1934 (hash_table::empty_slot): ...this new private function.
1935
1936 2016-01-15 David Malcolm <dmalcolm@redhat.com>
1937
1938 PR diagnostic/68899
1939 * diagnostic-show-locus.c (layout::print_source_line): Move x
1940 offset of line until after call to
1941 get_line_width_without_trailing_whitespace.
1942
1943 2016-01-15 Jeff Law <law@redhat.com>
1944
1945 PR tree-optimization/69270
1946 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
1947 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
1948 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
1949 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
1950 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
1951 ssa_name_has_boolean_range and constant_boolean_node.
1952
1953 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
1954
1955 PR rtl-optimization/69030
1956 * lra-spills.c (remove_pseudos): Check nrefs and make the function
1957 returning bool.
1958 (spill_pseudos): Delete debug insn for dead pseudo.
1959 (lra_spill): Initiate spill_hard_reg and slots memory separately.
1960
1961 2016-01-15 Jiong Wang <jiong.wang@arm.com>
1962
1963 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
1964 New.
1965 (TYPES_UNOPUS): Likewise.
1966 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
1967 builtin type, from UNOP to UNOPUS.
1968 (lbtruncuv4sf): Likewise.
1969 (lbtruncuv2df): Likewise.
1970 (lrounduv2sf): Likewise.
1971 (lrounduv4sf): Likewise.
1972 (lrounduv2df): Likewise.
1973 (lroundusf): Likewise.
1974 (lroundusf): Likewise.
1975 (lceiluv2sf): Likewise.
1976 (lceiluv4sf): Likewise.
1977 (lceiluv2df): Likewise.
1978 (lceilusf): Likewise.
1979 (lceiludf): Likewise.
1980 (lflooruv2sf): Likewise.
1981 (lflooruv4sf): Likewise.
1982 (lflooruv2df): Likewise.
1983 (lfloorusf): Likewise.
1984 (lfloorudf): Likewise.
1985 (lfrintnuv2sf): Likewise.
1986 (lfrintnuv4sf): Likewise.
1987 (lfrintnuv2df): Likewise.
1988 (lfrintnusf): Likewise.
1989 (lfrintnudf): Likewise.
1990 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
1991 conversion.
1992 (vcvtq_u32_f32): Likewise.
1993 (vcvtq_u64_f64): Likewise.
1994 (vcvta_u32_f32): Likewise.
1995 (vcvtaq_u32_f32): Likewise.
1996 (vcvtaq_u64_f64): Likewise.
1997 (vcvtm_u32_f32): Likewise.
1998 (vcvtmq_u32_f32): Likewise.
1999 (vcvtmq_u64_f64): Likewise.
2000 (vcvtn_u32_f32): Likwise.
2001 (vcvtnq_u32_f32): Likewise.
2002 (vcvtnq_u64_f64): Likewise.
2003 (vcvtp_u32_f32): Likewise.
2004 (vcvtpq_u32_f32): Likewise.
2005 (vcvtpq_u64_f64): Likewise.
2006 (vcvtmd_u64_f64): Likewise.
2007 (vcvtms_u32_f32): Likewise.
2008 (vcvtad_u64_f64): Likewise.
2009 (vcvtas_u32_f32): Likewise.
2010 (vcvtnd_u64_f64): Likewise.
2011 (vcvtns_u32_f32): Likewise.
2012 (vcvtpd_u64_f64): Likewise.
2013 (vcvtps_u32_f32): Likewise.
2014
2015 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2016
2017 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
2018 CSEL of zero_extended registers.
2019
2020 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2021
2022 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
2023 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
2024
2025 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2026
2027 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
2028 false when argument string is not found in the attributes table
2029 at all.
2030
2031 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
2032
2033 PR target/68609
2034 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
2035 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
2036 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
2037 precision estimate.
2038
2039 2016-01-15 Richard Biener <rguenther@suse.de>
2040
2041 PR tree-optimization/66856
2042 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
2043 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
2044 (vect_create_new_slp_node): Increment stmt reference count.
2045 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
2046 an SLP tree before swapping operands.
2047 (vect_build_slp_tree): Likewise.
2048 (destroy_bb_vec_info): Free stmt info after SLP instances.
2049 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
2050 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
2051 (STMT_VINFO_NUM_SLP_USES): New macro.
2052
2053 2016-01-15 Richard Biener <rguenther@suse.de>
2054
2055 PR debug/69137
2056 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
2057 (add_linkage_name): ... here.
2058 (gen_typedef_die): Use add_linkage_name_raw instead of
2059 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
2060 if necessary.
2061
2062 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
2063
2064 * gimplify.c (oacc_default_clause): Decode reference and pointer
2065 types for both kernels and parallel regions.
2066
2067 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 PR middle-end/69246
2070 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
2071
2072 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
2073
2074 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
2075 (convert_scalars_to_vector): Likewise.
2076
2077 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
2078
2079 * doc/extend.texi (Type Traits): Fix grammar.
2080
2081 2016-01-15 Martin Jambor <mjambor@suse.cz>
2082
2083 * tree-inline.c (remap_decl): Use existing dclarations if
2084 remapping a type and prevent_decl_creation_for_types.
2085 (replace_locals_stmt): Do an initial remapping of non-VLA typed
2086 decls first. Do real remapping with
2087 prevent_decl_creation_for_types set.
2088 * tree-inline.h (copy_body_data): New field
2089 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
2090 padding.
2091
2092 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
2093
2094 * config/s390/s390.opt (mmvcle): More verbose help text.
2095
2096 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
2097
2098 * config/s390/s390.opt: Add period to -mzvector option text.
2099
2100 2016-01-15 Richard Biener <rguenther@suse.de>
2101
2102 PR tree-optimization/68961
2103 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
2104 of invariants in stores again.
2105
2106 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
2107
2108 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
2109
2110 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
2111
2112 * config/i386/i386.c (ix86_expand_branch): Don't split
2113 DI mode xor instruction to SI mode.
2114
2115 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
2116
2117 PR ipa/68148
2118 * ipa-icf.c (sem_function::merge): Virtual functions may become
2119 reachable even if they address is not taken and there are no
2120 idrect calls.
2121
2122 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
2123
2124 * lto-streamer-out.c (subtract_estimated_size): New function.
2125 (get_symbol_initial_value): Use it.
2126
2127 2016-01-15 Christian Bruel <christian.bruel@st.com>
2128
2129 PR target/65837
2130 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
2131 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
2132 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
2133 use add_builtin_function_ext_scope instead of add_builtin_function.
2134 (neon_set_p, neon_crypto_set_p): Remove.
2135 (arm_init_builtins): Always call arm_init_neon_builtins and
2136 arm_init_crypto_builtins.
2137 (arm_expand_builtin): Check that builtins are allowed for the arch.
2138 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
2139 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
2140 arm_init_neon_builtins call.
2141
2142 2016-01-15 Richard Biener <rguenther@suse.de>
2143
2144 PR tree-optimization/69117
2145 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
2146 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
2147 of the leader conservatively.
2148 (free_scc_vn): Restore original SSA name infos.
2149
2150 2016-01-14 Jeff Law <law@redhat.com>
2151
2152 PR tree-optimization/69270
2153 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
2154 single bit of precision, verify it's also unsigned.
2155 (record_edge_info): Use constant_boolean_node rather than fold_convert
2156 to convert boolean_true/boolean_false to the right type.
2157
2158 2016-01-14 Richard Henderson <rth@redhat.com>
2159
2160 PR rtl-opt/69014
2161 * loop-doloop.c (record_reg_sets): New.
2162 (doloop_optimize): Reject the transform if the sequence
2163 clobbers registers live at the end of the loop block.
2164 (doloop_optimize_loops): Enable df_live if needed.
2165
2166 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2167
2168 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
2169 * gcc/config/rs6000/rs6000.c: Likewise.
2170 * gcc/config/rs6000/rs6000.h: Likewise.
2171 * gcc/config/rs6000/rs6000.md: Likewise.
2172 * gcc/doc/extend.texi: Likewsie.
2173
2174 2016-01-14 Jeff Law <law@redhat.com>
2175
2176 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
2177 typo.
2178
2179 2016-01-14 Richard Henderson <rth@redhat.com>
2180
2181 PR c/69272
2182 PR tree-opt/68964
2183 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
2184 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
2185 instead of builtin_decl_declared_p to test for declaration.
2186
2187 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
2188
2189 * doc/loop.texi (Loop Analysis and Representation): Document
2190 loop_depth function.
2191
2192 2016-01-14 Tom de Vries <tom@codesourcery.com>
2193
2194 PR tree-optimization/68773
2195 * omp-low.c (expand_omp_target): Don't set force_output.
2196 * varpool.c (varpool_node::get_create): Same.
2197 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
2198 offload_funcs with force_output.
2199
2200 2016-01-14 Jakub Jelinek <jakub@redhat.com>
2201
2202 PR debug/69244
2203 * lra-eliminations.c (move_plus_up): Don't change anything if either
2204 the outer or inner subreg mode is not MODE_INT.
2205 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
2206 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
2207
2208 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
2209
2210 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
2211 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
2212 reduc_uplus_@var{m}): Remove.
2213 * expr.c (expand_expr_real_2): Remove expansion path for
2214 reduc_[us](min|max|plus) optabs.
2215 * optabs-tree.c (scalar_reduc_to_vector): Remove.
2216 * optabs-tree.h (scalar_reduc_to_vector): Remove.
2217 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
2218 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
2219 * tree-vect-loop.c (vectorizable_reduction): Remove test for
2220 reduc_[us](min|max|plus) optabs.
2221
2222 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
2223
2224 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
2225 (reduc_plus_scal_v2sf): New.
2226 (reduc_smax_v2sf): Rename to...
2227 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
2228 (reduc_smin_v2sf): Rename to...
2229 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
2230
2231 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
2232
2233 * alias.c (compare_base_symbol_refs): New function.
2234 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
2235 it.
2236
2237 2016-01-14 Jakub Jelinek <jakub@redhat.com>
2238
2239 PR middle-end/68146
2240 PR tree-optimization/69155
2241 * tree-complex.c: Include cfganal.h.
2242 (phis_to_revisit): New variable.
2243 (extract_component): Add phiarg_p argument. Assert that returned
2244 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
2245 (update_phi_components): Partly rewrite to use loop over real/imag
2246 components instead of code duplication. If extract_component returns
2247 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
2248 create_tmp_reg into the PHI node instead, and mention the phi triplet
2249 in phis_to_revisit.
2250 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
2251 in phis_to_revisit at the end.
2252
2253 2016-01-14 Richard Biener <rguenther@suse.de>
2254
2255 PR tree-optimization/68060
2256 * tree-vect-loop.c (vect_is_simple_reduction): Check the
2257 outer loop reduction is only used in the inner loop before
2258 detecting a double reduction.
2259
2260 2016-01-14 Jakub Jelinek <jakub@redhat.com>
2261
2262 PR target/68269
2263 * combine.c (expand_field_assignment): Punt if compute_mode is
2264 unsupported scalar mode.
2265
2266 2016-01-14 Richard Biener <rguenther@suse.de>
2267
2268 PR tree-optimization/66856
2269 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
2270 SLP node only if it built successfully.
2271 (vect_analyze_slp_instance): Adjust.
2272
2273 2016-01-14 Jeff Law <law@redhat.com>
2274
2275 PR tree-optimization/69270
2276 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
2277 (record_edge_info): Use it. Convert boolean_{true,false}_node
2278 to the type of op0.
2279
2280 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
2281
2282 PR ipa/66487
2283 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
2284 use block_ultimate_origin
2285 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
2286
2287 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
2288
2289 * doc/invoke.texi (Submodel Options): Rename section to
2290 "Machine-Dependent Options" to better reflect its content.
2291 Rewrite introductory text to remove archaic CPU names.
2292 Update references.
2293
2294 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
2295
2296 * doc/invoke.texi (Code Gen Options): Move section up in file,
2297 before target-specific options. Update menu and option summary
2298 to reflect the new section ordering.
2299
2300 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
2301
2302 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
2303 (C++ Dialect Options): Add cross-reference to -std option.
2304 * doc/standards.texi (C++ Language): Document C++14 support.
2305
2306 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2307
2308 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
2309 for pack/unpack functions for __ibm128.
2310 (PACK_IF): Likewise.
2311 (UNPACK_IF): Likewise.
2312
2313 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2314 support for __ibm128 pack/unpack functions.
2315 (rs6000_invalid_builtin): Likewise.
2316 (rs6000_init_builtins): Likewise.
2317 (rs6000_opt_masks): Likewise.
2318
2319 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
2320 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
2321 functions
2322 (RS6000_BTM_COMMON): Likewise.
2323
2324 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
2325 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
2326 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
2327 128-bit floating point. Add support for the double values to be
2328 in Altivec registers for TF/IF packing and unpacking, but restrict
2329 TD packing sub-fields to be FPR registers. Don't allow overlapped
2330 register support for packing. Allow pack inputs to be memory
2331 locations. Don't build generator functions for unpack<mode>_dm
2332 and unpack<mode>_nodm.
2333 (unpack<mode>_dm): Likewise.
2334 (unpack<mode>_nodm): Likewise.
2335 (pack<mode>): Likewise.
2336
2337 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
2338 built-in functions to pack/unpack explicit __ibm128 values.
2339 (__builtin_unpack_ibm128): Likewise.
2340
2341 * doc/extend.texi (PowerPC Built-in Functions): Document
2342 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
2343
2344 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
2345
2346 PR c/66208
2347 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
2348 Add new arg loc and pass it down as context.
2349 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
2350 to the location to use for the warning.
2351 (check_function_arguments): New arg loc. All callers changed. Pass
2352 it to check_function_nonnull.
2353 * c-common.h (check_function_arguments): Adjust declaration.
2354
2355 2016-01-13 Jakub Jelinek <jakub@redhat.com>
2356
2357 PR tree-optimization/69156
2358 * gimple.c (validate_type): Removed.
2359 (gimple_builtin_call_types_compatible_p): Use
2360 useless_type_conversion_p instead of validate_type.
2361 * value-prof.c (gimple_stringop_fixed_value): Fold
2362 icall_size to correct type.
2363
2364 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
2365
2366 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
2367 effects.
2368
2369 2016-01-13 Richard Henderson <rth@redhat.com>
2370
2371 PR tree-opt/68964
2372 * target.def (builtin_tm_load, builtin_tm_store): Remove.
2373 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
2374 (ix86_builtin_tm_store): Remove.
2375 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
2376 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
2377 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
2378 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
2379 * doc/tm.texi: Rebuild.
2380
2381 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
2382 (BUILT_IN_TM_MEMCPY_RTWN): New.
2383 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
2384 fallback from vector to integer helpers.
2385 (build_tm_load): Handle vector types directly, instead of
2386 via target hook.
2387 (build_tm_store): Likewise.
2388 (expand_assign_tm): Prepare for register types not handled by
2389 the above. Copy them to memory and use memcpy.
2390 * tree.c (tm_define_builtin): New.
2391 (find_tm_vector_type): New.
2392 (build_tm_vector_builtins): New.
2393 (build_common_builtin_nodes): Call it.
2394
2395 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
2396
2397 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
2398 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
2399
2400 2016-01-13 Tom de Vries <tom@codesourcery.com>
2401
2402 PR tree-optimization/69169
2403 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
2404 handled_struct_type param.
2405 (create_variable_info_for, intra_create_variable_infos): Call
2406 create_variable_info_for_1 with extra arg.
2407
2408 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
2409
2410 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
2411 and "armv8.1-a+crc" entries.
2412
2413 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
2414
2415 PR target/69228
2416 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
2417 Change first operand predicate from register_or_constm1_operand
2418 to register_operand.
2419 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
2420 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
2421 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
2422 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
2423 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
2424 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
2425 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
2426 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
2427 comparison with constm1_rtx from vec_prefetch_gen part.
2428
2429 2016-01-13 Richard Biener <rguenther@suse.de>
2430
2431 PR tree-optimization/69013
2432 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
2433 Exchange assert for a test.
2434
2435 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2436
2437 PR target/69247
2438 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
2439
2440 2016-01-13 Richard Biener <rguenther@suse.de>
2441
2442 PR tree-optimization/69242
2443 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
2444 assert with a check.
2445
2446 2016-01-13 Richard Biener <rguenther@suse.de>
2447
2448 PR tree-optimization/69186
2449 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2450 Properly guard vect_update_misalignment_for_peel call.
2451
2452 2016-01-12 Jeff Law <law@redhat.com>
2453
2454 PR tree-optimization/pr67755
2455 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
2456 "need_profile_correction".
2457 (thread_block_1): Initialize new field to false by default. If we
2458 have multiple thread paths through a common joiner to different
2459 final targets, then set new field to true.
2460 (compute_path_counts): Only do count adjustment when it's really
2461 needed.
2462
2463 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
2464
2465 * doc/invoke.texi (Spec Files): Move section down in file, past
2466 all command-line option descriptions.
2467
2468 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2469
2470 PR middle-end/54809
2471 * doc/gty.texi: Remove documentation of mark_hook.
2472 * gengtype.c (struct write_types_data): Remove code to support
2473 mark_hook attribute.
2474 (walk_type): Likewise.
2475 (write_func_for_structure): Likewise.
2476
2477 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
2478
2479 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
2480 Directory Options, and -specs= to Overall Options.
2481 (Overall Options): Adjust similarly. Reorder to group related
2482 options together. Make -specs= cross-reference the spec file details.
2483 (Directory Options): Adjust similarly.
2484
2485 2016-01-12 Jeff Law <law@redhat.com>
2486
2487 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
2488
2489 2016-01-12 Olivier Hainque <hainque@adacore.com>
2490
2491 * gcc.c (spec_undefvar_allowed): New global.
2492 (process_command): Set to true when running for --version or --help,
2493 alone or together.
2494 (getenv_spec_function): When the variable is not defined, use the
2495 variable name as the variable value if we're allowed not to issue
2496 a fatal error.
2497
2498 2016-01-12 Bin Cheng <bin.cheng@arm.com>
2499
2500 PR tree-optimization/68911
2501 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
2502 information computed for expression "init + nit * step".
2503
2504 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
2505
2506 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
2507 about name of GCC executable. Remove deleted node from menu.
2508 (Directory Options) <-B>: Remove cross-reference to deleted node.
2509 (Target Options): Delete section.
2510
2511 2016-01-12 Christian Bruel <christian.bruel@st.com>
2512
2513 PR target/69180
2514 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
2515 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
2516
2517 2016-01-12 Jakub Jelinek <jakub@redhat.com>
2518
2519 PR target/69198
2520 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
2521 aligned_mem is properly set for AVX512-VL floating point masked
2522 stores.
2523
2524 PR target/69175
2525 * ifcvt.c (cond_exec_process_if_block): When removing the last
2526 insn from then_bb, remove also any possible barriers that follow it.
2527
2528 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
2529
2530 PR target/68456
2531 PR target/69226
2532 * config/i386/iamcu.h (SIZE_TYPE): New macro.
2533 (PTRDIFF_TYPE): Likewise.
2534 (WCHAR_TYPE): Likewise.
2535 (WCHAR_TYPE_SIZE): Likewise.
2536 (STDINT_LONG32): Likewise.
2537
2538 2016-01-12 Richard Biener <rguenther@suse.de>
2539
2540 PR tree-optimization/69053
2541 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
2542 convert initial value for cond reductions.
2543
2544 2016-01-12 Richard Biener <rguenther@suse.de>
2545
2546 PR tree-optimization/69007
2547 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
2548 widen_sum after dot_prod and sad.
2549
2550 2016-01-12 Richard Biener <rguenther@suse.de>
2551
2552 PR tree-optimization/69168
2553 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
2554 pattern stmt SLP type.
2555 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
2556 end up unused so cope with that case.
2557
2558 2016-01-12 Richard Biener <rguenther@suse.de>
2559
2560 PR tree-optimization/69157
2561 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2562 stmts def type only during analyze phase.
2563 (vectorizable_call): Likewise.
2564 (vectorizable_simd_clone_call): Likewise.
2565 (vectorizable_conversion): Likewise.
2566 (vectorizable_assignment): Likewise.
2567 (vectorizable_shift): Likewise.
2568 (vectorizable_operation): Likewise.
2569 (vectorizable_store): Likewise.
2570 (vectorizable_load): Likewise.
2571
2572 2016-01-12 Richard Biener <rguenther@suse.de>
2573
2574 PR tree-optimization/69174
2575 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
2576 space.
2577 (vectorizable_load): Properly compute the number of loads needed
2578 for permuted strided SLP loads and do not spuriously assign
2579 to SLP_TREE_VEC_STMTS.
2580
2581 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
2582
2583 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
2584 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
2585 (MD_EXEC_PREFIX): Remove.
2586 (MD_STARTFILE_PREFIX) Removee.
2587 (FILE_NAME_ABSOLUTE_P): Remove.
2588 (CPP_SPEC): Do not read macros from sys/version.h.
2589 (LINK_COMMAND_SPEC): Remove.
2590 (LOCAL_INCLUDE_DIR): Remove.
2591 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
2592 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
2593 (POST_LINK_SPEC): Define to invoke stubify after linker
2594 (LIBSTDCXX): Remove define
2595 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
2596 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
2597 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
2598 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
2599 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
2600 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
2601 (i386_djgpp_asm_named_section): Add propotype of new procedure
2602
2603 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
2604 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
2605 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
2606 in config/i386/djgpp.h).
2607 (STANDARD_STARTFILE_PREFIX_2): Define identical to
2608 STANDARD_STARTFILE_PREFIX_1.
2609 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
2610 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
2611 installation errors.
2612 (MAX_OFILE_ALIGNMENT): Define to 128.
2613 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
2614
2615 * config/i386/djgpp.c: New file. Add implementation of
2616 i386_djgpp_asm_named_section.
2617
2618 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
2619
2620 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
2621 Add rule for building djgpp.o.
2622
2623 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2624
2625 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
2626 (rtx_is_swappable_p): Reductions are swappable.
2627 (insn_is_swappable_p): V2DF reductions are swappable.
2628
2629 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
2630
2631 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
2632 reloads for other unsupported memory operands.
2633
2634 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2635 Jim Wilson <jim.wilson@linaro.org>
2636
2637 PR target/69194
2638 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
2639 copy_to_mode_reg instead of force_reg.
2640
2641 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
2642
2643 PR target/69225
2644 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
2645 TARGET_80387 is true.
2646
2647 2016-01-11 Jakub Jelinek <jakub@redhat.com>
2648
2649 PR target/69071
2650 * lra-eliminations.c (move_plus_up): Only move plus up
2651 if subreg of the constant can be simplified into constant
2652 and use the simplified subreg of the constant instead of
2653 the original constant.
2654
2655 * fold-const.c (fold_convertible_p): Don't return true
2656 for conversion of VECTOR_TYPE to same sized integral type.
2657 (fold_convert_loc): Fix up formatting. Fold conversion of
2658 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
2659 instead of NOP_EXPR.
2660
2661 PR tree-optimization/69214
2662 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
2663 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2664 Formatting fix.
2665
2666 PR tree-optimization/69207
2667 * tree-vect-slp.c (vect_get_constant_vectors): For
2668 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
2669 fold_convertible_p to vector_type's element type, and always
2670 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
2671
2672 2016-01-11 Richard Biener <rguenther@suse.de>
2673
2674 PR tree-optimization/69173
2675 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
2676 fixup the cycle if all stmts are in a pattern.
2677
2678 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
2679
2680 PR middle-end/68999
2681 * alias.c (base_alias_check): Move check for addresses with
2682 alignment ANDs before the call for compare_base_decls.
2683 (memrefs_conflict_p): Return -1 for different decls
2684 that went through alignment adjustments.
2685
2686 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2687
2688 PR rtl-optimization/68796
2689 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
2690 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
2691 and QImode comparisons against zero with CC_NZmode.
2692 * config/aarch64/iterators.md (short_mask): New mode_attr.
2693
2694 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
2695
2696 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
2697 (<avx512>_store<mode>_mask): Likewise.
2698
2699 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
2700 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2701
2702 PR rtl-optimization/68841
2703 * ifcvt.c (struct noce_if_info): Add orig_x field.
2704 (bbs_ok_for_cmove_arith): Add to_rename parameter.
2705 Don't record conflicts on to_rename if it's present.
2706 Allow memory destinations in sets.
2707 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
2708 blocks, passing orig_x to the checks.
2709 (noce_process_if_block): Set if_info->orig_x appropriately.
2710
2711 2016-01-11 Tom de Vries <tom@codesourcery.com>
2712
2713 PR tree-optimization/69069
2714 * tree-parloops.c (create_parallel_loop): Add missing phi args.
2715
2716 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
2717
2718 PR rtl-optimization/68920
2719 * config/i386/i386.c (ix86_option_override_internal): Restrict number
2720 of conditional moves for RTL if-conversion to 1 for
2721 TARGET_ONE_IF_CONV_INSN.
2722 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
2723 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
2724 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
2725 parameter to restirct number of conditional moves for
2726 RTL if-conversion.
2727 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
2728 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
2729 conditionl moves.
2730
2731 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
2732
2733 PR bootstrap/69123
2734 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
2735 onepart vars. Fix typo in comment. Fix reversed condition in
2736 unshare test.
2737 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
2738
2739 PR bootstrap/69123
2740 * var-tracking.c (dump_onepart_variable_differences): New.
2741 (dataflow_set_different): If a detailed dump is requested,
2742 delay early returns and dump differences between onepart
2743 variables present before and after, and added variables.
2744
2745 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
2746
2747 PR target/69010
2748 * expr.c (expand_expr_real_1): For boolean vector constants
2749 with a scalar mode use const_scalar_mask_from_tree.
2750 (const_scalar_mask_from_tree): New.
2751 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
2752 assigned to a mask type to handle constants.
2753
2754 2016-01-11 Martin Jambor <mjambor@suse.cz>
2755
2756 PR ipa/69044
2757 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
2758 useless parameters if we cannot change function signature.
2759
2760 2016-01-11 Martin Jambor <mjambor@suse.cz>
2761
2762 PR ipa/66616
2763 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
2764 flag.
2765
2766 2016-01-11 Tom de Vries <tom@codesourcery.com>
2767
2768 PR tree-optimization/69109
2769 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
2770 latch with phi.
2771
2772 2016-01-11 Tom de Vries <tom@codesourcery.com>
2773
2774 PR tree-optimization/69108
2775 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
2776 res is not used in a phi.
2777
2778 2016-01-11 Yury Gribov <y.gribov@samsung.com>
2779
2780 PR 67425
2781 * common.opt (frandom-seed): Fix parameter name.
2782 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
2783
2784 2016-01-11 Tom de Vries <tom@codesourcery.com>
2785
2786 PR tree-optimization/69058
2787 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
2788 not supported.
2789
2790 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * config/arc/arc.opt (mdiv-rem): Add period to the end.
2793 (mcode-density): Likewise.
2794
2795 2016-01-10 Tom de Vries <tom@codesourcery.com>
2796
2797 PR tree-optimization/69062
2798 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
2799 (parallelize_loops): Don't paralelize loop that has phi with address
2800 arg.
2801
2802 2016-01-10 Tom de Vries <tom@codesourcery.com>
2803
2804 PR tree-optimization/69039
2805 * tree-parloops.c (try_create_reduction_list): Only allow single exit
2806 phi for reduction.
2807
2808 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
2809
2810 PR middle-end/68743
2811 * match.pd: Require target has function_c99_misc before doing
2812 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
2813
2814 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
2815
2816 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
2817 use GMPINC.
2818 * configure: Regenerate.
2819
2820 2016-01-09 Jakub Jelinek <jakub@redhat.com>
2821
2822 PR middle-end/50865
2823 PR tree-optimization/69097
2824 * fold-const.h (expr_not_equal_to): New prototype.
2825 * fold-const.c: Include stringpool.h and tree-ssanames.h.
2826 (expr_not_equal_to): New function.
2827 * match.pd (X % -Y is the same as X % Y): Don't optimize
2828 unless X is known not to be equal to minimum or Y is known
2829 not to be equal to -1.
2830 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
2831 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
2832 (simplify_stmt_using_ranges): Adjust caller.
2833 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
2834 substitute_and_fold.
2835
2836 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
2837
2838 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
2839 w/o DECL_NAME.
2840
2841 2016-01-08 Jakub Jelinek <jakub@redhat.com>
2842
2843 PR tree-optimization/69167
2844 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
2845 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
2846 ops[0] comparison.
2847 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2848
2849 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
2850 Richard Biener <rguenther@suse.de>
2851
2852 PR tree-optimization/68707
2853 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
2854 instances that can be handled via vect_load_lanes.
2855
2856 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
2857
2858 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
2859 if we can't determine address equivalence.
2860 * alias.c (compare_base_decl): Update for changed return value of
2861 symtab_node::equal_address_to.
2862
2863 2016-01-08 Jason Merrill <jason@redhat.com>
2864
2865 PR c++/68983
2866 PR c++/67557
2867 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
2868 * expr.c (store_field): Not here.
2869 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
2870 call with TREE_ADDRESSABLE type.
2871 * tree-cfg.c (verify_gimple_call): Adjust.
2872
2873 2016-01-08 Olivier Hainque <hainque@adacore.com>
2874
2875 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
2876 libc_internal.
2877
2878 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
2879
2880 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
2881 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
2882 (reduc_smin_v2sf): Rename to...
2883 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
2884 (reduc_splus_v2sf): Rename to...
2885 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
2886
2887 2016-01-08 Jakub Jelinek <jakub@redhat.com>
2888
2889 PR tree-optimization/69162
2890 * gimplify.c (gimplify_va_arg_expr): Encode original type of
2891 valist argument in another argument.
2892 (gimplify_modify_expr): Adjust for the above change. Cleanup.
2893 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
2894 to determine the va_list type, build a MEM_REF instead of
2895 build_fold_indirect_ref.
2896
2897 PR tree-optimization/69172
2898 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
2899 gimple_build.
2900
2901 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
2902
2903 PR tree-optimization/67781
2904 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2905 and cmpnop in two steps: first the ones not accessed in original
2906 gimple expression in a endian independent way and then the ones not
2907 accessed in the final result in an endian-specific way.
2908
2909 2016-01-08 Jakub Jelinek <jakub@redhat.com>
2910
2911 PR tree-optimization/69083
2912 * tree-vect-slp.c (vect_get_constant_vectors): For
2913 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
2914 element type. If op is fold_convertible_p to vector_type's element
2915 type, use NOP_EXPR instead of VCE.
2916
2917 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
2918
2919 PR rtl-optimization/67778
2920 PR rtl-optimization/68634
2921 PR rtl-optimization/68909
2922 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
2923 block from the stack until done with it. Remove a superfluous
2924 bitmap set. Remove a superfluous bitmap test.
2925
2926 2016-01-07 Martin Sebor <msebor@redhat.com>
2927
2928 PR c/68966
2929 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
2930 constraint on the type of arguments.
2931
2932 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
2933
2934 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
2935 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
2936 unaligned_access on the gcc_options set.
2937 * config/arm/arm.c (arm_option_override_internal): Use
2938 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
2939
2940 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
2941
2942 PR target/69140
2943 * config/i386/i386.c (ix86_frame_pointer_required): Enable
2944 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
2945
2946 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
2947
2948 Revert
2949 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
2950
2951 PR target/69140
2952 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
2953 depending on frame_pointer_needed before remaining integer and SSE
2954 registers are saved.
2955
2956 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
2957
2958 PR 1078
2959 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
2960
2961 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
2962
2963 PR target/69171
2964 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
2965 Use the "xBm" constraint.
2966 (float<sseintvecmodelower><mode>2<mask_name><round_name):
2967 Likewise.
2968 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
2969 (sse_cvtsi2ssq<round_name>): Likewise.
2970 (sse_cvtss2si<round_name>): Likewise.
2971 (sse_cvtss2siq<round_name>): Likewise.
2972 (sse2_cvtsi2sdq<round_name>): Likewise.
2973 (sse2_cvtsd2si<round_name>): Likewise.
2974 (sse2_cvtsd2siq<round_name>): Likewise.
2975 * config/i386/subst.md (round_nimm_scalar_predicate): New
2976 predicate.
2977
2978 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
2979
2980 PR middle-end/67639
2981 * varasm.c (make_decl_rtl): Mark invalid register vars as
2982 DECL_EXTERNAL.
2983
2984 PR rtl-optimization/66206
2985 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
2986 All callers changed.
2987
2988 2016-01-07 Jakub Jelinek <jakub@redhat.com>
2989
2990 PR tree-optimization/69141
2991 * tree-ssa-pre.c: Include langhooks.h.
2992 (eliminate_dom_walker::before_dom_children): Use
2993 lang_hooks.decl_printable_name instead of
2994 cgraph_node::get ()->name ().
2995
2996 PR middle-end/68960
2997 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
2998 it and DECL_ALIGN too.
2999
3000 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
3001
3002 * config/mips/mips-ftypes.def: Sort to lexicographical order.
3003
3004 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
3005
3006 PR target/69140
3007 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3008 depending on frame_pointer_needed before remaining integer and SSE
3009 registers are saved.
3010
3011 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3012
3013 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
3014 mode iterator with VSX_M2.
3015 (*p9_vecstore_<mode>): Likewise.
3016 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
3017 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
3018 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
3019 (define_split for VSX_LE128 stores): Likewise.
3020 (define_peephole2 for TImode LE swaps): Likewise.
3021 (define_split for VSX_LE128 post-reload stores): Likewise.
3022
3023 2016-01-06 Marek Polacek <polacek@redhat.com>
3024
3025 PR sanitizer/69099
3026 * convert.c (convert_to_integer_1): Adjust call to
3027 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
3028 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
3029 EXPR instead of ARG.
3030 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
3031
3032 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
3033
3034 PR 1078
3035 * doc/extend.texi (RL78 Variable Attributes): New section.
3036
3037 2016-01-05 Marek Polacek <polacek@redhat.com>
3038
3039 PR c/69104
3040 * builtins.c (get_memmodel): Use expansion point location rather than
3041 the input location. Call warning_at rather than warning.
3042 (expand_builtin_atomic_compare_exchange): Likewise.
3043 (expand_builtin_atomic_load): Likewise.
3044 (expand_builtin_atomic_store): Likewise.
3045 (expand_builtin_atomic_clear): Likewise.
3046
3047 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
3048
3049 PR target/68991
3050 * config/i386/i386.c (ix86_expand_vector_logical_operator):
3051 Replace nonimmediate_operand with vector_operand.
3052 * config/i386/predicates.md (vector_operand): New predicate.
3053 (general_vector_operand): Replace nonimmediate_operand with
3054 vector_operand.
3055 * config/i386/sse.md: Replace nonimmediate_operand with
3056 vector_operand and m constraint with Bm constraint on SSE
3057 patterns with 16-byte memory operand.
3058 * config/i386/subst.md (round_nimm_predicate): Replace
3059 nonimmediate_operand with vector_operand.
3060 (round_saeonly_nimm_predicate): Likewise.
3061 (round_saeonly_nimm_scalar_predicate): New.
3062
3063 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
3064
3065 PR target/68991
3066 * config/i386/constraints.md (Bm): New constraint.
3067 * config/i386/predicates.md (vector_memory_operand): New
3068 predicate.
3069 * config/i386/sse.md: Replace xm with xBm in plusminus and
3070 any_logic patterns.
3071
3072 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
3073
3074 PR 1078
3075 * doc/extend.texi (V850 Function Attributes): New section.
3076 (V850 Variable Attributes): New section.
3077
3078 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
3079
3080 PR 1078
3081 * doc/extend.texi (MicroBlaze Function Attributes): Document
3082 interrupt_handler and fast_interrupt attributes.
3083
3084 2016-01-05 Sergei Trofimovich <siarheit@google.com>
3085
3086 PR other/60465
3087 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
3088 for local symbolic operands.
3089 * config/ia64/predicates.md (local_symbolic_operand64): New
3090 predicate.
3091
3092 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3093
3094 PR rtl-optimization/68651
3095 * combine.c (combine_simplify_rtx): Canonicalize x + x into
3096 x << 1.
3097
3098 2016-01-05 Nathan Sidwell <nathan@acm.org>
3099
3100 * alias.c (compare_base_decls): Use symtab_node::get.
3101
3102 2016-01-05 Nick Clifton <nickc@redhat.com>
3103
3104 PR target/68770
3105 * ira-costs.c (copy_cost): Initialise the t_icode field of the
3106 secondary_reload_info structure.
3107
3108 PR target/66655
3109 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
3110 decls if weak support is available.
3111
3112 2016-01-04 Martin Sebor <msebor@redhat.com>
3113
3114 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
3115
3116 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
3117
3118 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3119 OPTION_MASK_P9_DFORM.
3120
3121 * config/rs6000/constraints.md (wo constraint): New constraint for
3122 ISA 3.0 (power9).
3123
3124 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
3125 for wo constraint.
3126 (rs6000_init_hard_regno_mode_ok): Likewise.
3127
3128 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
3129 wo constraint.
3130
3131 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
3132 expanders not to have constraints. Add support for ISA 3.0 xxperm
3133 instruction. Add support for fusing xxlor with xxperm.
3134 (altivec_vperm_<mode>_internal): Likewise.
3135 (altivec_vperm_v8hiv16qi): Likewise.
3136 (altivec_vperm_<mode>v16q): Likewise.
3137 (altivec_vperm_<mode>_uns): Likewise.
3138 (vperm_v8hiv4si): Likewise.
3139 (vperm_v16qiv8hi): Likewise.
3140
3141 * doc/md.texi (RS/6000 constraints): Document wo constraint.
3142
3143 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3144
3145 Update copyright years.
3146
3147 * gcc.c (process_command): Update copyright notice dates.
3148 * gcov-dump.c (print_version): Ditto.
3149 * gcov.c (print_version): Ditto.
3150 * gcov-tool.c (print_version): Ditto.
3151 * gengtype.c (create_file): Ditto.
3152 * doc/cpp.texi: Bump @copying's copyright year.
3153 * doc/cppinternals.texi: Ditto.
3154 * doc/gcc.texi: Ditto.
3155 * doc/gccint.texi: Ditto.
3156 * doc/gcov.texi: Ditto.
3157 * doc/install.texi: Ditto.
3158 * doc/invoke.texi: Ditto.
3159
3160 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
3161
3162 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
3163 modes larger than TImode as TImode if NEON is not enabled.
3164
3165 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
3166
3167 PR target/69100
3168 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
3169 mode for %f0-%f31 only if TARGET_FPU.
3170
3171 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
3172
3173 PR target/69072
3174 * config/sparc/sparc.c (scan_record_type): Take into account subfields
3175 to compute the PACKED_P predicate.
3176 (function_arg_record_value): Minor tweaks.
3177
3178 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3179
3180 * doc/install.texi (--with-multilib-list): Describe the meaning of the
3181 option for arm*-*-* targets.
3182
3183 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
3184
3185 * doc/extend.texi (Common Function Attributes): Move docs for
3186 MSP430-specific attributes to....
3187 (MSP430 Function Attributes): ...here. Delete the redundant
3188 entries and copy-edit the remaining text.
3189 (MSP430 Variable Attributes): Use uniform format for index
3190 entries and add a cross-reference to the corresponding function
3191 attribute docs.
3192
3193 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
3194
3195 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
3196 -finite-math typo.
3197 (x86 Options): Likewise.
3198
3199 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
3200
3201 PR 1078
3202
3203 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
3204 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
3205 to corresponding attribute.
3206
3207 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
3208
3209 * doc/extend.texi (Common Function Attributes) <noplt>: Move
3210 to correct alphabetization of table. Copy-edit and correct
3211 markup.
3212 <stack_protect>: Likewise.
3213 <target_clones>: Likewise.
3214 <simd>: Likewise.
3215 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
3216 Correct punctuation.
3217 (Code Gen Options) <-fno-plt>: Copy-edit.
3218
3219 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3220
3221 PR target/68917
3222 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
3223 SI values. Explicitly convert SI to DI and vice-versa.
3224
3225 2016-01-01 Jakub Jelinek <jakub@redhat.com>
3226
3227 PR tree-optimization/69070
3228 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
3229 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
3230
3231 PR sanitizer/69055
3232 * ubsan.c (ubsan_instrument_float_cast): Call
3233 initialize_sanitizer_builtins.
3234
3235 PR target/69015
3236 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
3237 \f
3238 Copyright (C) 2016 Free Software Foundation, Inc.
3239
3240 Copying and distribution of this file, with or without modification,
3241 are permitted in any medium without royalty provided the copyright
3242 notice and this notice are preserved.