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