aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-01-27 07:58:08 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-01-27 07:58:08 -0500
commit091480e54996cf49eb1593995d5691cae3d29d4e (patch)
tree6fdb3b559545f811186ee63cf2d07eca452bfa58
parent4ed6720543e21d4bbd1576549d01407dec870864 (diff)
downloadgcc-091480e54996cf49eb1593995d5691cae3d29d4e.zip
gcc-091480e54996cf49eb1593995d5691cae3d29d4e.tar.gz
gcc-091480e54996cf49eb1593995d5691cae3d29d4e.tar.bz2
(init_decl_processing): Add definitions for __builtin_setjmp and
__builtin_longjmp. From-SVN: r11113
-rw-r--r--gcc/c-decl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0afbcd0..70fa447 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3224,6 +3224,19 @@ init_decl_processing ()
BUILT_IN_COS, "cos");
builtin_function ("__builtin_cosl", ldouble_ftype_ldouble,
BUILT_IN_COS, "cosl");
+ builtin_function ("__builtin_setjmp",
+ build_function_type (integer_type_node,
+ tree_cons (NULL_TREE,
+ ptr_type_node, endlink)),
+ BUILT_IN_SETJMP, NULL_PTR);
+ builtin_function ("__builtin_longjmp",
+ build_function_type
+ (void_type_node,
+ tree_cons (NULL, ptr_type_node,
+ tree_cons (NULL_TREE,
+ integer_type_node,
+ endlink))),
+ BUILT_IN_LONGJMP, NULL_PTR);
/* In an ANSI C program, it is okay to supply built-in meanings
for these functions, since applications cannot validly use them