platform/upstream/linaro-gcc.git
9 years ago2015-06-02 Richard Biener <rguenther@suse.de>
rguenth [Tue, 2 Jun 2015 07:50:19 +0000 (07:50 +0000)]
2015-06-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65961
* tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
check and clarify dump message.
(vect_build_slp_tree): If all children are built up from scalars
build up the parent from scalars instead.
* tree-vect-stmts.c (vect_is_simple_use): Cleanup.

* gcc.dg/torture/pr65961.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224013 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR other/65366
jkratoch [Tue, 2 Jun 2015 07:37:22 +0000 (07:37 +0000)]
PR other/65366
* gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
instead of print ... .

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224012 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
amodra [Tue, 2 Jun 2015 03:38:11 +0000 (03:38 +0000)]
* config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
2014-08-11 change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224010 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/52563
amker [Tue, 2 Jun 2015 03:33:35 +0000 (03:33 +0000)]
PR tree-optimization/52563
PR tree-optimization/62173
* tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
(alloc_iv, set_iv): New parameter.
(determine_biv_step): Delete.
(find_bivs): Inline original determine_biv_step.  Pass new
argument to set_iv.
(idx_find_step): Use no_overflow information for conversion.
* tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
resolve_mixers handle folded_casts.
(instantiate_scev_name): Change bool parameter to bool pointer.
(instantiate_scev_poly, instantiate_scev_binary): Ditto.
(instantiate_array_ref, instantiate_scev_not): Ditto.
(instantiate_scev_3, instantiate_scev_2): Ditto.
(instantiate_scev_1, instantiate_scev_r): Ditto.
(instantiate_scev_convert, ): Change parameter.  Pass argument
to chrec_convert_aggressive.
(instantiate_scev): Change argument.
(resolve_mixers): New parameter and set it.
(scev_const_prop): New argument.
* tree-scalar-evolution.h (resolve_mixers): New parameter.
* tree-chrec.c (convert_affine_scev): Call chrec_convert instead
of chrec_conert_1.
(chrec_convert): New parameter.  Move definition below.
(chrec_convert_aggressive): New parameter and set it.  Call
convert_affine_scev.
* tree-chrec.h (chrec_convert): New parameter.
(chrec_convert_aggressive): Ditto.

gcc/testsuite/ChangeLog
PR tree-optimization/52563
PR tree-optimization/62173
* gcc.dg/tree-ssa/scev-3.c: Remove xfail.
* gcc.dg/tree-ssa/scev-4.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224009 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR c++/65942
jason [Tue, 2 Jun 2015 02:28:25 +0000 (02:28 +0000)]
PR c++/65942
* decl2.c (mark_used): Don't always instantiate constexpr fns.
* constexpr.c (cxx_eval_call_expression): Instantiate them here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224008 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR c++/44282
jason [Tue, 2 Jun 2015 02:28:19 +0000 (02:28 +0000)]
PR c++/44282
gcc/cp/
* mangle.c (attr_strcmp): New.
(write_CV_qualifiers_for_type): Also write out attributes that
affect type identity.
(write_type): Strip all attributes after writing qualifiers.
libiberty/
* cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
extended qualifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224007 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Tue, 2 Jun 2015 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224006 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
ebotcazou [Mon, 1 Jun 2015 20:49:18 +0000 (20:49 +0000)]
* gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
the LHS of a no-return call if its type has variable size.
* tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
* tree-cfg.c (verify_gimple_call): Accept these no-return calls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223997 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
andreast [Mon, 1 Jun 2015 19:46:17 +0000 (19:46 +0000)]
2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>

    * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
    * config.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223996 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
ienkovich [Mon, 1 Jun 2015 17:15:31 +0000 (17:15 +0000)]
gcc/

* tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
consecutive accesses within outer-loop with force_vectorize
for references with zero step in inner-loop.

gcc/testsuite/

* gcc.dg/vect/vect-outer-simd-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223993 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
vp [Mon, 1 Jun 2015 16:42:30 +0000 (16:42 +0000)]
2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>

* Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
rather than from gcc/build directory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223992 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix Changelog entry.
marxin [Mon, 1 Jun 2015 15:38:10 +0000 (15:38 +0000)]
Fix Changelog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223988 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/65697
mwahab [Mon, 1 Jun 2015 15:24:37 +0000 (15:24 +0000)]
PR target/65697
* gcc.target/aarch64/sync-comp-swap.c: New.
* gcc.target/aarch64/sync-comp-swap.x: New.
* gcc.target/aarch64/sync-op-acquire.c: New.
* gcc.target/aarch64/sync-op-acquire.x: New.
* gcc.target/aarch64/sync-op-full.c: New.
* gcc.target/aarch64/sync-op-full.x: New.
* gcc.target/aarch64/sync-op-release.c: New.
* gcc.target/aarch64/sync-op-release.x: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223986 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/65697
mwahab [Mon, 1 Jun 2015 15:21:02 +0000 (15:21 +0000)]
PR target/65697
* config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
for __sync memory models, emit initial loads and final barriers as
appropriate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223984 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/65697
mwahab [Mon, 1 Jun 2015 15:18:19 +0000 (15:18 +0000)]
    PR target/65697
* config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
(aarch64_split_atomic_op): Check for __sync memory models, emit
appropriate initial loads and final barriers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223983 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Alex Velenko <Alex.Velenko@arm.com>
avelenko [Mon, 1 Jun 2015 15:04:54 +0000 (15:04 +0000)]
2015-06-01  Alex Velenko  <Alex.Velenko@arm.com>

        * gcc.target/arm/thumb-ltu.c (foo): Predefined.
        (bar): Predefined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223982 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix Makefile dependencies.
marxin [Mon, 1 Jun 2015 14:09:19 +0000 (14:09 +0000)]
Fix Makefile dependencies.

* Makefile.in: Fix gcov dependencies that should
not point to a build folder.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223981 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Richard Biener <rguenther@suse.de>
rguenth [Mon, 1 Jun 2015 13:58:50 +0000 (13:58 +0000)]
2015-06-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66349
PR tree-optimization/66352
PR tree-optimization/66357
* gcc.dg/torture/pr66357.c: New testcase.
* gcc.dg/torture/pr66349.c: Likewise.
* gfortran.fortran-torture/compile/pr66352.f90: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223980 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Richard Biener <rguenther@suse.de>
rguenth [Mon, 1 Jun 2015 13:55:12 +0000 (13:55 +0000)]
2015-06-01  Richard Biener  <rguenther@suse.de>

Revert
2015-05-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66314
* tree-ssa-threadupdate.c (create_block_for_threading): Add
parameter that says which loop the new block belongs to.
(ssa_create_duplicates): Blocks duplicated for the threaded
path belong to the loop of the thread destination.

* gcc.dg/asan/pr66314.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223979 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix pool_allocator fallback.
marxin [Mon, 1 Jun 2015 13:53:10 +0000 (13:53 +0000)]
Fix pool_allocator fallback.

* sched-deps.c: Include pool-alloc.h before
cselib.h header file is included.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223978 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Richard Biener <rguenther@suse.de>
rguenth [Mon, 1 Jun 2015 13:51:20 +0000 (13:51 +0000)]
2015-06-01  Richard Biener  <rguenther@suse.de>

* tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
functions.

* gcc.dg/ipa/ipa-pta-1.c: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223977 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * sv.po: Update.
jsm28 [Mon, 1 Jun 2015 13:43:13 +0000 (13:43 +0000)]
* sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223975 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoSmall pool-allocator fallback.
marxin [Mon, 1 Jun 2015 13:01:12 +0000 (13:01 +0000)]
Small pool-allocator fallback.

* alloc-pool.h: Add ATTRIBUTE_UNUSED for
a function local variabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223974 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoRemove old pool allocator.
marxin [Mon, 1 Jun 2015 12:54:05 +0000 (12:54 +0000)]
Remove old pool allocator.

* alloc-pool.c (create_alloc_pool): Remove.
(empty_alloc_pool): Likewise.
(free_alloc_pool): Likewise.
(free_alloc_pool_if_empty): Likewise.
(pool_alloc): Likewise.
(pool_free): Likewise.
* alloc-pool.h: Remove old declarations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223973 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in ira-build.c.
marxin [Mon, 1 Jun 2015 12:51:12 +0000 (12:51 +0000)]
Change use to type-based pool allocator in ira-build.c.

* ira-build.c (initiate_allocnos): Use new type-based pool allocator.
(ira_create_object): Likewise.
(ira_create_allocno): Likewise.
(ira_create_live_range): Likewise.
(copy_live_range): Likewise.
(ira_finish_live_range): Likewise.
(ira_free_allocno_costs): Likewise.
(finish_allocno): Likewise.
(finish_allocnos): Likewise.
(initiate_prefs): Likewise.
(ira_create_pref): Likewise.
(finish_pref): Likewise.
(finish_prefs): Likewise.
(initiate_copies): Likewise.
(ira_create_copy): Likewise.
(finish_copy): Likewise.
(finish_copies): Likewise.
(finish_prefs): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223972 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in ipa-prop.c
marxin [Mon, 1 Jun 2015 12:50:36 +0000 (12:50 +0000)]
Change use to type-based pool allocator in ipa-prop.c

* ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
(allocate_and_init_ipcp_value): Likewise.
(ipcp_lattice::add_value): Likewise.
(merge_agg_lats_step): Likewise.
(ipcp_driver): Likewise.
* ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
(ipa_free_all_structures_after_iinln): Likewise.
* ipa-prop.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223971 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:49:51 +0000 (12:49 +0000)]
Change use to type-based pool allocator in

* ipa-inline-analysis.c (edge_set_predicate): Use new type-based pool allocator.
(set_hint_predicate): Likewise.
(inline_summary_alloc): Likewise.
(reset_inline_edge_summary): Likewise.
(reset_inline_summary): Likewise.
(set_cond_stmt_execution_predicate): Likewise.
(set_switch_stmt_execution_predicate): Likewise.
(compute_bb_predicates): Likewise.
(estimate_function_body_sizes): Likewise.
(inline_free_summary): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223970 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in ipa-prop.c.
marxin [Mon, 1 Jun 2015 12:49:17 +0000 (12:49 +0000)]
Change use to type-based pool allocator in ipa-prop.c.

* ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
(ipa_edge_duplication_hook): Likewise.
(ipa_free_all_structures_after_ipa_cp): Likewise.
(ipa_free_all_structures_after_iinln): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223969 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:48:40 +0000 (12:48 +0000)]
Change use to type-based pool allocator in

* ipa-profile.c (account_time_size): Use new type-based pool allocator.
(ipa_profile_generate_summary): Likewise.
(ipa_profile_read_summary): Likewise.
(ipa_profile): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223968 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:48:06 +0000 (12:48 +0000)]
Change use to type-based pool allocator in

* tree-ssa-structalias.c (new_var_info): Use new type-based pool allocator.
(new_constraint): Likewise.
(init_alias_vars): Likewise.
(delete_points_to_sets): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223967 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:47:26 +0000 (12:47 +0000)]
Change use to type-based pool allocator in

* tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
(free_strinfo): Likewise.
(pass_strlen::execute): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223966 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:46:55 +0000 (12:46 +0000)]
Change use to type-based pool allocator in

* tree-ssa-sccvn.c (vn_reference_insert): Use new type-based pool allocator.
(vn_reference_insert_pieces): Likewise.
(vn_phi_insert): Likewise.
(visit_reference_op_call): Likewise.
(copy_phi): Likewise.
(copy_reference): Likewise.
(process_scc): Likewise.
(allocate_vn_table): Likewise.
(free_vn_table): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223965 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:46:24 +0000 (12:46 +0000)]
Change use to type-based pool allocator in

* tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based pool allocator.
(add_repeat_to_ops_vec): Likewise.
(get_ops): Likewise.
(maybe_optimize_range_tests): Likewise.
(init_reassoc): Likewise.
(fini_reassoc): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223964 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:45:55 +0000 (12:45 +0000)]
Change use to type-based pool allocator in

* tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based pool allocator.
(bitmap_set_new): Likewise.
(get_or_alloc_expr_for_constant): Likewise.
(get_or_alloc_expr_for): Likewise.
(phi_translate_1): Likewise.
(compute_avail): Likewise.
(init_pre): Likewise.
(fini_pre): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223963 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:45:14 +0000 (12:45 +0000)]
Change use to type-based pool allocator in

* sched-deps.c (create_dep_node): Use new type-based pool allocator.
(delete_dep_node): Likewise.
(create_deps_list): Likewise.
(free_deps_list): Likewise.
(sched_deps_init): Likewise.
(sched_deps_finish): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223962 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in regcprop.c.
marxin [Mon, 1 Jun 2015 12:44:44 +0000 (12:44 +0000)]
Change use to type-based pool allocator in regcprop.c.

* regcprop.c (free_debug_insn_changes): Use new type-based pool allocator.
(replace_oldest_value_reg): Likewise.
(pass_cprop_hardreg::execute): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223961 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in ira-build.c.
marxin [Mon, 1 Jun 2015 12:44:17 +0000 (12:44 +0000)]
Change use to type-based pool allocator in ira-build.c.

* ira-build.c (initiate_cost_vectors): Use new type-based pool allocator.
(ira_allocate_cost_vector): Likewise.
(ira_free_cost_vector): Likewise.
(finish_cost_vectors): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223960 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:43:47 +0000 (12:43 +0000)]
Change use to type-based pool allocator in

* sel-sched-ir.c (alloc_sched_pools): Use new type-based pool allocator.
(free_sched_pools): Likewise.
* sel-sched-ir.h (_list_alloc): Likewise.
(_list_remove): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223959 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in stmt.c.
marxin [Mon, 1 Jun 2015 12:43:16 +0000 (12:43 +0000)]
Change use to type-based pool allocator in stmt.c.

* stmt.c (add_case_node): Use new type-based pool allocator.
(expand_case): Likewise.
(expand_sjlj_dispatch_table): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223958 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:42:45 +0000 (12:42 +0000)]
Change use to type-based pool allocator in

* tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
(free_bb): Likewise.
(pass_cse_reciprocals::execute): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223957 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in tree-sra.c.
marxin [Mon, 1 Jun 2015 12:42:16 +0000 (12:42 +0000)]
Change use to type-based pool allocator in tree-sra.c.

* tree-sra.c (sra_initialize): Use new type-based pool allocator.
(sra_deinitialize) Likewise.
(create_access_1) Likewise.
(build_accesses_from_assign) Likewise.
(create_artificial_child_access) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223956 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in dse.c.
marxin [Mon, 1 Jun 2015 12:41:48 +0000 (12:41 +0000)]
Change use to type-based pool allocator in dse.c.

* dse.c (get_group_info):Use new type-based pool allocator.
(dse_step0) Likewise.
(free_store_info) Likewise.
(delete_dead_store_insn) Likewise.
(free_read_records) Likewise.
(record_store) Likewise.
(replace_read) Likewise.
(check_mem_read_rtx) Likewise.
(scan_insn) Likewise.
(dse_step1) Likewise.
(dse_step7) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223955 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in df-scan.c.
marxin [Mon, 1 Jun 2015 12:41:18 +0000 (12:41 +0000)]
Change use to type-based pool allocator in df-scan.c.

* df-scan.c (struct df_scan_problem_data):Use new type-based pool allocator.
(df_scan_free_internal) Likewise.
(df_scan_alloc) Likewise.
(df_grow_reg_info) Likewise.
(df_free_ref) Likewise.
(df_insn_create_insn_record) Likewise.
(df_mw_hardreg_chain_delete) Likewise.
(df_insn_info_delete) Likewise.
(df_free_collection_rec) Likewise.
(df_mw_hardreg_chain_delete_eq_uses) Likewise.
(df_sort_and_compress_mws) Likewise.
(df_ref_create_structure) Likewise.
(df_ref_record) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223954 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:40:47 +0000 (12:40 +0000)]
Change use to type-based pool allocator in

* df-problems.c (df_chain_create):Use new type-based pool allocator.
(df_chain_unlink_1) Likewise.
(df_chain_unlink) Likewise.
(df_chain_remove_problem) Likewise.
(df_chain_alloc) Likewise.
(df_chain_free) Likewise.
* df.h (struct dataflow) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223953 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in cselib.c.
marxin [Mon, 1 Jun 2015 12:39:32 +0000 (12:39 +0000)]
Change use to type-based pool allocator in cselib.c.

* cselib.c (new_elt_list):Use new type-based pool allocator.
(new_elt_loc_list) Likewise.
(unchain_one_elt_list) Likewise.
(unchain_one_elt_loc_list) Likewise.
(unchain_one_value) Likewise.
(new_cselib_val) Likewise.
(cselib_init) Likewise.
(cselib_finish) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223952 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in sh.c.
marxin [Mon, 1 Jun 2015 12:38:48 +0000 (12:38 +0000)]
Change use to type-based pool allocator in sh.c.

* config/sh/sh.c (add_constant):Use new type-based pool allocator.
(sh_reorg) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223951 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in cfg.c.
marxin [Mon, 1 Jun 2015 12:38:23 +0000 (12:38 +0000)]
Change use to type-based pool allocator in cfg.c.

* cfg.c (initialize_original_copy_tables):Use new type-based pool allocator.
(free_original_copy_tables) Likewise.
(copy_original_table_clear) Likewise.
(copy_original_table_set) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223950 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in c-format.c.
marxin [Mon, 1 Jun 2015 12:37:49 +0000 (12:37 +0000)]
Change use to type-based pool allocator in c-format.c.

* c-format.c (check_format_arg):Use new type-based pool allocator.
(check_format_info_main) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223949 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in asan.c.
marxin [Mon, 1 Jun 2015 12:37:26 +0000 (12:37 +0000)]
Change use to type-based pool allocator in asan.c.

* asan.c (asan_mem_ref_get_alloc_pool):Use new type-based pool allocator.
(asan_mem_ref_new) Likewise.
(free_mem_ref_resources) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223948 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in
marxin [Mon, 1 Jun 2015 12:36:49 +0000 (12:36 +0000)]
Change use to type-based pool allocator in

* var-tracking.c (variable_htab_free):Use new type-based pool allocator.
(attrs_list_clear) Likewise.
(attrs_list_insert) Likewise.
(attrs_list_copy) Likewise.
(shared_hash_unshare) Likewise.
(shared_hash_destroy) Likewise.
(unshare_variable) Likewise.
(var_reg_delete_and_set) Likewise.
(var_reg_delete) Likewise.
(var_regno_delete) Likewise.
(drop_overlapping_mem_locs) Likewise.
(variable_union) Likewise.
(insert_into_intersection) Likewise.
(canonicalize_values_star) Likewise.
(variable_merge_over_cur) Likewise.
(dataflow_set_merge) Likewise.
(remove_duplicate_values) Likewise.
(variable_post_merge_new_vals) Likewise.
(dataflow_set_preserve_mem_locs) Likewise.
(dataflow_set_remove_mem_locs) Likewise.
(variable_from_dropped) Likewise.
(variable_was_changed) Likewise.
(set_slot_part) Likewise.
(clobber_slot_part) Likewise.
(delete_slot_part) Likewise.
(loc_exp_insert_dep) Likewise.
(notify_dependents_of_changed_value) Likewise.
(emit_notes_for_differences_1) Likewise.
(vt_emit_notes) Likewise.
(vt_initialize) Likewise.
(vt_finalize) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223947 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in ira-color.c.
marxin [Mon, 1 Jun 2015 12:36:01 +0000 (12:36 +0000)]
Change use to type-based pool allocator in ira-color.c.

* ira-color.c (init_update_cost_records):Use new type-based pool allocator.
(get_update_cost_record) Likewise.
(free_update_cost_record_list) Likewise.
(finish_update_cost_records) Likewise.
(initiate_cost_update) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223946 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in lra.c.
marxin [Mon, 1 Jun 2015 12:35:20 +0000 (12:35 +0000)]
Change use to type-based pool allocator in lra.c.

* lra.c (init_insn_regs): Use new type-based pool allocator.
(new_insn_reg) Likewise.
(free_insn_reg) Likewise.
(free_insn_regs) Likewise.
(finish_insn_regs) Likewise.
(init_insn_recog_data) Likewise.
(init_reg_info) Likewise.
(finish_reg_info) Likewise.
(lra_free_copies) Likewise.
(lra_create_copy) Likewise.
(invalidate_insn_data_regno_info) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223945 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in lra-lives.c.
marxin [Mon, 1 Jun 2015 12:34:31 +0000 (12:34 +0000)]
Change use to type-based pool allocator in lra-lives.c.

* lra-lives.c (free_live_range): Use new type-based pool allocator.
(free_live_range_list) Likewise.
(create_live_range) Likewise.
(copy_live_range) Likewise.
(lra_merge_live_ranges) Likewise.
(remove_some_program_points_and_update_live_ranges) Likewise.
(lra_live_ranges_init) Likewise.
(lra_live_ranges_finish) Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223944 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoChange use to type-based pool allocator in et-forest.c.
marxin [Mon, 1 Jun 2015 12:33:23 +0000 (12:33 +0000)]
Change use to type-based pool allocator in et-forest.c.

* et-forest.c (et_new_occ): Use new type-based pool allocator.
(et_new_tree): Likewise.
(et_free_tree): Likewise.
(et_free_tree_force): Likewise.
(et_free_pools): Likewise.
(et_split): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223943 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoIntroduce new type-based pool allocator.
marxin [Mon, 1 Jun 2015 12:29:12 +0000 (12:29 +0000)]
Introduce new type-based pool allocator.

* alloc-pool.c (struct alloc_pool_descriptor): Move definition
to header file.
* alloc-pool.h (pool_allocator::pool_allocator): New function.
(pool_allocator::release): Likewise.
(inline pool_allocator::release_if_empty): Likewise.
(inline pool_allocator::~pool_allocator): Likewise.
(pool_allocator::allocate): Likewise.
(pool_allocator::remove): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223942 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[Patch obvious] Fuseable is not a word -> s/fuseable/fusible/g
jgreenhalgh [Mon, 1 Jun 2015 12:00:09 +0000 (12:00 +0000)]
[Patch obvious] Fuseable is not a word -> s/fuseable/fusible/g

gcc/

* sched-deps.c (sched_analyze_2): Replace fuseable with fusible
in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223940 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[ARM Obvious] Fuseable is not a word -> s/fuseable/fusible/g
jgreenhalgh [Mon, 1 Jun 2015 11:59:03 +0000 (11:59 +0000)]
[ARM Obvious] Fuseable is not a word -> s/fuseable/fusible/g

gcc/

* gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
to fusible_ops.
* gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
(arm_macro_fusion_p): Likewise.
(arm_macro_fusion_pair_p): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223939 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[AArch64 Obvious] "Fuseable" is not a word -> s/fuseable/fusible/g
jgreenhalgh [Mon, 1 Jun 2015 11:57:54 +0000 (11:57 +0000)]
[AArch64 Obvious] "Fuseable" is not a word -> s/fuseable/fusible/g

gcc/

* config/aarch64/aarch64-protos.h (tune_params): Rename
fuseable_ops to fusible_ops.
* config/aarch64/aarch64.c (generic_tunings): Rename
fuseable_ops to fusible_ops.
(cortexa53_tunings): Likewise.
(cortexa57_tunings): Likewise.
(thunderx_tunings): Likewise.
(xgene1_tunings): Likewise.
(aarch64_macro_fusion_p): Likewise.
(aarch64_macro_fusion_pair_p): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223938 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
redi [Mon, 1 Jun 2015 11:57:33 +0000 (11:57 +0000)]
* testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
environment variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223937 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoS390: Support -mtune=native and -march=native.
krebbel [Mon, 1 Jun 2015 11:38:44 +0000 (11:38 +0000)]
S390: Support -mtune=native and -march=native.

gcc/ChangeLog

2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>

    * config/s390/driver-native.c: New file.
    * config/s390/x-native: New file.
    * config.host: Add new files for s390.
    * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
    and -march=native
    * config.gcc: Likewise.
    * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
    * config/s390/s390-opts.h (enum processor_type): Ditto.
    * config/s390/s390.c (s390_option_override): Catch unhandled
    PROCESSOR_NATIVE

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223934 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc.target/s390/hotpatch-compile-15.c: Remove dg-prune-output
jakub [Mon, 1 Jun 2015 11:38:04 +0000 (11:38 +0000)]
* gcc.target/s390/hotpatch-compile-15.c: Remove dg-prune-output
directives.
(hp3, hp4): Add inline keyword.
* gcc.target/s390/hotpatch-19.c: Remove dg-prune-output directive.
(hp2): Add inline keyword.
* gcc.target/s390/hotpatch-19.c: Remove dg-prune-output directives.
(hp2): Add inline keyword.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223933 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
ienkovich [Mon, 1 Jun 2015 11:24:07 +0000 (11:24 +0000)]
gcc/

PR target/65527
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
redirection for instrumented calls.
* lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
(append_compiler_options): Append -fcheck-pointer-bounds.
* tree-chkp.h (chkp_copy_call_skip_bounds): New.
(chkp_redirect_edge): New.
* tree-chkp.c (chkp_copy_call_skip_bounds): New.
(chkp_redirect_edge): New.

gcc/testsuite/

PR target/65527
* gcc.target/i386/mpx/chkp-fix-calls-1.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-2.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-3.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-4.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223929 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[ARM/AArch64 Testsuite] Cleanup advsimd-intrinsics.exp, removing unnecessary loop
alalaw01 [Mon, 1 Jun 2015 10:56:28 +0000 (10:56 +0000)]
[ARM/AArch64 Testsuite] Cleanup advsimd-intrinsics.exp, removing unnecessary loop

* gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp: Pass
wildcard to gcc-dg-runtest; remove loop and unnecessary initialization.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223928 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Richard Biener <rguenther@suse.de>
rguenth [Mon, 1 Jun 2015 10:37:30 +0000 (10:37 +0000)]
2015-06-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223927 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/Makefile.in: Fix ARM/Darwin configuration.
ebotcazou [Mon, 1 Jun 2015 09:16:55 +0000 (09:16 +0000)]
* gcc-interface/Makefile.in: Fix ARM/Darwin configuration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223924 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[AArch64] Fix type of *<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3 pattern
ktkachov [Mon, 1 Jun 2015 09:11:34 +0000 (09:11 +0000)]
[AArch64] Fix type of *<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3 pattern

* config/aarch64/aarch64.md
(*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
logic_shift_imm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223922 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/utils.c (scale_by_factor_of): When handling a function
ebotcazou [Mon, 1 Jun 2015 09:03:34 +0000 (09:03 +0000)]
* gcc-interface/utils.c (scale_by_factor_of): When handling a function
call expression, process the corresponding function body.  Also handle
potential addends.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223921 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/decl.c (gnat_to_gnu_entity): Replace pointer types with
ebotcazou [Mon, 1 Jun 2015 08:49:46 +0000 (08:49 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity): Replace pointer types with
references ones for functions that return references.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223920 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: For a
ebotcazou [Mon, 1 Jun 2015 08:41:30 +0000 (08:41 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: For a
definition of a type coming from a limited_with, get to the full view
if it is not in the main code unit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223919 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
ebotcazou [Mon, 1 Jun 2015 08:22:14 +0000 (08:22 +0000)]
* config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
Remove obsolete kludge.
ada/
* gcc-interface/utils.c (create_var_decl_1): If an assembler name is
specified, let the target mangle it before settting.
(create_subprog_decl): Likewise and move this treatment last.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223918 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/lang-specs.h (TARGET_VXWORKS_RTP): Simplify and add
ebotcazou [Mon, 1 Jun 2015 08:08:11 +0000 (08:08 +0000)]
* gcc-interface/lang-specs.h (TARGET_VXWORKS_RTP): Simplify and add
trailing space.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223917 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/lang-specs.h (TARGET_VXWORKS_RTP): Move substitution to
ebotcazou [Mon, 1 Jun 2015 08:06:59 +0000 (08:06 +0000)]
* gcc-interface/lang-specs.h (TARGET_VXWORKS_RTP): Move substitution to
before first -gnatez switch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223916 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
ebotcazou [Mon, 1 Jun 2015 08:04:16 +0000 (08:04 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
record has a parent field and a representation clause, make sure that
it is properly aligned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223915 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-06-01 Richard Biener <rguenther@suse.de>
rguenth [Mon, 1 Jun 2015 07:56:34 +0000 (07:56 +0000)]
2015-06-01  Richard Biener  <rguenther@suse.de>

* tree-ssa-reassoc.c (get_rank): Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223914 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/trans.c (lvalue_required_p) <N_Indexed_Component>: Deal
ebotcazou [Mon, 1 Jun 2015 07:51:02 +0000 (07:51 +0000)]
* gcc-interface/trans.c (lvalue_required_p) <N_Indexed_Component>: Deal
with character and enumeration literals as index values.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223913 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/gigi.h (build_simple_component_ref): Declare.
ebotcazou [Mon, 1 Jun 2015 07:43:09 +0000 (07:43 +0000)]
* gcc-interface/gigi.h (build_simple_component_ref): Declare.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Deal with
address clause on aliased object with unconstrained nominal subtype.
Mark the aligning variable as artificial, do not convert the address
expression immediately but mark it as constant instead.
* gcc-interface/utils.c (convert): If the target type contains a
template, be prepared for an empty array.
(maybe_unconstrained_array): Likewise.
* gcc-interface/utils2.c (known_alignment) <POINTER_PLUS_EXPR>: Deal
with the pattern built for aligning types.
<INTEGER_CST>: Do not cap the value at BIGGEST_ALIGNMENT.
(build_simple_component_ref): Make public.
If the base object is a constructor that contains a template, fold the
result field by field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223912 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Mon, 1 Jun 2015 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223910 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR libstdc++/66354
redi [Sun, 31 May 2015 22:42:17 +0000 (22:42 +0000)]
PR libstdc++/66354
* include/bits/stl_algobase.h (__fill_a): Check length before calling
memset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223906 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
ebotcazou [Sun, 31 May 2015 21:47:28 +0000 (21:47 +0000)]
* c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
(has_nontrivial_methods): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223905 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * constexpr.c (cxx_eval_indirect_ref): Try folding first.
jason [Sun, 31 May 2015 20:36:26 +0000 (20:36 +0000)]
* constexpr.c (cxx_eval_indirect_ref): Try folding first.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223902 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR c++/66320
jason [Sun, 31 May 2015 20:36:18 +0000 (20:36 +0000)]
PR c++/66320
* constexpr.c (cxx_eval_constant_expression): Treat a placeholder
with the wrong type as non-constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223901 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * s-oscons-tmplt.c: Add explicit tests for Android alongside Linux.
ebotcazou [Sun, 31 May 2015 16:32:46 +0000 (16:32 +0000)]
* s-oscons-tmplt.c: Add explicit tests for Android alongside Linux.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223900 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoCheck CXXFLAGS, instead of CFLAGS, for NO_PIE_CFLAGS
hjl [Sun, 31 May 2015 12:06:06 +0000 (12:06 +0000)]
Check CXXFLAGS, instead of CFLAGS, for NO_PIE_CFLAGS

* configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
* configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223899 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix C++11 compatibility issue
miyuki [Sun, 31 May 2015 08:12:55 +0000 (08:12 +0000)]
Fix C++11 compatibility issue

* config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
issue (add space between string literal and macro).
* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223898 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sun, 31 May 2015 00:16:17 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223896 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix copyright years.
ebotcazou [Sat, 30 May 2015 21:23:24 +0000 (21:23 +0000)]
Fix copyright years.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223891 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * adaint.c: Test for __linux__ instead of linux and __sun__ instead
ebotcazou [Sat, 30 May 2015 21:13:59 +0000 (21:13 +0000)]
* adaint.c: Test for __linux__ instead of linux and __sun__ instead
of sun.  Add missing leading underscore to AIX.  Remove #elif 0.
* adaint.h: Likewise.
* cio.c: Likewise.
* cstreams.c: Likewise.
* env.c: Likewise.
* gsocket.h: Likewise.
* init.c: Likewise.  Test for __i386__ instead of i386.
* link.c: Likewise.
* s-oscons-tmplt.c: Likewise.
* sysdep.c: Likewise.
* terminals.c: Likewise.  Use BSD symbol instead of FREEBSD.
* tracebak.c: Likewise.  Test for __sparc__ instead of sparc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223890 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago* config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
schwab [Sat, 30 May 2015 17:04:15 +0000 (17:04 +0000)]
* config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
implict or explicit -fPIE or -fpie.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223889 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoalpha: turn -mcpu=<cpu> into -m<cpu> for the assembler all the time
vapier [Sat, 30 May 2015 16:39:52 +0000 (16:39 +0000)]
alpha: turn -mcpu=<cpu> into -m<cpu> for the assembler all the time

If you create a toolchain with the target alphaev68-unknown-linux-gnu, gcc
will use the -mcpu=ev67 by default when compiling.  Some software packages
(like gmp) will use this target info to decide that it may freely use
assembly code that targets ev67+.  The trouble comes in when trying to
compile that pure assembly code.

While gcc will use -mcpu=ev67 just fine, it will invoke gas without an
-mev67 option, so the assembler will default to the lowest common
denominator -- ev4 in this case.  Inline assembly in C code is normally
just peachy because gcc's assembler output will start with ".arch <cpu>"
and the assembler will accept that.  But if the hand coded assembly code
lacks that .arch, you easily end up with errors like so:
opcode `cttz' not supported for target <all>

While the assembly code could/should be fixed to explicitly output the
.arch directive, I think it's reasonable to expect this to work:
echo 'cttz $20,$21' | gcc -x assembler -c - -o /dev/null -mcpu=ev67

This simple patch implements that, although I guess it is a bit redundant
in the default case where gcc outputs .arch.  Perhaps that should all be
punted in favor of a specs-only approach.  Considering gas respects .arch
in the code over the command line, it should also make things more natural.
The command line is processed in the standard/expected way -- gcc defaults
the -m option while user's custom -mcpu/-Wa,-m options come after, and the
guy writing the assembly code is free to use .arch to override everything
else.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223888 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix dg-warning in gcc.dg/alias-8.c
hjl [Sat, 30 May 2015 15:36:59 +0000 (15:36 +0000)]
Fix dg-warning in gcc.dg/alias-8.c

* gcc.dg/alias-8.c: Fix dg-warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223887 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * include/bits/stl_algobase.h (__equal<true>::equal): Check length
redi [Sat, 30 May 2015 11:44:02 +0000 (11:44 +0000)]
* include/bits/stl_algobase.h (__equal<true>::equal): Check length
instead of checking for null pointers.
(__lexicographical_compare<true>::__lc): Only check shorter length.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223886 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago* expmed.c (extract_bit_field_1): Avoid clobbering a
dj [Sat, 30 May 2015 06:05:54 +0000 (06:05 +0000)]
* expmed.c (extract_bit_field_1): Avoid clobbering a
yet-to-be-used base/index register.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223885 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoAdd new script to contrib (GIMPLE syntax highlighting rules for Vim).
miyuki [Sat, 30 May 2015 05:44:17 +0000 (05:44 +0000)]
Add new script to contrib (GIMPLE syntax highlighting rules for Vim).

contrib/
* gimple.vim: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223884 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
hubicka [Sat, 30 May 2015 00:32:04 +0000 (00:32 +0000)]
* alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
(alias_stats): Add num_universal.
(alias_set_subset_of): Special case pointers; be ready for NULL
children.
(alias_sets_conflict_p): Special case pointers; be ready for NULL
children.
(init_alias_set_entry): Break out from ...
(record_alias_subset): ... here; propagate new fields;
allocate children only when really needed.
(get_alias_set): Do less generous pointer globbing.
(dump_alias_stats_in_alias_c): Update statistics.
* gcc.dg/alias-8.c: Do not xfail.
* gcc.dg/pr62167.c: Prevent FRE.
* gcc.dg/alias-14.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223883 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sat, 30 May 2015 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223882 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
amodra [Sat, 30 May 2015 00:15:30 +0000 (00:15 +0000)]
* config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
correct block for use of r12.
(rs6000_expand_split_stack_prologue): Error on r29 asm global reg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223878 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-05-29 François Dumont fdumont@gcc.gnu.org>
fdumont [Fri, 29 May 2015 21:29:07 +0000 (21:29 +0000)]
2015-05-29  François Dumont  fdumont@gcc.gnu.org>

* include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
_GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
* include/debug/assertions.h: ...here, new.
* include/debug/formatter.h
(_Error_formatter::_Is_iterator_value_type): New.
(_Error_formatter::_Is_instance): New.
(_Error_formatter::_Parameter): Make public and not friend anymore.
(_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
(_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
entry.
(_Error_formatter::_Parameter::_Type): New.
(_Error_formatter::_Parameter::_Instance): New, inherit from
latter.
(union _Error_formatter::_Parameter::_M_variant): Reorganize.
(_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
overloads take iterator through a const reference.
(_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
New.
(_Parameter(const _Type&, const char*, _Is_instance)): New.
(_Error_formatter::_M_print_type): Delete.
(_Error_formatter::_M_iterator_value_type): New.
(_Error_formatter::_M_instance): New.
* include/Makefile.am: Add new above debug file.
* include/Makefile.in: Regenerate.
* include/debug/functions.h
(__check_dereferenceable(const _Safe_iterator<>&),
__valid_range(const _Safe_iterator<>&),
__is_safe_random_iterator<_Safe_iterator<>>): Move...
* include/debug/safe_iterator.h: ... here.
Replace debug.h include with assertions.h.
(__check_singular_aux): Move...
* include/debug/safe_base.h: ... here.
* include/debug/functions.h
(__check_dereferenceable(const _Safe_local_iterator<>&),
__valid_range(const _Safe_local_iterator<>&): Move...
* include/debug/safe_local_iterator.h: ...here.
* include/debug/safe_sequence.h: Replace debug.h with assertions.h.
Remove _Safe_iterator declaration.
* include/debug/safe_unordered_container.h: Replace debug.h with
assertions.h.
* include/debug/array: Replace safe_sequence.h include with
formatter.h and macros.h.
* include/debug/deque: Include functions.tcc.
* include/debug/forward_list: Likewise.
* include/debug/list: Likewise.
* include/debug/string: Likewise.
* include/debug/vector: Likewise.
* include/bits/unique_ptr.h: Replace debug.h include with new
assertions.h.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/array/tuple_interface/
tuple_element_debug_neg.cc: Likewise.
* src/c++11/debug.cc: Adapt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223877 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-05-29 Christophe Lyon <christophe.lyon@linaro.org>
clyon [Fri, 29 May 2015 19:46:01 +0000 (19:46 +0000)]
2015-05-29  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/arm/simd/vextp64_1.c: Close comment on final line.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223876 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * sv.po: Update.
jsm28 [Fri, 29 May 2015 18:03:09 +0000 (18:03 +0000)]
* sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223873 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
redi [Fri, 29 May 2015 15:18:05 +0000 (15:18 +0000)]
* doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
* doc/html/manual/*: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223868 138bc75d-0d04-0410-961f-82ee72b054a4