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