- 06 Oct, 2015 28 commits
-
-
2015-10-06 Aditya Kumar <aditya.k7@samsung.com> Sebastian Pop <s.pop@samsung.com> * graphite-poly.c (new_poly_dr): Remove dr_base_object_set. Do not set PDR_BASE_OBJECT_SET. * graphite-poly.h (poly_dr): Same. (PDR_BASE_OBJECT_SET): Remove. (new_poly_dr): Update decl. * graphite-sese-to-poly.c (build_poly_dr): Update call to new_poly_dr. (write_alias_graph_to_ascii_dimacs): Remove. (write_alias_graph_to_ascii_dot): Remove. (write_alias_graph_to_ascii_ecc): Remove. (dr_same_base_object_p): Remove. (build_alias_set_optimal_p): Rename build_alias_set. Remove dead code. (build_base_obj_set_for_drs): Remove. (dump_alias_graphs): Remove. (build_scop_drs): Remove dead code. Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r228543
Aditya Kumar committed -
* c-parser.c (c_parser_statement_after_labels): Use protected_set_expr_location. (c_parser_omp_clause_num_gangs): Likewise. (c_parser_omp_clause_num_threads): Likewise. (c_parser_omp_clause_num_workers): Likewise. (c_parser_omp_clause_vector_length): Likewise. (c_parser_omp_clause_num_teams): Likewise. (c_parser_omp_clause_thread_limit): Likewise. * c-typeck.c (build_c_cast): Likewise. (c_cast_expr): Likewise. From-SVN: r228541
Marek Polacek committed -
PR c++/67863 * call.c (build_conditional_expr_1): Build the COND_EXPR with a location. * c-c++-common/Wtautological-compare-4.c: New test. From-SVN: r228540
Marek Polacek committed -
From-SVN: r228539
Michael Meissner committed -
[gcc] 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com> Peter Bergner <bergner@vnet.ibm.com> PR target/67808 * config/rs6000/rs6000.md (extenddftf2): In the expander, only allow registers, but provide insns for the combiner to create for loads from memory. Separate VSX code from non-VSX code. For non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename externaldftf2_internal to externaldftf2_fprs. Reorder constraints so that registers come before memory operations. Drop support from converting DFmode to TFmode, if the DFmode value is in a GPR register. (extenddftf2_fprs): Likewise. (extenddftf2_internal): Likewise. (extenddftf2_vsx): Likewise. (extendsftf2): In the expander, only allow registers, but provide insns for the combiner to create for stores and loads. [gcc/testsuite] 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com> Peter Bergner <bergner@vnet.ibm.com> PR target/67808 * gcc.target/powerpc/pr67808.c: New test. Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com> From-SVN: r228538
Michael Meissner committed -
The decl parameter in default_elf_asm_named_section is actually used. Applied as obvious after an arm-none-eabi build. Ramana 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED from the decl parameter. From-SVN: r228537
Ramana Radhakrishnan committed -
re PR middle-end/67861 (coreutils' wc.c:write_counts is miscompiled since commit 7e3a76de7c496449b187c2688d958631cf21a944) PR 67861 * gimple-fold.c (gimple_fold_builtin): Add break after BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding. From-SVN: r228536
Nathan Sidwell committed -
* graphite-optimize-isl.c (optimize_isl): Rename scop->ctx to scop->isl_context. From-SVN: r228535
H.J. Lu committed -
* config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment. (output_probe_stack_range): Rotate the loop and simplify. (thumb1_expand_prologue): Tweak sorry message. * config/arm/arm.md (probe_stack): Use bare string. From-SVN: r228534
Eric Botcazou committed -
From-SVN: r228533
Nick Clifton committed -
(ATTR_PERSIST): New constant. (msp430_data_attr): New function - verifies an attribute that only applies to variables. (msp430_attributes): Add noinit and persistent attributes. (noinit_section): New variable. (presis_section): New variable. (TARGET_ASM_INIT_SECTIONS): Define. (msp430_init_sections): New function - initialises the noinit and persist section variables. (msp430_select_section): Add support for noinit and persist attributes. (msp430_section_type_flags): Likewise. * doc/extend.texi: Document the reent, critical, wakeup, noinit and persistent attributes. tests * gcc.target/msp430: New directory. * gcc.target/msp430/msp430.exp: New file. Runs MSP430 specific tests. * gcc.target/msp430/data-attributes.c: New file. Checks the noinit and persistent data attributes. From-SVN: r228531
Nick Clifton committed -
2015-10-05 Aditya Kumar <aditya.k7@samsung.com> Sebastian Pop <s.pop@samsung.com> * graphite-dependences.c (scop_get_transformed_schedule): Remove. (no_violations): Remove. (subtract_commutative_associative_deps): Remove. (compute_deps): Do not call subtract_commutative_associative_deps. (transform_is_safe): Remove. (graphite_legal_transform): Remove. * graphite-poly.h (graphite_legal_transform): Remove. Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r228530
Aditya Kumar committed -
Analyze only those bbs which are outside the region for uses which might be defined inside the region. This is intended to improve the compile time. This algorithm may be further improved by only looking at the successors of region as these regions are sese. Added FIXMEs to make this improvement in future. Passes regtest and bootstrap on x86_64. gcc/ChangeLog: 2015-10-05 Aditya Kumar <hiraditya@msn.com> * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops which are in this region are passed so gcc_assert and remove redundant computation. * sese.c (sese_build_liveouts): Pass only those bbs which are not in region. (sese_bad_liveouts_use): Only BBs which are not in region are passed so gcc_assert on that and remove unnecessary computation. (sese_build_liveouts_use): Same. From-SVN: r228529
Aditya Kumar committed -
1. Move declarations near the assignment/usage. 2. Assign type to members which were void*. 3. Rename scop->context to scop::param_context, and scop::ctx to scop::isl_context No functional changes intended. Passes regtest and bootstrap. gcc/ChangeLog: 2015-10-05 Aditya Kumar <aditya.k7@samsung.com> * graphite-dependences.c (scop_get_reads): Renamed scop->context to scop->param_context. (scop_get_must_writes): Same. (scop_get_may_writes): Same. (scop_get_original_schedule): Same. (scop_get_transformed_schedule): Same. (subtract_commutative_associative_deps): Same. * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same. (generate_isl_context): Same. (generate_isl_schedule): Same. (scop_to_isl_ast): Same. (graphite_regenerate_ast_isl): Same. * graphite-optimize-isl.c (scop_get_domains): Same. (optimize_isl): Renamed scop->context to scop->param_context. * graphite-poly.c (new_poly_bb): Change the type of argument to gimple_poly_bb_p. (new_scop): Renamed scop->context to scop->param_context. (free_scop): Same. (print_scop_context): Same. * graphite-poly.h (new_poly_dr): Change the type of argument from void* to data_reference_p. (struct poly_bb): Change the type of black_box to gimple_poly_bb_p. (new_poly_bb): Change the type of argument from void* to gimple_poly_bb_p. (pbb_set_black_box): Same. (struct scop): Rename context to param_context, ctx to isl_context. * graphite-scop-detection.c (scop_detection::build_scop_bbs_1): Move declarations closer to assignment. (find_params_in_bb): Same. (find_scop_parameters): Same. * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize): Global to be used for statement IDs. (isl_id_for_pbb): Use ssa_name_version_typesize. (simple_copy_phi_p): Move declarations closer to assignment. (build_pbb_scattering_polyhedrons): Same. (build_scop_scattering): Same. (isl_id_for_ssa_name): Same. (extract_affine_name): Same. (extract_affine_int): Same. (extract_affine): Same. (set_scop_parameter_dim): Use renamed member. (build_loop_iteration_domains): Same. (add_param_constraints): Same. (build_scop_iteration_domain): Same. (pdr_add_data_dimensions): Same. (build_poly_dr): Same. (build_scop_drs): Move declarations closer to assignment. (analyze_drs_in_stmts): Same. (insert_out_of_ssa_copy): Same. (insert_out_of_ssa_copy_on_edge): Same. (propagate_expr_outside_region): Same. (rewrite_phi_out_of_ssa): Same. (rewrite_degenerate_phi): Same. (rewrite_reductions_out_of_ssa): Same. (rewrite_cross_bb_scalar_dependence): Same. (handle_scalar_deps_crossing_scop_limits): Same. (rewrite_cross_bb_scalar_deps): Same. * graphite.c (graphite_transform_loops): Use renamed member. From-SVN: r228528
Aditya Kumar committed -
PR c/65345 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use create_tmp_var_raw instead of create_tmp_var. From-SVN: r228527
Uros Bizjak committed -
2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> PR c/65345 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv): Use create_tmp_var_raw instead of create_tmp_var. From-SVN: r228526
Ramana Radhakrishnan committed -
gcc/ PR target/67849 * config/i386/sse.md (define_split vec_select/V8FI): Restrict split for upper-bank registers when target does not support AVX512VL. (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict split when target does not support AVX512VL. From-SVN: r228525
Alexander Fomin committed -
PR c/65345 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Adjust to use create_tmp_var_raw instead of create_tmp_var. From-SVN: r228524
David Edelsohn committed -
gcc/testsuite/ * gcc.target/i386/builtin_target.c: Fix AVX-512VBMI detection. From-SVN: r228523
Kirill Yukhin committed -
* config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for multiplication. From-SVN: r228521
Nick Clifton committed -
2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com> AMD znver1 enablement. * config.gcc (i[34567]86-*-linux* | ...): Add znver1. (case ${target}): Add znver1. * config/i386/cpuid.h(bit_CLZERO): Define. * config/i386/driver-i386.c: (host_detect_local_cpu): Let -march=native recognize znver1 processors. * config/i386/i386-c.c (ix86_target_macros_internal): Add znver1, clzero def_and_undef. * config/i386/i386.c (struct processor_costs znver1_cost): New. (m_znver1): New definition. (m_AMD_MULTIPLE): Includes m_znver1. (processor_target_table): Add znver1 entry. (ix86_target_string) : Add clzero entry. (static const char *const cpu_names): Add znver1 entry. (ix86_option_override_internal): Add znver1 instruction sets. (PTA_CLZERO) : New definition. (ix86_option_override_internal): Handle new clzerooption. (ix86_issue_rate): Add znver1. (ix86_adjust_cost): Add znver1. (ia32_multipass_dfa_lookahead): Add znver1. (has_dispatch): Add znver1. * config/i386/i386.h (TARGET_znver1): New definition. (TARGET_CLZERO): Define. (TARGET_CLZERO_P): Define. (struct ix86_size_cost): Add TARGET_ZNVER1. (enum processor_type): Add PROCESSOR_znver1. * config/i386/i386.md (define_attr "cpu"): Add znver1. (set_attr znver1_decode): New definitions for znver1. * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1. (mclzero): New. * config/i386/mmx.md (set_attr znver1_decode): New definitions for znver1. * config/i386/sse.md (set_attr znver1_decode): Likewise. * config/i386/x86-tune.def: Add znver1 tunings. * config/i386/znver1.md: Introduce znver1 cpu and include new md file. * gcc/doc/invoke.texi: Add details about znver1 From-SVN: r228520
Venkataramanan Kumar committed -
2015-10-06 Richard Biener <rguenther@suse.de> PR tree-optimization/67859 * tree-ssa-pre.c (create_expression_by_pieces): Properly discard not inserted stmts. * gcc.dg/torture/pr67859.c: New testcase. From-SVN: r228519
Richard Biener committed -
* doc/extend.texi (Template Instantiation): Reorder options and de-emphasize -frepo. * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in example instead of -frepo. From-SVN: r228518
Jonathan Wakely committed -
PR c/65345 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to use create_tmp_var_raw rather than create_tmp_var. From-SVN: r228516
Eric Botcazou committed -
gcc/testsuite/ * gcc.target/i386/builtin_target.c: Fix AVX-512VBMI detection. From-SVN: r228515
Kirill Yukhin committed -
2015-10-06 Richard Biener <rguenther@suse.de> * tree-vectorizer.h (vec_info): New base class for... (_loop_vec_info): ... this and ... (_bb_vec_info): ... this. (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info, vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment, vect_analyze_data_ref_accesses, vect_analyze_data_refs, vect_schedule_slp, vect_analyze_slp, vect_pattern_recog, vect_destroy_datarefs): Adjust interface to take a vec_info * rather than both a loop_vec_info and a bb_vec_info argument. * tree-vect-data-refs.c (vect_compute_data_refs_alignment, vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses, vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust accordingly. * tree-vect-loop.c (new_loop_vec_info): Initialize base class. (destroy_loop_vec_info, vect_analyze_loop_2, vect_is_simple_reduction_1, get_initial_def_for_induction, vect_create_epilog_for_reduction, vectorizable_reduction, vectorizable_live_operation, vect_transform_loop): Adjust. * tree-vect-patterns.c (type_conversion_p, vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern, vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern, check_bool_pattern, vect_recog_bool_pattern, vect_mark_pattern_stmts, vect_pattern_recog): Likewise. * tree-vect-slp.c (vect_get_and_check_slp_defs, vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1, vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info, vect_slp_analyze_bb_1, vect_schedule_slp): Likewise. (new_bb_vec_info): Initialize base classs. * tree-vect-stmts.c (record_stmt_cost, process_use, vect_get_vec_def_for_operand, vect_finish_stmt_generation, vectorizable_mask_load_store, vectorizable_call, vectorizable_simd_clone_call, vectorizable_conversion, vectorizable_assignment, vectorizable_shift, vectorizable_operation, vectorizable_store, vectorizable_load, vect_is_simple_cond, vectorizable_condition, new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise. * tree-vectorizer.c (vect_destroy_datarefs): Likewise. From-SVN: r228514
Richard Biener committed -
gcc/testsuite/ * gcc.target/i386/builtin_target.c: Add check for AES and PCLMUL. From-SVN: r228513
Kirill Yukhin committed -
From-SVN: r228510
GCC Administrator committed
-
- 05 Oct, 2015 12 commits
-
-
Adjust to use create_tmp_var_raw rather than create_tmp_var at sh_atomic_assign_expand_fenv. From-SVN: r228502
Kaz Kojima committed -
/cp 2015-10-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53856 * pt.c (check_default_tmpl_args): Per [temp.param]/9, do not reject default template arguments in out of class definitions of members of non-template classes. /testsuite 2015-10-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53856 * g++.dg/template/defarg19.C: New. * g++.dg/template/defarg20.C: Likewise. From-SVN: r228501
Paolo Carlini committed -
From-SVN: r228500
Richard Sandiford committed -
Fixes golang/go#12322. Reviewed-on: https://go-review.googlesource.com/13985 From-SVN: r228497
Ian Lance Taylor committed -
(move_computations_dom_walker::before_dom_children): Don't set SSA_NAME_ANTI_RANGE_P. * tree-ssa-phiopt.c (value_replacement): Likewise. From-SVN: r228496
Marek Polacek committed -
Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r228494
Aditya Kumar committed -
Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r228493
Aditya Kumar committed -
Co-Authored-By: Sebastian Pop <s.pop@samsung.com> From-SVN: r228492
Aditya Kumar committed -
2015-10-05 Martin Jambor <mjambor@suse.cz> Jan Hubicka <hubicka@ucw.cz> * ipa-cp.c (ipcp_alignment_lattice): New type. (ipcp_param_lattices): Use the above to represent alignment. (ipcp_alignment_lattice::print): New function. (print_all_lattices): Use it to print alignment information. (ipcp_alignment_lattice::top_p): New function. (ipcp_alignment_lattice::bottom_p): Likewise. (ipcp_alignment_lattice::set_to_bottom): Likewise. (ipcp_alignment_lattice::meet_with_1): Likewise. (ipcp_alignment_lattice::meet_with): Two new overloaded functions. (set_all_contains_variable): Use set_to_bottom of alignment lattice. (initialize_node_lattices): Likewise. (propagate_alignment_accross_jump_function): Work with the new class for alignment lattices. (propagate_constants_accross_call): Pass only the alignment lattice to propagate_alignment_accross_jump_function. (ipcp_store_alignment_results): Work with the new class for alignment lattices. testsuite/ * gcc.dg/ipa/propalign-4.c: New test. * gcc.dg/ipa/propalign-5.c: Likewise. Co-Authored-By: Jan Hubicka <hubicka@ucw.cz> From-SVN: r228491
Martin Jambor committed -
PR tree-optimization/67821 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert. * gcc.dg/torture/pr67821-2.c: New test. * gcc.dg/torture/pr67821.c: New test. From-SVN: r228490
Marek Polacek committed -
From-SVN: r228489
Jason Merrill committed -
gcc/ PR other/65021 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename function to... (mkoffload_cleanup): ... this. Adjust all users. (maybe_unlink): Look at save_temps and verbose flags instead of debug flag. (main): Parse "-save-temps" flag. (generate_target_descr_file, generate_target_offloadend_file) (generate_host_descr_file, prepare_target_image): Pass it on. * config/nvptx/mkoffload.c (tool_cleanup): Implement. (mkoffload_cleanup): New function. (maybe_unlink): Look at save_temps and verbose flags instead of debug flag. (main): Instead of calling utils_cleanup, register atexit handler for mkoffload_cleanup. (main): Parse "-save-temps" flag. (compile_native, main): Pass it on. * lto-wrapper.c (compile_offload_image): Likewise. From-SVN: r228488
Thomas Schwinge committed
-