diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-01-07 11:26:15 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-01-07 11:26:15 +0000 |
commit | 796cdb659f4c0f015e92c41b3fcf3ff1ad7c3f88 (patch) | |
tree | 78a559501ccca1b52e8ea0c89ea33d6d82bc3137 /gcc/c-common.c | |
parent | 7ca3d2b15202f9f48a05c20e214b6f93aecbaf64 (diff) | |
download | gcc-796cdb659f4c0f015e92c41b3fcf3ff1ad7c3f88.zip gcc-796cdb659f4c0f015e92c41b3fcf3ff1ad7c3f88.tar.gz gcc-796cdb659f4c0f015e92c41b3fcf3ff1ad7c3f88.tar.bz2 |
c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.
* c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.
* extend.texi: Document _Exit builtin.
testsuite:
* gcc.c-torture/execute/builtin-noret-1.c: New test.
From-SVN: r38771
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 1e36874..3a76510 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -5558,9 +5558,11 @@ c_common_nodes_and_builtins () builtin_function_2 (NULL_PTR, "alloca", NULL_TREE, ptr_ftype_sizetype, BUILT_IN_ALLOCA, BUILT_IN_NORMAL, 0, 1, 0); #endif - /* Declare _exit just to mark it as non-returning. */ + /* Declare _exit and _Exit just to mark them as non-returning. */ builtin_function_2 (NULL_PTR, "_exit", NULL_TREE, void_ftype_int, 0, NOT_BUILT_IN, 0, 1, 1); + builtin_function_2 (NULL_PTR, "_Exit", NULL_TREE, void_ftype_int, + 0, NOT_BUILT_IN, 0, !flag_isoc99, 1); builtin_function_2 ("__builtin_index", "index", string_ftype_cstring_int, string_ftype_cstring_int, |