* builtins.def (__builtin_expect): Mark the function as const&nothrow.
authorJan Hubicka <jh@suse.cz>
Tue, 25 May 2004 16:25:47 +0000 (18:25 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 25 May 2004 16:25:47 +0000 (16:25 +0000)
From-SVN: r82243

gcc/ChangeLog
gcc/builtins.def

index d7389f9dcbfc78be4ce513f1508ae744214b9190..92052a4bf3ee70c77a63e802045d9d07e389211b 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-25  Jan Hubicka  <jh@suse.cz>
+
+       * builtins.def (__builtin_expect):  Mark the function as const&nothrow.
+
 2004-05-25  Ayal Zaks  <zaks@il.ibm.com>
        Mostafa Hagog  <mustafa@il.ibm.com>
 
index f52b128d2e54d224be58b1f7191e72aa8c4fb310..b70aff9d74336de67de73f69fbf58c74884101f4 100644 (file)
@@ -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)