Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include/ssp Use __dead instead of __attribute__((__noreturn_...
details: https://anonhg.NetBSD.org/src/rev/211ab1f2a122
branches: trunk
changeset: 759982:211ab1f2a122
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Dec 22 19:43:33 2010 +0000
description:
Use __dead instead of __attribute__((__noreturn__)) directly.
diffstat:
include/ssp/ssp.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r a18284cbddde -r 211ab1f2a122 include/ssp/ssp.h
--- a/include/ssp/ssp.h Wed Dec 22 19:35:41 2010 +0000
+++ b/include/ssp/ssp.h Wed Dec 22 19:43:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssp.h,v 1.3 2008/04/28 20:22:54 martin Exp $ */
+/* $NetBSD: ssp.h,v 1.4 2010/12/22 19:43:33 jruoho Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
if (bos(__buf) != (size_t)-1 && __len > bos(__buf)) \
__chk_fail(); \
return fun call; \
-}
+}
#define __ssp_redirect(rtype, fun, args, call) \
__ssp_redirect_raw(rtype, fun, args, call, __ssp_bos)
@@ -66,8 +66,8 @@
__ssp_redirect_raw(rtype, fun, args, call, __ssp_bos0)
__BEGIN_DECLS
-void __stack_chk_fail(void) __attribute__((__noreturn__));
-void __chk_fail(void) __attribute__((__noreturn__));
+void __stack_chk_fail(void) __dead;
+void __chk_fail(void) __dead;
__END_DECLS
#endif /* _SSP_SSP_H_ */
Home |
Main Index |
Thread Index |
Old Index