diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-11 19:55:09 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-11 19:55:09 +0000 |
commit | b9a1687032fc1afb5f4e9d8dfa775a134abe21ba (patch) | |
tree | 304b794b6f6f0af1f79b00f4166b897337141fac /gcc/builtins.def | |
parent | 74fcb726ed12f7bce6ef94080d91b4e3cac61824 (diff) | |
download | gcc-b9a1687032fc1afb5f4e9d8dfa775a134abe21ba.tar.gz |
Convert standard builtin functions from being arrays to using a functional interface
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179820 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.def')
-rw-r--r-- | gcc/builtins.def | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/builtins.def b/gcc/builtins.def index 59c082de983..0420b550f3b 100644 --- a/gcc/builtins.def +++ b/gcc/builtins.def @@ -131,8 +131,8 @@ along with GCC; see the file COPYING3. If not see define it here at all. */ #undef DEF_BUILTIN_STUB #define DEF_BUILTIN_STUB(ENUM, NAME) \ - DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, 0, 0, false, false, \ - false, 0, false, false) + DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, BT_LAST, BT_LAST, false, false, \ + false, ATTR_LAST, false, false) /* Builtin used by the implementation of GNU OpenMP. None of these are actually implemented in the compiler; they're all in libgomp. */ @@ -173,6 +173,9 @@ along with GCC; see the file COPYING3. If not see #undef ATTR_MATHFN_FPROUNDING_STORE #define ATTR_MATHFN_FPROUNDING_STORE ATTR_NOTHROW_LEAF_LIST +/* Make sure 0 is not a legitimate builtin. */ +DEF_BUILTIN_STUB(BUILT_IN_NONE, (const char *)0) + /* Category: math builtins. */ DEF_LIB_BUILTIN (BUILT_IN_ACOS, "acos", BT_FN_DOUBLE_DOUBLE, ATTR_MATHFN_FPROUNDING_ERRNO) DEF_C99_C90RES_BUILTIN (BUILT_IN_ACOSF, "acosf", BT_FN_FLOAT_FLOAT, ATTR_MATHFN_FPROUNDING_ERRNO) |