1 /* This file contains the definitions and documentation for the
2 builtins used in the GNU compiler.
3 Copyright (C) 2000, 2001 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 2, or (at your option) any later
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
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 /* Before including this file, you should define a macro:
24 DEF_BUILTIN (ENUM, NAME, CLASS, TYPE, LIBTYPE, BOTH_P,
25 FALLBACK_P, NONANSI_P, ATTRS)
27 This macro will be called once for each builtin function. The
28 ENUM will be of type `enum built_in_function', and will indicate
29 which builtin function is being processed. The NAME of the builtin
30 function (which will always start with `__builtin_') is a string
31 literal. The CLASS is of type `enum built_in_class' and indicates
32 what kind of builtin is being processed.
34 Some builtins are actually two separate functions. For example,
35 for `strcmp' there are two builtin functions; `__builtin_strcmp'
36 and `strcmp' itself. Both behave identically. Other builtins
37 define only the `__builtin' variant. If BOTH_P is TRUE, then this
38 builtin has both variants; otherwise, it is has only the first
41 TYPE indicates the type of the function. The symbols correspond to
42 enumerals from builtin-types.def. If BOTH_P is true, then LIBTYPE
43 is the type of the non-`__builtin_' variant. Otherwise, LIBTYPE
46 If FALLBACK_P is true then, if for some reason, the compiler cannot
47 expand the builtin function directly, it will call the
48 corresponding library function (which does not have the
51 If NONANSI_P is true, then the non-`__builtin_' variant is not an
52 ANSI/ISO library function, and so we should pretend it does not
53 exist when compiling in ANSI conformant mode.
55 ATTRs is an attribute list as defined in builtin-attrs.def that
56 describes the attributes of this builtin function. */
58 /* A GCC builtin (like __builtin_saveregs) is provided by the
59 compiler, but does not correspond to a function in the standard
61 #undef DEF_GCC_BUILTIN
62 #define DEF_GCC_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
63 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, BT_LAST, \
64 false, false, false, ATTRS)
67 /* A fallback builtin is a builtin (like __builtin_puts) that falls
68 back to the corresopnding library function if necessary -- but
69 for which we should not introduce the non-`__builtin' variant of
71 #undef DEF_FALLBACK_BUILTIN
72 #define DEF_FALLBACK_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
73 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
74 false, true, false, ATTRS)
76 /* Like DEF_FALLBACK_BUILTIN, except that the function is not one that
77 is specified by ANSI/ISO C. So, when we're being fully conformant
78 we ignore the version of these builtins that does not begin with
80 #undef DEF_EXT_FALLBACK_BUILTIN
81 #define DEF_EXT_FALLBACK_BUILTIN(ENUM, NAME, TYPE) \
82 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
83 false, true, true, ATTR_NOTHROW_LIST)
85 /* A library builtin (like __builtin_strchr) is a builtin equivalent
86 of an ANSI/ISO standard library function. In addition to the
87 `__builtin' version, we will create an ordinary version (e.g,
88 `strchr') as well. If we cannot compute the answer using the
89 builtin function, we will fall back to the standard library
91 #undef DEF_LIB_BUILTIN
92 #define DEF_LIB_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
93 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
94 true, true, false, ATTRS)
96 /* Like DEF_LIB_BUILTIN, except that a call to the builtin should
97 never fall back to the library version. */
98 #undef DEF_LIB_ALWAYS_BUILTIN
99 #define DEF_LIB_ALWAYS_BUILTIN(ENUM, NAME, TYPE) \
100 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
101 true, false, true, ATTR_CONST_NOTHROW_LIST)
103 /* Like DEF_LIB_BUILTIN, except that the function is not one that is
104 specified by ANSI/ISO C. So, when we're being fully conformant we
105 ignore the version of these builtins that does not begin with
107 #undef DEF_EXT_LIB_BUILTIN
108 #define DEF_EXT_LIB_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
109 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
110 true, true, true, ATTRS)
112 /* Like DEF_LIB_BUILTIN, except that the function is only a part of
113 the standard in C99 or above. */
114 #undef DEF_C99_BUILTIN
115 #define DEF_C99_BUILTIN(ENUM, NAME, TYPE) \
116 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
117 true, !flag_isoc99, true, ATTR_NOTHROW_LIST)
119 /* Like DEF_LIB_BUILTIN, except that the function is expanded in the
121 #undef DEF_FRONT_END_LIB_BUILTIN
122 #define DEF_FRONT_END_LIB_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
123 DEF_BUILTIN (ENUM, NAME, BUILT_IN_FRONTEND, TYPE, TYPE, \
124 true, true, false, ATTRS)
126 /* Like DEF_FRONT_END_LIB_BUILTIN, except that the function is not one
127 that is specified by ANSI/ISO C. So, when we're being fully
128 conformant we ignore the version of these builtins that does not
129 begin with __builtin. */
130 #undef DEF_EXT_FRONT_END_LIB_BUILTIN
131 #define DEF_EXT_FRONT_END_LIB_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
132 DEF_BUILTIN (ENUM, NAME, BUILT_IN_FRONTEND, TYPE, TYPE, \
133 true, true, true, ATTRS)
135 /* A built-in that is not currently used. */
136 #undef DEF_UNUSED_BUILTIN
137 #define DEF_UNUSED_BUILTIN(X) \
138 DEF_BUILTIN (X, (const char *) NULL, NOT_BUILT_IN, BT_LAST, \
139 BT_LAST, false, false, false, ATTR_NOTHROW_LIST)
141 /* If SMALL_STACK is defined, then `alloca' is only defined in its
144 DEF_FALLBACK_BUILTIN(BUILT_IN_ALLOCA,
147 ATTR_MALLOC_NOTHROW_LIST)
149 DEF_EXT_LIB_BUILTIN(BUILT_IN_ALLOCA,
152 ATTR_MALLOC_NOTHROW_LIST)
155 DEF_LIB_ALWAYS_BUILTIN(BUILT_IN_ABS,
158 DEF_LIB_ALWAYS_BUILTIN(BUILT_IN_LABS,
162 DEF_LIB_ALWAYS_BUILTIN(BUILT_IN_FABS,
165 DEF_LIB_ALWAYS_BUILTIN(BUILT_IN_FABSF,
168 DEF_LIB_ALWAYS_BUILTIN(BUILT_IN_FABSL,
170 BT_FN_LONG_DOUBLE_LONG_DOUBLE)
172 DEF_C99_BUILTIN(BUILT_IN_LLABS,
174 BT_FN_LONGLONG_LONGLONG)
175 DEF_C99_BUILTIN(BUILT_IN_IMAXABS,
178 DEF_C99_BUILTIN(BUILT_IN_CONJ,
180 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE)
181 DEF_C99_BUILTIN(BUILT_IN_CONJF,
183 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT)
184 DEF_C99_BUILTIN(BUILT_IN_CONJL,
186 BT_FN_COMPLEX_LONG_DOUBLE_COMPLEX_LONG_DOUBLE)
187 DEF_C99_BUILTIN(BUILT_IN_CREAL,
189 BT_FN_DOUBLE_COMPLEX_DOUBLE)
190 DEF_C99_BUILTIN(BUILT_IN_CREALF,
192 BT_FN_FLOAT_COMPLEX_FLOAT)
193 DEF_C99_BUILTIN(BUILT_IN_CREALL,
195 BT_FN_LONG_DOUBLE_COMPLEX_LONG_DOUBLE)
196 DEF_C99_BUILTIN(BUILT_IN_CIMAG,
198 BT_FN_DOUBLE_COMPLEX_DOUBLE)
199 DEF_C99_BUILTIN(BUILT_IN_CIMAGF,
201 BT_FN_FLOAT_COMPLEX_FLOAT)
202 DEF_C99_BUILTIN(BUILT_IN_CIMAGL,
204 BT_FN_LONG_DOUBLE_COMPLEX_LONG_DOUBLE)
206 DEF_UNUSED_BUILTIN(BUILT_IN_DIV)
207 DEF_UNUSED_BUILTIN(BUILT_IN_LDIV)
208 DEF_UNUSED_BUILTIN(BUILT_IN_FFLOOR)
209 DEF_UNUSED_BUILTIN(BUILT_IN_FCEIL)
210 DEF_UNUSED_BUILTIN(BUILT_IN_FMOD)
211 DEF_UNUSED_BUILTIN(BUILT_IN_FREM)
213 /* The system prototypes for `bzero' and `bcmp' functions have many
214 variations, so don't specify parameters to avoid conflicts. The
215 expand_* functions check the argument types anyway. */
216 DEF_BUILTIN (BUILT_IN_BZERO,
223 DEF_BUILTIN (BUILT_IN_BCMP,
226 BT_FN_INT_CONST_PTR_CONST_PTR_SIZE,
229 ATTR_PURE_NOTHROW_LIST)
231 DEF_EXT_LIB_BUILTIN(BUILT_IN_FFS,
234 ATTR_CONST_NOTHROW_LIST)
235 DEF_EXT_LIB_BUILTIN(BUILT_IN_INDEX,
237 BT_FN_STRING_CONST_STRING_INT,
238 ATTR_PURE_NOTHROW_LIST)
239 DEF_EXT_LIB_BUILTIN(BUILT_IN_RINDEX,
241 BT_FN_STRING_CONST_STRING_INT,
242 ATTR_PURE_NOTHROW_LIST)
244 DEF_LIB_BUILTIN(BUILT_IN_MEMCPY,
246 BT_FN_PTR_PTR_CONST_PTR_SIZE,
248 DEF_LIB_BUILTIN(BUILT_IN_MEMCMP,
250 BT_FN_INT_CONST_PTR_CONST_PTR_SIZE,
251 ATTR_PURE_NOTHROW_LIST)
252 DEF_LIB_BUILTIN(BUILT_IN_MEMSET,
254 BT_FN_PTR_PTR_INT_SIZE,
257 DEF_LIB_BUILTIN(BUILT_IN_STRCAT,
259 BT_FN_STRING_STRING_CONST_STRING,
261 DEF_LIB_BUILTIN(BUILT_IN_STRNCAT,
263 BT_FN_STRING_STRING_CONST_STRING_SIZE,
265 DEF_LIB_BUILTIN(BUILT_IN_STRCPY,
267 BT_FN_STRING_STRING_CONST_STRING,
269 DEF_LIB_BUILTIN(BUILT_IN_STRNCPY,
271 BT_FN_STRING_STRING_CONST_STRING_SIZE,
273 DEF_LIB_BUILTIN(BUILT_IN_STRCMP,
275 BT_FN_INT_CONST_STRING_CONST_STRING,
276 ATTR_PURE_NOTHROW_LIST)
277 DEF_LIB_BUILTIN(BUILT_IN_STRNCMP,
279 BT_FN_INT_CONST_STRING_CONST_STRING_SIZE,
280 ATTR_PURE_NOTHROW_LIST)
281 DEF_LIB_BUILTIN(BUILT_IN_STRLEN,
283 BT_FN_SIZE_CONST_STRING,
284 ATTR_PURE_NOTHROW_LIST)
285 DEF_LIB_BUILTIN(BUILT_IN_STRSTR,
287 BT_FN_STRING_CONST_STRING_CONST_STRING,
288 ATTR_PURE_NOTHROW_LIST)
289 DEF_LIB_BUILTIN(BUILT_IN_STRPBRK,
291 BT_FN_STRING_CONST_STRING_CONST_STRING,
292 ATTR_PURE_NOTHROW_LIST)
293 DEF_LIB_BUILTIN(BUILT_IN_STRSPN,
295 BT_FN_SIZE_CONST_STRING_CONST_STRING,
296 ATTR_PURE_NOTHROW_LIST)
297 DEF_LIB_BUILTIN(BUILT_IN_STRCSPN,
299 BT_FN_SIZE_CONST_STRING_CONST_STRING,
300 ATTR_PURE_NOTHROW_LIST)
301 DEF_LIB_BUILTIN(BUILT_IN_STRCHR,
303 BT_FN_STRING_CONST_STRING_INT,
304 ATTR_PURE_NOTHROW_LIST)
305 DEF_LIB_BUILTIN(BUILT_IN_STRRCHR,
307 BT_FN_STRING_CONST_STRING_INT,
308 ATTR_PURE_NOTHROW_LIST)
310 DEF_LIB_BUILTIN(BUILT_IN_SQRT,
313 flag_errno_math ? ATTR_NOTHROW_LIST
314 : (flag_unsafe_math_optimizations
315 ? ATTR_CONST_NOTHROW_LIST
316 : ATTR_PURE_NOTHROW_LIST))
317 DEF_LIB_BUILTIN(BUILT_IN_SIN,
320 flag_unsafe_math_optimizations ? ATTR_CONST_NOTHROW_LIST
321 : ATTR_PURE_NOTHROW_LIST)
322 DEF_LIB_BUILTIN(BUILT_IN_COS,
325 flag_unsafe_math_optimizations ? ATTR_CONST_NOTHROW_LIST
326 : ATTR_PURE_NOTHROW_LIST)
327 DEF_LIB_BUILTIN(BUILT_IN_EXP,
330 flag_errno_math ? ATTR_NOTHROW_LIST
331 : (flag_unsafe_math_optimizations
332 ? ATTR_CONST_NOTHROW_LIST
333 : ATTR_PURE_NOTHROW_LIST))
334 DEF_LIB_BUILTIN(BUILT_IN_LOG,
337 flag_errno_math ? ATTR_NOTHROW_LIST
338 : (flag_unsafe_math_optimizations
339 ? ATTR_CONST_NOTHROW_LIST
340 : ATTR_PURE_NOTHROW_LIST))
341 DEF_LIB_BUILTIN(BUILT_IN_SQRTF,
344 flag_errno_math ? ATTR_NOTHROW_LIST
345 : (flag_unsafe_math_optimizations
346 ? ATTR_CONST_NOTHROW_LIST
347 : ATTR_PURE_NOTHROW_LIST))
348 DEF_LIB_BUILTIN(BUILT_IN_SINF,
351 flag_unsafe_math_optimizations ? ATTR_CONST_NOTHROW_LIST
352 : ATTR_PURE_NOTHROW_LIST)
353 DEF_LIB_BUILTIN(BUILT_IN_COSF,
356 flag_unsafe_math_optimizations ? ATTR_CONST_NOTHROW_LIST
357 : ATTR_PURE_NOTHROW_LIST)
358 DEF_LIB_BUILTIN(BUILT_IN_EXPF,
361 flag_errno_math ? ATTR_NOTHROW_LIST
362 : (flag_unsafe_math_optimizations
363 ? ATTR_CONST_NOTHROW_LIST
364 : ATTR_PURE_NOTHROW_LIST))
365 DEF_LIB_BUILTIN(BUILT_IN_LOGF,
368 flag_errno_math ? ATTR_NOTHROW_LIST
369 : (flag_unsafe_math_optimizations
370 ? ATTR_CONST_NOTHROW_LIST
371 : ATTR_PURE_NOTHROW_LIST))
372 DEF_LIB_BUILTIN(BUILT_IN_SQRTL,
374 BT_FN_LONG_DOUBLE_LONG_DOUBLE,
375 flag_errno_math ? ATTR_NOTHROW_LIST
376 : (flag_unsafe_math_optimizations
377 ? ATTR_CONST_NOTHROW_LIST
378 : ATTR_PURE_NOTHROW_LIST))
379 DEF_LIB_BUILTIN(BUILT_IN_SINL,
381 BT_FN_LONG_DOUBLE_LONG_DOUBLE,
382 flag_unsafe_math_optimizations ? ATTR_CONST_NOTHROW_LIST
383 : ATTR_PURE_NOTHROW_LIST)
384 DEF_LIB_BUILTIN(BUILT_IN_COSL,
386 BT_FN_LONG_DOUBLE_LONG_DOUBLE,
387 flag_unsafe_math_optimizations ? ATTR_CONST_NOTHROW_LIST
388 : ATTR_PURE_NOTHROW_LIST)
389 DEF_LIB_BUILTIN(BUILT_IN_EXPL,
391 BT_FN_LONG_DOUBLE_LONG_DOUBLE,
392 flag_errno_math ? ATTR_NOTHROW_LIST
393 : (flag_unsafe_math_optimizations
394 ? ATTR_CONST_NOTHROW_LIST
395 : ATTR_PURE_NOTHROW_LIST))
396 DEF_LIB_BUILTIN(BUILT_IN_LOGL,
398 BT_FN_LONG_DOUBLE_LONG_DOUBLE,
399 flag_errno_math ? ATTR_NOTHROW_LIST
400 : (flag_unsafe_math_optimizations
401 ? ATTR_CONST_NOTHROW_LIST
402 : ATTR_PURE_NOTHROW_LIST))
404 DEF_UNUSED_BUILTIN(BUILT_IN_GETEXP)
405 DEF_UNUSED_BUILTIN(BUILT_IN_GETMAN)
407 DEF_GCC_BUILTIN(BUILT_IN_SAVEREGS,
408 "__builtin_saveregs",
411 DEF_GCC_BUILTIN(BUILT_IN_CLASSIFY_TYPE,
412 "__builtin_classify_type",
415 DEF_GCC_BUILTIN(BUILT_IN_NEXT_ARG,
416 "__builtin_next_arg",
419 DEF_GCC_BUILTIN(BUILT_IN_ARGS_INFO,
420 "__builtin_args_info",
423 DEF_GCC_BUILTIN(BUILT_IN_CONSTANT_P,
424 "__builtin_constant_p",
427 DEF_GCC_BUILTIN(BUILT_IN_FRAME_ADDRESS,
428 "__builtin_frame_address",
431 DEF_GCC_BUILTIN(BUILT_IN_RETURN_ADDRESS,
432 "__builtin_return_address",
435 DEF_GCC_BUILTIN(BUILT_IN_AGGREGATE_INCOMING_ADDRESS,
436 "__builtin_aggregate_incoming_address",
439 DEF_GCC_BUILTIN(BUILT_IN_APPLY_ARGS,
440 "__builtin_apply_args",
443 DEF_GCC_BUILTIN(BUILT_IN_APPLY,
445 BT_FN_PTR_PTR_FN_VOID_VAR_PTR_SIZE,
447 DEF_GCC_BUILTIN(BUILT_IN_RETURN,
450 ATTR_NORETURN_NOTHROW_LIST)
451 DEF_GCC_BUILTIN(BUILT_IN_SETJMP,
455 DEF_GCC_BUILTIN(BUILT_IN_LONGJMP,
458 ATTR_NORETURN_NOTHROW_LIST)
459 DEF_GCC_BUILTIN(BUILT_IN_TRAP,
462 ATTR_NORETURN_NOTHROW_LIST)
463 DEF_GCC_BUILTIN(BUILT_IN_PREFETCH,
464 "__builtin_prefetch",
465 BT_FN_VOID_CONST_PTR_VAR,
468 /* Stdio builtins. */
469 DEF_FALLBACK_BUILTIN(BUILT_IN_PUTCHAR,
473 DEF_FALLBACK_BUILTIN(BUILT_IN_PUTS,
475 BT_FN_INT_CONST_STRING,
477 DEF_FRONT_END_LIB_BUILTIN(BUILT_IN_PRINTF,
479 BT_FN_INT_CONST_STRING_VAR,
480 ATTR_FORMAT_PRINTF_1_2)
481 DEF_FALLBACK_BUILTIN(BUILT_IN_FPUTC,
485 /* Declare the __builtin_ style with arguments and the regular style
486 without them. We rely on stdio.h to supply the arguments for the
487 regular style declaration since we had to use void* instead of
488 FILE* in the __builtin_ prototype supplied here. */
489 DEF_BUILTIN (BUILT_IN_FPUTS,
492 BT_FN_INT_CONST_STRING_PTR,
494 true, true, false, ATTR_NOTHROW_LIST)
495 DEF_FALLBACK_BUILTIN(BUILT_IN_FWRITE,
497 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR,
499 DEF_FRONT_END_LIB_BUILTIN(BUILT_IN_FPRINTF,
501 BT_FN_INT_PTR_CONST_STRING_VAR,
502 ATTR_FORMAT_PRINTF_2_3)
504 /* Stdio unlocked builtins. */
506 DEF_EXT_FALLBACK_BUILTIN(BUILT_IN_PUTCHAR_UNLOCKED,
507 "__builtin_putchar_unlocked",
509 DEF_EXT_FALLBACK_BUILTIN(BUILT_IN_PUTS_UNLOCKED,
510 "__builtin_puts_unlocked",
511 BT_FN_INT_CONST_STRING)
512 DEF_EXT_FRONT_END_LIB_BUILTIN(BUILT_IN_PRINTF_UNLOCKED,
513 "__builtin_printf_unlocked",
514 BT_FN_INT_CONST_STRING_VAR,
515 ATTR_FORMAT_PRINTF_1_2)
516 DEF_EXT_FALLBACK_BUILTIN(BUILT_IN_FPUTC_UNLOCKED,
517 "__builtin_fputc_unlocked",
519 /* Declare the __builtin_ style with arguments and the regular style
520 without them. We rely on stdio.h to supply the arguments for the
521 regular style declaration since we had to use void* instead of
522 FILE* in the __builtin_ prototype supplied here. */
523 DEF_BUILTIN (BUILT_IN_FPUTS_UNLOCKED,
524 "__builtin_fputs_unlocked",
526 BT_FN_INT_CONST_STRING_PTR,
528 true, true, true, ATTR_NOTHROW_LIST)
529 DEF_EXT_FALLBACK_BUILTIN(BUILT_IN_FWRITE_UNLOCKED,
530 "__builtin_fwrite_unlocked",
531 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR)
532 DEF_EXT_FRONT_END_LIB_BUILTIN(BUILT_IN_FPRINTF_UNLOCKED,
533 "__builtin_fprintf_unlocked",
534 BT_FN_INT_PTR_CONST_STRING_VAR,
535 ATTR_FORMAT_PRINTF_2_3)
537 /* ISO C99 floating point unordered comparisons. */
538 DEF_GCC_BUILTIN(BUILT_IN_ISGREATER,
539 "__builtin_isgreater",
541 ATTR_CONST_NOTHROW_LIST)
542 DEF_GCC_BUILTIN(BUILT_IN_ISGREATEREQUAL,
543 "__builtin_isgreaterequal",
545 ATTR_CONST_NOTHROW_LIST)
546 DEF_GCC_BUILTIN(BUILT_IN_ISLESS,
549 ATTR_CONST_NOTHROW_LIST)
550 DEF_GCC_BUILTIN(BUILT_IN_ISLESSEQUAL,
551 "__builtin_islessequal",
553 ATTR_CONST_NOTHROW_LIST)
554 DEF_GCC_BUILTIN(BUILT_IN_ISLESSGREATER,
555 "__builtin_islessgreater",
557 ATTR_CONST_NOTHROW_LIST)
558 DEF_GCC_BUILTIN(BUILT_IN_ISUNORDERED,
559 "__builtin_isunordered",
561 ATTR_CONST_NOTHROW_LIST)
563 /* Various hooks for the DWARF 2 __throw routine. */
564 DEF_GCC_BUILTIN(BUILT_IN_UNWIND_INIT,
565 "__builtin_unwind_init",
568 DEF_GCC_BUILTIN(BUILT_IN_DWARF_CFA,
569 "__builtin_dwarf_cfa",
572 DEF_GCC_BUILTIN(BUILT_IN_DWARF_FP_REGNUM,
573 "__builtin_dwarf_fp_regnum",
576 DEF_GCC_BUILTIN(BUILT_IN_INIT_DWARF_REG_SIZES,
577 "__builtin_init_dwarf_reg_size_table",
580 DEF_GCC_BUILTIN(BUILT_IN_FROB_RETURN_ADDR,
581 "__builtin_frob_return_addr",
584 DEF_GCC_BUILTIN(BUILT_IN_EXTRACT_RETURN_ADDR,
585 "__builtin_extract_return_addr",
588 DEF_GCC_BUILTIN(BUILT_IN_EH_RETURN,
589 "__builtin_eh_return",
590 BT_FN_VOID_PTRMODE_PTR,
591 ATTR_NORETURN_NOTHROW_LIST)
592 DEF_GCC_BUILTIN(BUILT_IN_EH_RETURN_DATA_REGNO,
593 "__builtin_eh_return_data_regno",
597 /* Variable argument list (stdarg.h) support */
598 DEF_GCC_BUILTIN(BUILT_IN_VA_START,
599 "__builtin_va_start",
600 BT_FN_VOID_VALIST_REF_VAR,
602 DEF_GCC_BUILTIN(BUILT_IN_STDARG_START, /* backward compat */
603 "__builtin_stdarg_start",
604 BT_FN_VOID_VALIST_REF_VAR,
606 DEF_GCC_BUILTIN(BUILT_IN_VA_END,
608 BT_FN_VOID_VALIST_REF,
610 DEF_GCC_BUILTIN(BUILT_IN_VA_COPY,
612 BT_FN_VOID_VALIST_REF_VALIST_ARG,
615 DEF_GCC_BUILTIN(BUILT_IN_EXPECT,
617 BT_FN_LONG_LONG_LONG,
621 DEF_UNUSED_BUILTIN(BUILT_IN_NEW)
622 DEF_UNUSED_BUILTIN(BUILT_IN_VEC_NEW)
623 DEF_UNUSED_BUILTIN(BUILT_IN_DELETE)
624 DEF_UNUSED_BUILTIN(BUILT_IN_VEC_DELETE)
626 /* Declare abort, exit, _exit and _Exit */
627 DEF_BUILTIN (BUILT_IN_ABORT,
633 ATTR_NORETURN_NOTHROW_LIST)
635 DEF_BUILTIN (BUILT_IN_EXIT,
641 ATTR_NORETURN_NOTHROW_LIST)
643 DEF_BUILTIN (BUILT_IN__EXIT,
649 ATTR_NORETURN_NOTHROW_LIST)
651 DEF_BUILTIN (BUILT_IN__EXIT2,
657 ATTR_NORETURN_NOTHROW_LIST)