about summary refs log blame commit diff stats
path: root/misc_checks
blob: 91384ea359c4cace7f013e644df0ae809c0b8653 (plain) (tree)





















                                                                               
#!/bin/sh
# Hackily check for certain kinds of errors.
#
# We still rely exclusively on linux/bootstrap/bootstrap for some static
# checks on bare SubX code that aren't implemented yet in the self-hosted
# translator phases.
#
# However, boot.subx uses instructions that bootstrap doesn't recognize. So we
# won't check it.

set -e

cat $* [0-9]*.mu                                      |linux/mu      > a.subx

cat misc_checks.subx mu-init.subx [0-9]*.subx a.subx  |linux/braces  > a.braces
cat a.braces                                          |linux/calls   > a.calls
cat a.calls                                           |linux/sigils  > a.sigils

CXXFLAGS=-g linux/bootstrap/bootstrap --debug translate a.sigils -o a.elf
# Translation will never succeed,
# but if we get to "missing reference to global" errors, they're expected and
# we've gotten to the end of what bootstrap can check for us.
6f6659d0be1ce5c0c76682864a'>^
4b826595 ^
736b864b ^

d7039145 ^

041bc6d3 ^
d7039145 ^


4b826595 ^


736b864b ^
d7039145 ^


041bc6d3 ^



4b826595 ^

041bc6d3 ^
d7039145 ^
041bc6d3 ^
9dfdb428 ^

041bc6d3 ^

041bc6d3 ^
9a248482 ^








77d3d6f5 ^
d7039145 ^



3868dfd0 ^
d7039145 ^


6c474705 ^
d7039145 ^


ab5d63be ^
d7039145 ^









02bd7c4f ^
d7039145 ^
a361fe94 ^

d7039145 ^
8df58aad ^











77d3d6f5 ^
d7039145 ^

041bc6d3 ^
b595639f ^



041bc6d3 ^
d7039145 ^
02bd7c4f ^
d7039145 ^

02bd7c4f ^
041bc6d3 ^
77d3d6f5 ^
d7039145 ^

041bc6d3 ^
d7039145 ^


041bc6d3 ^
d7039145 ^




041bc6d3 ^
77d3d6f5 ^
d7039145 ^
b595639f ^


02bd7c4f ^


b595639f ^



b595639f ^
77d3d6f5 ^

85a9a41e ^






6c474705 ^
85a9a41e ^

02bd7c4f ^
85a9a41e ^




b595639f ^






77d3d6f5 ^

b595639f ^
9a248482 ^










4b826595 ^
d7039145 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199