From d601c996f8b9b16383ec49f4a294e09e3bec83c4 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 25 May 2004 18:25:47 +0200 Subject: [PATCH] * builtins.def (__builtin_expect): Mark the function as const¬hrow. From-SVN: r82243 --- gcc/ChangeLog | 4 ++++ gcc/builtins.def | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7389f9dcbf..92052a4bf3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-05-25 Jan Hubicka + + * builtins.def (__builtin_expect): Mark the function as const¬hrow. + 2004-05-25 Ayal Zaks Mostafa Hagog diff --git a/gcc/builtins.def b/gcc/builtins.def index f52b128d2e5..b70aff9d743 100644 --- a/gcc/builtins.def +++ b/gcc/builtins.def @@ -562,7 +562,7 @@ DEF_LIB_BUILTIN (BUILT_IN_EXECV, "execv", BT_FN_INT_CONST_STRING_PTR_CONS DEF_LIB_BUILTIN (BUILT_IN_EXECVP, "execvp", BT_FN_INT_CONST_STRING_PTR_CONST_STRING, ATTR_NOTHROW_LIST) DEF_LIB_BUILTIN (BUILT_IN_EXECVE, "execve", BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING, ATTR_NOTHROW_LIST) DEF_LIB_BUILTIN (BUILT_IN_EXIT, "exit", BT_FN_VOID_INT, ATTR_NORETURN_NOTHROW_LIST) -DEF_GCC_BUILTIN (BUILT_IN_EXPECT, "expect", BT_FN_LONG_LONG_LONG, ATTR_NULL) +DEF_GCC_BUILTIN (BUILT_IN_EXPECT, "expect", BT_FN_LONG_LONG_LONG, ATTR_CONST_NOTHROW_LIST) DEF_GCC_BUILTIN (BUILT_IN_EXTEND_POINTER, "extend_pointer", BT_FN_WORD_PTR, ATTR_CONST_NOTHROW_LIST) DEF_GCC_BUILTIN (BUILT_IN_EXTRACT_RETURN_ADDR, "extract_return_addr", BT_FN_PTR_PTR, ATTR_NULL) DEF_LIB_BUILTIN (BUILT_IN_FORK, "fork", BT_FN_PID, ATTR_NOTHROW_LIST) -- 2.30.2