aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2002-07-28 05:34:04 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2002-07-28 05:34:04 +0000
commitc2ef6d3492e6841875485f2923ee810f7c7ae5b8 (patch)
tree850b5f5119ae8b60afcf7ed0d5c22ef3359f5ac8 /gcc/c-decl.c
parent52bfebf09121f90fb62f448ccb817ce9208d8f24 (diff)
downloadgcc-c2ef6d3492e6841875485f2923ee810f7c7ae5b8.zip
gcc-c2ef6d3492e6841875485f2923ee810f7c7ae5b8.tar.gz
gcc-c2ef6d3492e6841875485f2923ee810f7c7ae5b8.tar.bz2
builtins.def [...]: Require an explicit ATTRS argument.
* builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN, BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99 floating point unordered comparisons (e.g. __builtin_isgreater) as const, and leave the remaining GCC_BUILTINs unchanged. * c-decl.c (builtin_function): No need to explicitly mark BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn. * cp/decl.c (builtin_function_1): No need to explicitly mark BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn. From-SVN: r55805
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 6187443..61cafff 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2966,10 +2966,6 @@ builtin_function (name, type, function_code, class, library_name, attrs)
DECL_BUILT_IN_CLASS (decl) = class;
DECL_FUNCTION_CODE (decl) = function_code;
- /* The return builtins leave the current function. */
- if (function_code == BUILT_IN_RETURN || function_code == BUILT_IN_EH_RETURN)
- TREE_THIS_VOLATILE (decl) = 1;
-
/* Warn if a function in the namespace for users
is used without an occasion to consider it declared. */
if (name[0] != '_' || name[1] != '_')