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