diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-06-17 17:11:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 11:50:07 +0100 |
commit | 0faa5f72999fea82fadda8bab70abea2303216c7 (patch) | |
tree | 05a8c18d2f67d883f94d2bd6f060ab0f4ac7f156 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0003-Backport-from-mainline.patch | |
parent | c2007ba4cdb64fa9e308d3dae395c03ef4cc9161 (diff) | |
download | poky-0faa5f72999fea82fadda8bab70abea2303216c7.tar.gz |
gcc-4.6: Switch to using svn SRC_URI for recipe
We call the recipes 4.6
Remove the backport patches
(From OE-Core rev: 68b545f4ff719f2b6e57d68b002dc9845c7a14ae)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0003-Backport-from-mainline.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0003-Backport-from-mainline.patch | 164 |
1 files changed, 0 insertions, 164 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0003-Backport-from-mainline.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0003-Backport-from-mainline.patch deleted file mode 100644 index c8c245fbe9..0000000000 --- a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0003-Backport-from-mainline.patch +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | From 540b311d6b6aa2e50a9feb45255361e498bb5198 Mon Sep 17 00:00:00 2001 | ||
2 | From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Sat, 26 Mar 2011 09:20:34 +0000 | ||
4 | Subject: [PATCH] Backport from mainline | ||
5 | 2011-03-17 Jakub Jelinek <jakub@redhat.com> | ||
6 | |||
7 | PR rtl-optimization/48141 | ||
8 | * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New. | ||
9 | * dse.c: Include params.h. | ||
10 | (active_local_stores_len): New variable. | ||
11 | (add_wild_read, dse_step1): Clear it when setting active_local_stores | ||
12 | to NULL. | ||
13 | (record_store, check_mem_read_rtx): Decrease it when removing | ||
14 | from the chain. | ||
15 | (scan_insn): Likewise. Increase it when adding to chain, if it | ||
16 | reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and | ||
17 | set active_local_stores to NULL before the addition. | ||
18 | * Makefile.in (dse.o): Depend on $(PARAMS_H). | ||
19 | |||
20 | |||
21 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171546 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
22 | |||
23 | index 9a8262a..792ca6c 100644 | ||
24 | --- a/gcc/Makefile.in | ||
25 | +++ b/gcc/Makefile.in | ||
26 | @@ -3070,7 +3070,7 @@ dse.o : dse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \ | ||
27 | $(TREE_H) $(TM_P_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \ | ||
28 | $(RECOG_H) $(EXPR_H) $(DF_H) cselib.h $(DBGCNT_H) $(TIMEVAR_H) \ | ||
29 | $(TREE_PASS_H) alloc-pool.h $(ALIAS_H) dse.h $(OPTABS_H) $(TARGET_H) \ | ||
30 | - $(BITMAP_H) | ||
31 | + $(BITMAP_H) $(PARAMS_H) | ||
32 | fwprop.o : fwprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \ | ||
33 | $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H) $(FLAGS_H) $(OBSTACK_H) $(BASIC_BLOCK_H) \ | ||
34 | output.h $(DF_H) alloc-pool.h $(TIMEVAR_H) $(TREE_PASS_H) $(TARGET_H) \ | ||
35 | diff --git a/gcc/dse.c b/gcc/dse.c | ||
36 | index e43ab72..a15b735 100644 | ||
37 | --- a/gcc/dse.c | ||
38 | +++ b/gcc/dse.c | ||
39 | @@ -47,6 +47,7 @@ along with GCC; see the file COPYING3. If not see | ||
40 | #include "optabs.h" | ||
41 | #include "dbgcnt.h" | ||
42 | #include "target.h" | ||
43 | +#include "params.h" | ||
44 | |||
45 | /* This file contains three techniques for performing Dead Store | ||
46 | Elimination (dse). | ||
47 | @@ -387,6 +388,7 @@ static alloc_pool insn_info_pool; | ||
48 | /* The linked list of stores that are under consideration in this | ||
49 | basic block. */ | ||
50 | static insn_info_t active_local_stores; | ||
51 | +static int active_local_stores_len; | ||
52 | |||
53 | struct bb_info | ||
54 | { | ||
55 | @@ -947,6 +949,7 @@ add_wild_read (bb_info_t bb_info) | ||
56 | } | ||
57 | insn_info->wild_read = true; | ||
58 | active_local_stores = NULL; | ||
59 | + active_local_stores_len = 0; | ||
60 | } | ||
61 | |||
62 | |||
63 | @@ -1537,6 +1540,7 @@ record_store (rtx body, bb_info_t bb_info) | ||
64 | { | ||
65 | insn_info_t insn_to_delete = ptr; | ||
66 | |||
67 | + active_local_stores_len--; | ||
68 | if (last) | ||
69 | last->next_local_store = ptr->next_local_store; | ||
70 | else | ||
71 | @@ -2074,6 +2078,7 @@ check_mem_read_rtx (rtx *loc, void *data) | ||
72 | if (dump_file) | ||
73 | dump_insn_info ("removing from active", i_ptr); | ||
74 | |||
75 | + active_local_stores_len--; | ||
76 | if (last) | ||
77 | last->next_local_store = i_ptr->next_local_store; | ||
78 | else | ||
79 | @@ -2163,6 +2168,7 @@ check_mem_read_rtx (rtx *loc, void *data) | ||
80 | if (dump_file) | ||
81 | dump_insn_info ("removing from active", i_ptr); | ||
82 | |||
83 | + active_local_stores_len--; | ||
84 | if (last) | ||
85 | last->next_local_store = i_ptr->next_local_store; | ||
86 | else | ||
87 | @@ -2222,6 +2228,7 @@ check_mem_read_rtx (rtx *loc, void *data) | ||
88 | if (dump_file) | ||
89 | dump_insn_info ("removing from active", i_ptr); | ||
90 | |||
91 | + active_local_stores_len--; | ||
92 | if (last) | ||
93 | last->next_local_store = i_ptr->next_local_store; | ||
94 | else | ||
95 | @@ -2426,6 +2433,7 @@ scan_insn (bb_info_t bb_info, rtx insn) | ||
96 | if (dump_file) | ||
97 | dump_insn_info ("removing from active", i_ptr); | ||
98 | |||
99 | + active_local_stores_len--; | ||
100 | if (last) | ||
101 | last->next_local_store = i_ptr->next_local_store; | ||
102 | else | ||
103 | @@ -2453,6 +2461,12 @@ scan_insn (bb_info_t bb_info, rtx insn) | ||
104 | fprintf (dump_file, "handling memset as BLKmode store\n"); | ||
105 | if (mems_found == 1) | ||
106 | { | ||
107 | + if (active_local_stores_len++ | ||
108 | + >= PARAM_VALUE (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES)) | ||
109 | + { | ||
110 | + active_local_stores_len = 1; | ||
111 | + active_local_stores = NULL; | ||
112 | + } | ||
113 | insn_info->next_local_store = active_local_stores; | ||
114 | active_local_stores = insn_info; | ||
115 | } | ||
116 | @@ -2496,6 +2510,12 @@ scan_insn (bb_info_t bb_info, rtx insn) | ||
117 | it as cannot delete. This simplifies the processing later. */ | ||
118 | if (mems_found == 1) | ||
119 | { | ||
120 | + if (active_local_stores_len++ | ||
121 | + >= PARAM_VALUE (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES)) | ||
122 | + { | ||
123 | + active_local_stores_len = 1; | ||
124 | + active_local_stores = NULL; | ||
125 | + } | ||
126 | insn_info->next_local_store = active_local_stores; | ||
127 | active_local_stores = insn_info; | ||
128 | } | ||
129 | @@ -2534,6 +2554,7 @@ remove_useless_values (cselib_val *base) | ||
130 | |||
131 | if (del) | ||
132 | { | ||
133 | + active_local_stores_len--; | ||
134 | if (last) | ||
135 | last->next_local_store = insn_info->next_local_store; | ||
136 | else | ||
137 | @@ -2584,6 +2605,7 @@ dse_step1 (void) | ||
138 | = create_alloc_pool ("cse_store_info_pool", | ||
139 | sizeof (struct store_info), 100); | ||
140 | active_local_stores = NULL; | ||
141 | + active_local_stores_len = 0; | ||
142 | cselib_clear_table (); | ||
143 | |||
144 | /* Scan the insns. */ | ||
145 | diff --git a/gcc/params.def b/gcc/params.def | ||
146 | index 5749eb2..e5a82e9 100644 | ||
147 | --- a/gcc/params.def | ||
148 | +++ b/gcc/params.def | ||
149 | @@ -698,6 +698,12 @@ DEFPARAM(PARAM_MAX_SCHED_READY_INSNS, | ||
150 | "The maximum number of instructions ready to be issued to be considered by the scheduler during the first scheduling pass", | ||
151 | 100, 0, 0) | ||
152 | |||
153 | +/* This is the maximum number of active local stores RTL DSE will consider. */ | ||
154 | +DEFPARAM (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES, | ||
155 | + "max-dse-active-local-stores", | ||
156 | + "Maximum number of active local stores in RTL dead store elimination", | ||
157 | + 5000, 0, 0) | ||
158 | + | ||
159 | /* Prefetching and cache-optimizations related parameters. Default values are | ||
160 | usually set by machine description. */ | ||
161 | |||
162 | -- | ||
163 | 1.7.0.4 | ||
164 | |||