Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / cpp / gcc / coroutine-builtins.def
blobfeecdb5ad351aebfd14980851250d88a4b7fdfe1
1 /* This file contains the definitions and documentation for the
2 coroutines builtins used in GCC.
4 Copyright (C) 2018-2022 Free Software Foundation, Inc.
6 Contributed by Iain Sandoe <iain@sandoe.co.uk> under contract to Facebook.
8 This file is part of GCC.
10 GCC is free software; you can redistribute it and/or modify it under
11 the terms of the GNU General Public License as published by the Free
12 Software Foundation; either version 3, or (at your option) any later
13 version.
15 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
16 WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 for more details.
20 You should have received a copy of the GNU General Public License
21 along with GCC; see the file COPYING3. If not see
22 <http://www.gnu.org/licenses/>. */
24 /* Before including this file, you should define a macro:
26 DEF_BUILTIN_STUB(ENUM, NAME)
27 DEF_COROUTINE_BUILTIN (ENUM, NAME, TYPE, ATTRS)
29 See builtins.def for details.
30 The builtins are created used by library implementations of C++
31 coroutines. */
33 /* This has to come before all the coroutine builtins. */
34 DEF_BUILTIN_STUB (BEGIN_COROUTINE_BUILTINS, (const char *) 0)
36 /* These are the builtins that are externally-visible and used by the
37 standard library implementation of the coroutine header. */
39 DEF_COROUTINE_BUILTIN (BUILT_IN_CORO_PROMISE, "promise",
40 BT_FN_PTR_PTR_CONST_SIZE_BOOL,
41 ATTR_CONST_NOTHROW_LEAF_LIST)
43 DEF_COROUTINE_BUILTIN (BUILT_IN_CORO_RESUME, "resume", BT_FN_VOID_PTR,
44 ATTR_NULL)
46 DEF_COROUTINE_BUILTIN (BUILT_IN_CORO_DESTROY, "destroy", BT_FN_VOID_PTR,
47 ATTR_NULL)
49 DEF_COROUTINE_BUILTIN (BUILT_IN_CORO_DONE, "done", BT_FN_BOOL_PTR,
50 ATTR_NOTHROW_LEAF_LIST)
52 /* This has to come after all the coroutine builtins. */
53 DEF_BUILTIN_STUB (END_COROUTINE_BUILTINS, (const char *) 0)