Added support for v850e and v850eq instructions.
[binutils-gdb.git] / gas / config / .Sanitize
1 # .Sanitize for devo/gas/config
2
3 # Each directory to survive its way into a release will need a file
4 # like this one called "./.Sanitize". All keyword lines must exist,
5 # and must exist in the order specified by this file. Each directory
6 # in the tree will be processed, top down, in the following order.
7
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done. Blank lines will also be squashed
10 # out.
11
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this
15
16 Do-first:
17
18 arc_files="tc-arc.c tc-arc.h"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 else
23 lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d30v_files="tc-d30v.c tc-d30v.h"
27
28 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32 fi
33
34 v850_files="tc-v850.c tc-v850.h"
35
36 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38 else
39 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
40 keep_these_too="${v850_files} ${keep_these_too}"
41 else
42 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
43 keep_these_too="${v850_files} ${keep_these_too}"
44 else
45 lose_these_too="${v850_files} ${lose_these_too}"
46 fi
47 fi
48 fi
49
50 tic80_files="tc-tic80.c tc-tic80.h"
51
52 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
53 keep_these_too="${tic80_files} ${keep_these_too}"
54 else
55 lose_these_too="${tic80_files} ${lose_these_too}"
56 fi
57
58 # All files listed between the "Things-to-keep:" line and the
59 # "Files-to-sed:" line will be kept. All other files will be removed.
60 # Directories listed in this section will have their own Sanitize
61 # called. Directories not listed will be removed in their entirety
62 # with rm -rf.
63
64 Things-to-keep:
65
66 aout_gnu.h
67 atof-ieee.c
68 atof-tahoe.c
69 atof-vax.c
70 go32.cfg
71 e-i386coff.c
72 e-i386elf.c
73 e-mipsecoff.c
74 e-mipself.c
75 itbl-mips.h
76 m68k-parse.h
77 m68k-parse.y
78 m88k-opcode.h
79 obj-aout.c
80 obj-aout.h
81 obj-bout.c
82 obj-bout.h
83 obj-coff.c
84 obj-coff.h
85 obj-ecoff.c
86 obj-ecoff.h
87 obj-elf.c
88 obj-elf.h
89 obj-evax.c
90 obj-evax.h
91 obj-generic.c
92 obj-generic.h
93 obj-hp300.c
94 obj-hp300.h
95 obj-ieee.c
96 obj-ieee.h
97 obj-multi.c
98 obj-multi.h
99 obj-som.c
100 obj-som.h
101 obj-vms.c
102 obj-vms.h
103 tc-a29k.c
104 tc-a29k.h
105 tc-alpha.c
106 tc-alpha.h
107 tc-arm.c
108 tc-arm.h
109 tc-d10v.c
110 tc-d10v.h
111 tc-generic.c
112 tc-generic.h
113 tc-h8300.c
114 tc-h8300.h
115 tc-h8500.c
116 tc-h8500.h
117 tc-hppa.c
118 tc-hppa.h
119 tc-i386.c
120 tc-i386.h
121 tc-i860.c
122 tc-i860.h
123 tc-i960.c
124 tc-i960.h
125 tc-m32r.c
126 tc-m32r.h
127 tc-m68851.h
128 tc-m68k.c
129 tc-m68k.h
130 tc-m88k.c
131 tc-m88k.h
132 tc-mips.c
133 tc-mips.h
134 tc-mn10200.c
135 tc-mn10200.h
136 tc-mn10300.c
137 tc-mn10300.h
138 tc-ns32k.c
139 tc-ns32k.h
140 tc-ppc.c
141 tc-ppc.h
142 tc-sh.c
143 tc-sh.h
144 tc-sparc.c
145 tc-sparc.h
146 tc-tahoe.c
147 tc-tahoe.h
148 tc-vax.c
149 tc-vax.h
150 tc-w65.c
151 tc-w65.h
152 tc-z8k.c
153 tc-z8k.h
154 te-386bsd.h
155 te-aux.h
156 te-delta.h
157 te-delt88.h
158 te-dpx2.h
159 te-dynix.h
160 te-generic.h
161 te-go32.h
162 te-hp300.h
163 te-hppa.h
164 te-i386aix.h
165 te-ic960.h
166 te-linux.h
167 te-lnews.h
168 te-lynx.h
169 te-mach.h
170 te-macos.h
171 te-multi.h
172 te-nbsd.h
173 te-nbsd532.h
174 te-pc532mach.h
175 te-pe.h
176 te-ppcnw.h
177 te-psos.h
178 te-riscix.h
179 te-sparcaout.h
180 te-sun3.h
181 te-svr4.h
182 te-sysv32.h
183 vax-inst.h
184 vms-conf.h
185 vms-a-conf.h
186
187 Things-to-lose:
188
189 Do-last:
190
191 r5900_files="tc-mips.c"
192
193 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
194 for i in $r5900_files ; do
195 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
196 if [ -n "${verbose}" ] ; then
197 echo Keeping r5900 stuff in $i
198 fi
199 fi
200 done
201 else
202 for i in * ; do
203 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
204 if [ -n "${verbose}" ] ; then
205 echo Removing traces of \"r5900\" from $i...
206 fi
207 cp $i new
208 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
209 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
210 if [ -n "${verbose}" ] ; then
211 echo Caching $i in .Recover...
212 fi
213 mv $i .Recover
214 fi
215 mv new $i
216 fi
217 done
218 fi
219
220 tic80_files="obj-coff.h"
221
222 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
223 for i in $tic80_files ; do
224 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
225 if [ -n "${verbose}" ] ; then
226 echo Keeping tic80 stuff in $i
227 fi
228 fi
229 done
230 else
231 for i in * ; do
232 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
233 if [ -n "${verbose}" ] ; then
234 echo Removing traces of \"tic80\" from $i...
235 fi
236 cp $i new
237 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
238 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
239 if [ -n "${verbose}" ] ; then
240 echo Caching $i in .Recover...
241 fi
242 mv $i .Recover
243 fi
244 mv new $i
245 fi
246 done
247 fi
248
249 v850e_files="tc-v850.c tc-v850.h"
250 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
251 for i in $v850e_files ; do
252 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
253 if [ -n "${verbose}" ] ; then
254 echo Removing traces of \"v850eq\" from $i...
255 fi
256 cp $i new
257 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
258 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
259 if [ -n "${verbose}" ] ; then
260 echo Caching $i in .Recover...
261 fi
262 mv $i .Recover
263 fi
264 mv new $i
265 fi
266 done
267 else
268 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
269 for i in $v850e_files ; do
270 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
271 if [ -n "${verbose}" ] ; then
272 echo Keeping v850e and v850eq stuff in $i
273 fi
274 fi
275 done
276 else
277 for i in $v850e_files ; do
278 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
279 if [ -n "${verbose}" ] ; then
280 echo Removing traces of \"v850e\" from $i...
281 fi
282 cp $i new
283 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
284 cp new newer
285 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < new > newer
286 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
287 if [ -n "${verbose}" ] ; then
288 echo Caching $i in .Recover...
289 fi
290 mv $i .Recover
291 fi
292 mv newer $i
293 rm new
294 fi
295 done
296 fi
297 fi
298
299 # End of file.