Added support for v850e and v850eq instructions.
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
CommitLineData
4f5d16c7 1# .Sanitize for devo/gas/config
0fd8d5d9 2
4f5d16c7 3# Each directory to survive its way into a release will need a file
0fd8d5d9
RP
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
16Do-first:
17
833c46e1 18arc_files="tc-arc.c tc-arc.h"
bc70eba5
DE
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
9b1168d6
MH
26d30v_files="tc-d30v.c tc-d30v.h"
27
28if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32fi
33
c6aa56bc
C
34v850_files="tc-v850.c tc-v850.h"
35
36if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38else
32e23ecd
NC
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
c6aa56bc 45 lose_these_too="${v850_files} ${lose_these_too}"
32e23ecd
NC
46 fi
47 fi
c6aa56bc
C
48fi
49
64556643
FF
50tic80_files="tc-tic80.c tc-tic80.h"
51
52if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
53 keep_these_too="${tic80_files} ${keep_these_too}"
54else
55 lose_these_too="${tic80_files} ${lose_these_too}"
56fi
c6aa56bc 57
0fd8d5d9
RP
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
64Things-to-keep:
65
3e6e09c0 66aout_gnu.h
0fd8d5d9 67atof-ieee.c
b41390d2 68atof-tahoe.c
0fd8d5d9 69atof-vax.c
cd8aca19 70go32.cfg
034988c6
ILT
71e-i386coff.c
72e-i386elf.c
511cd41c
KR
73e-mipsecoff.c
74e-mipself.c
8e5c905e 75itbl-mips.h
a1c7c0f3
ILT
76m68k-parse.h
77m68k-parse.y
cd625bf3 78m88k-opcode.h
0fd8d5d9
RP
79obj-aout.c
80obj-aout.h
0fd8d5d9
RP
81obj-bout.c
82obj-bout.h
83obj-coff.c
84obj-coff.h
e99f6f9c
ILT
85obj-ecoff.c
86obj-ecoff.h
a4099f78
KR
87obj-elf.c
88obj-elf.h
f649d525
ILT
89obj-evax.c
90obj-evax.h
0fd8d5d9
RP
91obj-generic.c
92obj-generic.h
daae8c92
KR
93obj-hp300.c
94obj-hp300.h
fd345c9c
SC
95obj-ieee.c
96obj-ieee.h
511cd41c
KR
97obj-multi.c
98obj-multi.h
0fa747c4
JL
99obj-som.c
100obj-som.h
b41390d2
KR
101obj-vms.c
102obj-vms.h
0fd8d5d9
RP
103tc-a29k.c
104tc-a29k.h
5749c497
KR
105tc-alpha.c
106tc-alpha.h
6c3bc2b8
KR
107tc-arm.c
108tc-arm.h
8a683c67
ILT
109tc-d10v.c
110tc-d10v.h
0fd8d5d9
RP
111tc-generic.c
112tc-generic.h
fd345c9c
SC
113tc-h8300.c
114tc-h8300.h
033400ec
SC
115tc-h8500.c
116tc-h8500.h
daae8c92
KR
117tc-hppa.c
118tc-hppa.h
0fd8d5d9
RP
119tc-i386.c
120tc-i386.h
121tc-i860.c
122tc-i860.h
123tc-i960.c
124tc-i960.h
9f719a56
DE
125tc-m32r.c
126tc-m32r.h
0fd8d5d9
RP
127tc-m68851.h
128tc-m68k.c
129tc-m68k.h
cd625bf3
DHW
130tc-m88k.c
131tc-m88k.h
fd345c9c
SC
132tc-mips.c
133tc-mips.h
ae1b99e4
JL
134tc-mn10200.c
135tc-mn10200.h
136tc-mn10300.c
137tc-mn10300.h
0fd8d5d9
RP
138tc-ns32k.c
139tc-ns32k.h
af46c203
ILT
140tc-ppc.c
141tc-ppc.h
4a1bbbe7
SC
142tc-sh.c
143tc-sh.h
6690d829 144tc-sparc.c
920babce 145tc-sparc.h
af3b5ad2
KR
146tc-tahoe.c
147tc-tahoe.h
0fd8d5d9
RP
148tc-vax.c
149tc-vax.h
b3235d56
SC
150tc-w65.c
151tc-w65.h
163107a1
SC
152tc-z8k.c
153tc-z8k.h
daae8c92 154te-386bsd.h
66b935da 155te-aux.h
757d4129 156te-delta.h
880b7429 157te-delt88.h
0fd8d5d9 158te-dpx2.h
f5ed78de 159te-dynix.h
0fd8d5d9 160te-generic.h
cd8aca19 161te-go32.h
daae8c92
KR
162te-hp300.h
163te-hppa.h
cd625bf3 164te-i386aix.h
0fd8d5d9 165te-ic960.h
daae8c92 166te-linux.h
d3ecee39 167te-lnews.h
d0c25cae 168te-lynx.h
5efa30fa 169te-mach.h
75d1d87a 170te-macos.h
511cd41c 171te-multi.h
04050d57 172te-nbsd.h
d5a0eeac 173te-nbsd532.h
f68880ea 174te-pc532mach.h
b04b02a5 175te-pe.h
cd8aca19 176te-ppcnw.h
8a6f53e9 177te-psos.h
69c1de90 178te-riscix.h
df4021c1 179te-sparcaout.h
0fd8d5d9 180te-sun3.h
fee3e248 181te-svr4.h
920babce 182te-sysv32.h
0fd8d5d9 183vax-inst.h
ba466c4c 184vms-conf.h
f649d525 185vms-a-conf.h
0fd8d5d9 186
87756e15
RP
187Things-to-lose:
188
0fd8d5d9
RP
189Do-last:
190
276c2d7d
GRK
191r5900_files="tc-mips.c"
192
193if ( 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
201else
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
32e23ecd 208 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
276c2d7d
GRK
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
218fi
219
54d5e0fb
AMT
220tic80_files="obj-coff.h"
221
222if ( 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
230else
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
32e23ecd 237 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
54d5e0fb
AMT
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
247fi
248
32e23ecd
NC
249v850e_files="tc-v850.c tc-v850.h"
250if ( 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
267else
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
297fi
276c2d7d 298
0fd8d5d9 299# End of file.
This page took 0.212838 seconds and 4 git commands to generate.