[RS6000] Power10 ICE running gcc.target/powerpc/ppc-ne0-1.c
[official-gcc.git] / gcc / sanitizer.def
bloba32715ddb92e69b7ca7be28a8f17a369b891bd76
1 /* This file contains the definitions and documentation for the
2 Address Sanitizer and Thread Sanitizer builtins used in the GNU compiler.
3 Copyright (C) 2012-2020 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* Before including this file, you should define a macro:
23 DEF_BUILTIN_STUB(ENUM, NAME)
24 DEF_SANITIZER_BUILTIN (ENUM, NAME, TYPE, ATTRS)
26 See builtins.def for details.
27 The builtins are created by the C-family of FEs in c-family/c-common.c,
28 for other FEs by asan.c. */
30 /* This has to come before all the sanitizer builtins. */
31 DEF_BUILTIN_STUB(BEGIN_SANITIZER_BUILTINS, (const char *)0)
33 /* Address Sanitizer */
34 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_INIT, "__asan_init",
35 BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
36 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_VERSION_MISMATCH_CHECK,
37 "__asan_version_mismatch_check_v8",
38 BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
39 /* Do not reorder the BUILT_IN_ASAN_{REPORT,CHECK}* builtins, e.g. cfgcleanup.c
40 relies on this order. */
41 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD1, "__asan_report_load1",
42 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
43 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD2, "__asan_report_load2",
44 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
45 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD4, "__asan_report_load4",
46 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
47 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD8, "__asan_report_load8",
48 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
49 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD16, "__asan_report_load16",
50 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
51 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD_N, "__asan_report_load_n",
52 BT_FN_VOID_PTR_PTRMODE,
53 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
54 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE1, "__asan_report_store1",
55 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
56 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE2, "__asan_report_store2",
57 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
58 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE4, "__asan_report_store4",
59 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
60 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE8, "__asan_report_store8",
61 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
62 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE16, "__asan_report_store16",
63 BT_FN_VOID_PTR, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
64 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE_N, "__asan_report_store_n",
65 BT_FN_VOID_PTR_PTRMODE,
66 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST)
67 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD1_NOABORT,
68 "__asan_report_load1_noabort",
69 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
70 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD2_NOABORT,
71 "__asan_report_load2_noabort",
72 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
73 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD4_NOABORT,
74 "__asan_report_load4_noabort",
75 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
76 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD8_NOABORT,
77 "__asan_report_load8_noabort",
78 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
79 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD16_NOABORT,
80 "__asan_report_load16_noabort",
81 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
82 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_LOAD_N_NOABORT,
83 "__asan_report_load_n_noabort",
84 BT_FN_VOID_PTR_PTRMODE,
85 ATTR_TMPURE_NOTHROW_LEAF_LIST)
86 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE1_NOABORT,
87 "__asan_report_store1_noabort",
88 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
89 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE2_NOABORT,
90 "__asan_report_store2_noabort",
91 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
92 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE4_NOABORT,
93 "__asan_report_store4_noabort",
94 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
95 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE8_NOABORT,
96 "__asan_report_store8_noabort",
97 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
98 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE16_NOABORT,
99 "__asan_report_store16_noabort",
100 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
101 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REPORT_STORE_N_NOABORT,
102 "__asan_report_store_n_noabort",
103 BT_FN_VOID_PTR_PTRMODE,
104 ATTR_TMPURE_NOTHROW_LEAF_LIST)
105 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD1, "__asan_load1",
106 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
107 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD2, "__asan_load2",
108 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
109 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD4, "__asan_load4",
110 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
111 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD8, "__asan_load8",
112 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
113 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD16, "__asan_load16",
114 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
115 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOADN, "__asan_loadN",
116 BT_FN_VOID_PTR_PTRMODE, ATTR_TMPURE_NOTHROW_LEAF_LIST)
117 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE1, "__asan_store1",
118 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
119 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE2, "__asan_store2",
120 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
121 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE4, "__asan_store4",
122 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
123 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE8, "__asan_store8",
124 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
125 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE16, "__asan_store16",
126 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
127 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STOREN, "__asan_storeN",
128 BT_FN_VOID_PTR_PTRMODE, ATTR_TMPURE_NOTHROW_LEAF_LIST)
129 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD1_NOABORT, "__asan_load1_noabort",
130 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
131 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD2_NOABORT, "__asan_load2_noabort",
132 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
133 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD4_NOABORT, "__asan_load4_noabort",
134 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
135 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD8_NOABORT, "__asan_load8_noabort",
136 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
137 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOAD16_NOABORT, "__asan_load16_noabort",
138 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
139 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_LOADN_NOABORT, "__asan_loadN_noabort",
140 BT_FN_VOID_PTR_PTRMODE, ATTR_TMPURE_NOTHROW_LEAF_LIST)
141 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE1_NOABORT, "__asan_store1_noabort",
142 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
143 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE2_NOABORT, "__asan_store2_noabort",
144 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
145 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE4_NOABORT, "__asan_store4_noabort",
146 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
147 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE8_NOABORT, "__asan_store8_noabort",
148 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
149 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STORE16_NOABORT, "__asan_store16_noabort",
150 BT_FN_VOID_PTR, ATTR_TMPURE_NOTHROW_LEAF_LIST)
151 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_STOREN_NOABORT, "__asan_storeN_noabort",
152 BT_FN_VOID_PTR_PTRMODE, ATTR_TMPURE_NOTHROW_LEAF_LIST)
153 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_REGISTER_GLOBALS,
154 "__asan_register_globals",
155 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
156 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_UNREGISTER_GLOBALS,
157 "__asan_unregister_globals",
158 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
159 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_HANDLE_NO_RETURN,
160 "__asan_handle_no_return",
161 BT_FN_VOID, ATTR_TMPURE_NOTHROW_LEAF_LIST)
162 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
163 "__asan_before_dynamic_init",
164 BT_FN_VOID_CONST_PTR, ATTR_NOTHROW_LEAF_LIST)
165 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_AFTER_DYNAMIC_INIT,
166 "__asan_after_dynamic_init",
167 BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
168 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_POISON_STACK_MEMORY,
169 "__asan_poison_stack_memory",
170 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
171 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_UNPOISON_STACK_MEMORY,
172 "__asan_unpoison_stack_memory",
173 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
174 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_ALLOCA_POISON, "__asan_alloca_poison",
175 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
176 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_ALLOCAS_UNPOISON, "__asan_allocas_unpoison",
177 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
178 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_POINTER_COMPARE, "__sanitizer_ptr_cmp",
179 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
180 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_POINTER_SUBTRACT, "__sanitizer_ptr_sub",
181 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
183 /* Thread Sanitizer */
184 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_INIT, "__tsan_init",
185 BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
186 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_FUNC_ENTRY, "__tsan_func_entry",
187 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
188 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_FUNC_EXIT, "__tsan_func_exit",
189 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
190 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VPTR_UPDATE, "__tsan_vptr_update",
191 BT_FN_VOID_PTR_PTR, ATTR_NOTHROW_LEAF_LIST)
192 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_READ1, "__tsan_read1",
193 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
194 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_READ2, "__tsan_read2",
195 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
196 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_READ4, "__tsan_read4",
197 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
198 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_READ8, "__tsan_read8",
199 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
200 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_READ16, "__tsan_read16",
201 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
202 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_WRITE1, "__tsan_write1",
203 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
204 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_WRITE2, "__tsan_write2",
205 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
206 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_WRITE4, "__tsan_write4",
207 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
208 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_WRITE8, "__tsan_write8",
209 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
210 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_WRITE16, "__tsan_write16",
211 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
212 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_READ_RANGE, "__tsan_read_range",
213 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
214 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_WRITE_RANGE, "__tsan_write_range",
215 BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
217 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_READ1, "__tsan_volatile_read1",
218 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
219 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_READ2, "__tsan_volatile_read2",
220 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
221 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_READ4, "__tsan_volatile_read4",
222 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
223 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_READ8, "__tsan_volatile_read8",
224 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
225 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_READ16, "__tsan_volatile_read16",
226 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
227 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_WRITE1, "__tsan_volatile_write1",
228 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
229 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_WRITE2, "__tsan_volatile_write2",
230 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
231 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_WRITE4, "__tsan_volatile_write4",
232 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
233 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_WRITE8, "__tsan_volatile_write8",
234 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
235 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_VOLATILE_WRITE16, "__tsan_volatile_write16",
236 BT_FN_VOID_PTR, ATTR_NOTHROW_LEAF_LIST)
238 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_LOAD,
239 "__tsan_atomic8_load",
240 BT_FN_I1_CONST_VPTR_INT, ATTR_NOTHROW_LEAF_LIST)
241 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_LOAD,
242 "__tsan_atomic16_load",
243 BT_FN_I2_CONST_VPTR_INT, ATTR_NOTHROW_LEAF_LIST)
244 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_LOAD,
245 "__tsan_atomic32_load",
246 BT_FN_I4_CONST_VPTR_INT, ATTR_NOTHROW_LEAF_LIST)
247 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_LOAD,
248 "__tsan_atomic64_load",
249 BT_FN_I8_CONST_VPTR_INT, ATTR_NOTHROW_LEAF_LIST)
250 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_LOAD,
251 "__tsan_atomic128_load",
252 BT_FN_I16_CONST_VPTR_INT, ATTR_NOTHROW_LEAF_LIST)
254 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_STORE,
255 "__tsan_atomic8_store",
256 BT_FN_VOID_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
257 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_STORE,
258 "__tsan_atomic16_store",
259 BT_FN_VOID_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
260 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_STORE,
261 "__tsan_atomic32_store",
262 BT_FN_VOID_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
263 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_STORE,
264 "__tsan_atomic64_store",
265 BT_FN_VOID_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
266 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_STORE,
267 "__tsan_atomic128_store",
268 BT_FN_VOID_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
270 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_EXCHANGE,
271 "__tsan_atomic8_exchange",
272 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
273 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_EXCHANGE,
274 "__tsan_atomic16_exchange",
275 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
276 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_EXCHANGE,
277 "__tsan_atomic32_exchange",
278 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
279 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_EXCHANGE,
280 "__tsan_atomic64_exchange",
281 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
282 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_EXCHANGE,
283 "__tsan_atomic128_exchange",
284 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
286 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_FETCH_ADD,
287 "__tsan_atomic8_fetch_add",
288 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
289 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_FETCH_ADD,
290 "__tsan_atomic16_fetch_add",
291 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
292 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_FETCH_ADD,
293 "__tsan_atomic32_fetch_add",
294 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
295 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_FETCH_ADD,
296 "__tsan_atomic64_fetch_add",
297 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
298 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_FETCH_ADD,
299 "__tsan_atomic128_fetch_add",
300 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
302 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_FETCH_SUB,
303 "__tsan_atomic8_fetch_sub",
304 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
305 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_FETCH_SUB,
306 "__tsan_atomic16_fetch_sub",
307 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
308 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_FETCH_SUB,
309 "__tsan_atomic32_fetch_sub",
310 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
311 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_FETCH_SUB,
312 "__tsan_atomic64_fetch_sub",
313 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
314 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_FETCH_SUB,
315 "__tsan_atomic128_fetch_sub",
316 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
318 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_FETCH_AND,
319 "__tsan_atomic8_fetch_and",
320 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
321 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_FETCH_AND,
322 "__tsan_atomic16_fetch_and",
323 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
324 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_FETCH_AND,
325 "__tsan_atomic32_fetch_and",
326 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
327 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_FETCH_AND,
328 "__tsan_atomic64_fetch_and",
329 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
330 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_FETCH_AND,
331 "__tsan_atomic128_fetch_and",
332 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
334 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_FETCH_OR,
335 "__tsan_atomic8_fetch_or",
336 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
337 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_FETCH_OR,
338 "__tsan_atomic16_fetch_or",
339 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
340 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_FETCH_OR,
341 "__tsan_atomic32_fetch_or",
342 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
343 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_FETCH_OR,
344 "__tsan_atomic64_fetch_or",
345 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
346 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_FETCH_OR,
347 "__tsan_atomic128_fetch_or",
348 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
350 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_FETCH_XOR,
351 "__tsan_atomic8_fetch_xor",
352 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
353 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_FETCH_XOR,
354 "__tsan_atomic16_fetch_xor",
355 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
356 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_FETCH_XOR,
357 "__tsan_atomic32_fetch_xor",
358 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
359 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_FETCH_XOR,
360 "__tsan_atomic64_fetch_xor",
361 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
362 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_FETCH_XOR,
363 "__tsan_atomic128_fetch_xor",
364 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
366 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_FETCH_NAND,
367 "__tsan_atomic8_fetch_nand",
368 BT_FN_I1_VPTR_I1_INT, ATTR_NOTHROW_LEAF_LIST)
369 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_FETCH_NAND,
370 "__tsan_atomic16_fetch_nand",
371 BT_FN_I2_VPTR_I2_INT, ATTR_NOTHROW_LEAF_LIST)
372 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_FETCH_NAND,
373 "__tsan_atomic32_fetch_nand",
374 BT_FN_I4_VPTR_I4_INT, ATTR_NOTHROW_LEAF_LIST)
375 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_FETCH_NAND,
376 "__tsan_atomic64_fetch_nand",
377 BT_FN_I8_VPTR_I8_INT, ATTR_NOTHROW_LEAF_LIST)
378 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_FETCH_NAND,
379 "__tsan_atomic128_fetch_nand",
380 BT_FN_I16_VPTR_I16_INT, ATTR_NOTHROW_LEAF_LIST)
382 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_COMPARE_EXCHANGE_STRONG,
383 "__tsan_atomic8_compare_exchange_strong",
384 BT_FN_BOOL_VPTR_PTR_I1_INT_INT,
385 ATTR_NOTHROW_LEAF_LIST)
386 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_COMPARE_EXCHANGE_STRONG,
387 "__tsan_atomic16_compare_exchange_strong",
388 BT_FN_BOOL_VPTR_PTR_I2_INT_INT,
389 ATTR_NOTHROW_LEAF_LIST)
390 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_COMPARE_EXCHANGE_STRONG,
391 "__tsan_atomic32_compare_exchange_strong",
392 BT_FN_BOOL_VPTR_PTR_I4_INT_INT,
393 ATTR_NOTHROW_LEAF_LIST)
394 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_COMPARE_EXCHANGE_STRONG,
395 "__tsan_atomic64_compare_exchange_strong",
396 BT_FN_BOOL_VPTR_PTR_I8_INT_INT,
397 ATTR_NOTHROW_LEAF_LIST)
398 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_COMPARE_EXCHANGE_STRONG,
399 "__tsan_atomic128_compare_exchange_strong",
400 BT_FN_BOOL_VPTR_PTR_I16_INT_INT,
401 ATTR_NOTHROW_LEAF_LIST)
403 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC8_COMPARE_EXCHANGE_WEAK,
404 "__tsan_atomic8_compare_exchange_weak",
405 BT_FN_BOOL_VPTR_PTR_I1_INT_INT,
406 ATTR_NOTHROW_LEAF_LIST)
407 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC16_COMPARE_EXCHANGE_WEAK,
408 "__tsan_atomic16_compare_exchange_weak",
409 BT_FN_BOOL_VPTR_PTR_I2_INT_INT,
410 ATTR_NOTHROW_LEAF_LIST)
411 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC32_COMPARE_EXCHANGE_WEAK,
412 "__tsan_atomic32_compare_exchange_weak",
413 BT_FN_BOOL_VPTR_PTR_I4_INT_INT,
414 ATTR_NOTHROW_LEAF_LIST)
415 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC64_COMPARE_EXCHANGE_WEAK,
416 "__tsan_atomic64_compare_exchange_weak",
417 BT_FN_BOOL_VPTR_PTR_I8_INT_INT,
418 ATTR_NOTHROW_LEAF_LIST)
419 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC128_COMPARE_EXCHANGE_WEAK,
420 "__tsan_atomic128_compare_exchange_weak",
421 BT_FN_BOOL_VPTR_PTR_I16_INT_INT,
422 ATTR_NOTHROW_LEAF_LIST)
424 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC_THREAD_FENCE,
425 "__tsan_atomic_thread_fence",
426 BT_FN_VOID_INT, ATTR_NOTHROW_LEAF_LIST)
427 DEF_SANITIZER_BUILTIN(BUILT_IN_TSAN_ATOMIC_SIGNAL_FENCE,
428 "__tsan_atomic_signal_fence",
429 BT_FN_VOID_INT, ATTR_NOTHROW_LEAF_LIST)
431 /* Undefined Behavior Sanitizer */
432 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
433 "__ubsan_handle_divrem_overflow",
434 BT_FN_VOID_PTR_PTR_PTR,
435 ATTR_COLD_NOTHROW_LEAF_LIST)
436 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS,
437 "__ubsan_handle_shift_out_of_bounds",
438 BT_FN_VOID_PTR_PTR_PTR,
439 ATTR_COLD_NOTHROW_LEAF_LIST)
440 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE,
441 "__ubsan_handle_builtin_unreachable",
442 BT_FN_VOID_PTR,
443 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST)
444 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_MISSING_RETURN,
445 "__ubsan_handle_missing_return",
446 BT_FN_VOID_PTR,
447 ATTR_NORETURN_NOTHROW_LEAF_LIST)
448 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE,
449 "__ubsan_handle_vla_bound_not_positive",
450 BT_FN_VOID_PTR_PTR,
451 ATTR_COLD_NOTHROW_LEAF_LIST)
452 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1,
453 "__ubsan_handle_type_mismatch_v1",
454 BT_FN_VOID_PTR_PTR,
455 ATTR_COLD_NOTHROW_LEAF_LIST)
456 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
457 "__ubsan_handle_add_overflow",
458 BT_FN_VOID_PTR_PTR_PTR,
459 ATTR_COLD_NOTHROW_LEAF_LIST)
460 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
461 "__ubsan_handle_sub_overflow",
462 BT_FN_VOID_PTR_PTR_PTR,
463 ATTR_COLD_NOTHROW_LEAF_LIST)
464 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
465 "__ubsan_handle_mul_overflow",
466 BT_FN_VOID_PTR_PTR_PTR,
467 ATTR_COLD_NOTHROW_LEAF_LIST)
468 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW,
469 "__ubsan_handle_negate_overflow",
470 BT_FN_VOID_PTR_PTR,
471 ATTR_COLD_NOTHROW_LEAF_LIST)
472 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE,
473 "__ubsan_handle_load_invalid_value",
474 BT_FN_VOID_PTR_PTR,
475 ATTR_COLD_NOTHROW_LEAF_LIST)
476 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_POINTER_OVERFLOW,
477 "__ubsan_handle_pointer_overflow",
478 BT_FN_VOID_PTR_PTR_PTR,
479 ATTR_COLD_NOTHROW_LEAF_LIST)
480 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
481 "__ubsan_handle_divrem_overflow_abort",
482 BT_FN_VOID_PTR_PTR_PTR,
483 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
484 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
485 "__ubsan_handle_shift_out_of_bounds_abort",
486 BT_FN_VOID_PTR_PTR_PTR,
487 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
488 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
489 "__ubsan_handle_vla_bound_not_positive_abort",
490 BT_FN_VOID_PTR_PTR,
491 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
492 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1_ABORT,
493 "__ubsan_handle_type_mismatch_v1_abort",
494 BT_FN_VOID_PTR_PTR,
495 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
496 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
497 "__ubsan_handle_add_overflow_abort",
498 BT_FN_VOID_PTR_PTR_PTR,
499 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
500 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
501 "__ubsan_handle_sub_overflow_abort",
502 BT_FN_VOID_PTR_PTR_PTR,
503 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
504 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
505 "__ubsan_handle_mul_overflow_abort",
506 BT_FN_VOID_PTR_PTR_PTR,
507 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
508 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
509 "__ubsan_handle_negate_overflow_abort",
510 BT_FN_VOID_PTR_PTR,
511 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
512 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT,
513 "__ubsan_handle_load_invalid_value_abort",
514 BT_FN_VOID_PTR_PTR,
515 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
516 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_POINTER_OVERFLOW_ABORT,
517 "__ubsan_handle_pointer_overflow_abort",
518 BT_FN_VOID_PTR_PTR_PTR,
519 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
520 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
521 "__ubsan_handle_float_cast_overflow",
522 BT_FN_VOID_PTR_PTR,
523 ATTR_COLD_NOTHROW_LEAF_LIST)
524 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT,
525 "__ubsan_handle_float_cast_overflow_abort",
526 BT_FN_VOID_PTR_PTR,
527 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
528 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
529 "__ubsan_handle_out_of_bounds",
530 BT_FN_VOID_PTR_PTR,
531 ATTR_COLD_NOTHROW_LEAF_LIST)
532 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT,
533 "__ubsan_handle_out_of_bounds_abort",
534 BT_FN_VOID_PTR_PTR,
535 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
536 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
537 "__ubsan_handle_nonnull_arg",
538 BT_FN_VOID_PTR,
539 ATTR_COLD_NOTHROW_LEAF_LIST)
540 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
541 "__ubsan_handle_nonnull_arg_abort",
542 BT_FN_VOID_PTR,
543 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
544 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1,
545 "__ubsan_handle_nonnull_return_v1",
546 BT_FN_VOID_PTR_PTR,
547 ATTR_COLD_NOTHROW_LEAF_LIST)
548 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1_ABORT,
549 "__ubsan_handle_nonnull_return_v1_abort",
550 BT_FN_VOID_PTR_PTR,
551 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
552 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN,
553 "__ubsan_handle_invalid_builtin",
554 BT_FN_VOID_PTR,
555 ATTR_COLD_NOTHROW_LEAF_LIST)
556 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN_ABORT,
557 "__ubsan_handle_invalid_builtin_abort",
558 BT_FN_VOID_PTR,
559 ATTR_COLD_NORETURN_NOTHROW_LEAF_LIST)
560 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
561 "__ubsan_handle_dynamic_type_cache_miss",
562 BT_FN_VOID_PTR_PTR_PTR,
563 ATTR_COLD_NOTHROW_LEAF_LIST)
564 DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT,
565 "__ubsan_handle_dynamic_type_cache_miss_abort",
566 BT_FN_VOID_PTR_PTR_PTR,
567 ATTR_COLD_NOTHROW_LEAF_LIST)
569 /* Sanitizer coverage */
570 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_PC,
571 "__sanitizer_cov_trace_pc",
572 BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
573 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CMP1,
574 "__sanitizer_cov_trace_cmp1",
575 BT_FN_VOID_UINT8_UINT8, ATTR_NOTHROW_LEAF_LIST)
576 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CMP2,
577 "__sanitizer_cov_trace_cmp2",
578 BT_FN_VOID_UINT16_UINT16, ATTR_NOTHROW_LEAF_LIST)
579 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CMP4,
580 "__sanitizer_cov_trace_cmp4",
581 BT_FN_VOID_UINT32_UINT32, ATTR_NOTHROW_LEAF_LIST)
582 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CMP8,
583 "__sanitizer_cov_trace_cmp8",
584 BT_FN_VOID_UINT64_UINT64, ATTR_NOTHROW_LEAF_LIST)
585 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP1,
586 "__sanitizer_cov_trace_const_cmp1",
587 BT_FN_VOID_UINT8_UINT8, ATTR_NOTHROW_LEAF_LIST)
588 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP2,
589 "__sanitizer_cov_trace_const_cmp2",
590 BT_FN_VOID_UINT16_UINT16, ATTR_NOTHROW_LEAF_LIST)
591 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP4,
592 "__sanitizer_cov_trace_const_cmp4",
593 BT_FN_VOID_UINT32_UINT32, ATTR_NOTHROW_LEAF_LIST)
594 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP8,
595 "__sanitizer_cov_trace_const_cmp8",
596 BT_FN_VOID_UINT64_UINT64, ATTR_NOTHROW_LEAF_LIST)
597 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CMPF,
598 "__sanitizer_cov_trace_cmpf",
599 BT_FN_VOID_FLOAT_FLOAT, ATTR_NOTHROW_LEAF_LIST)
600 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_CMPD,
601 "__sanitizer_cov_trace_cmpd",
602 BT_FN_VOID_DOUBLE_DOUBLE, ATTR_NOTHROW_LEAF_LIST)
603 DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_SWITCH,
604 "__sanitizer_cov_trace_switch",
605 BT_FN_VOID_UINT64_PTR, ATTR_NOTHROW_LEAF_LIST)
607 /* This has to come after all the sanitizer builtins. */
608 DEF_BUILTIN_STUB(END_SANITIZER_BUILTINS, (const char *)0)