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