aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-11-23 11:40:16 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-11-23 11:40:16 +0000
commit383f241dce091911b9466f49c19c8746b233ba3e (patch)
tree02563556bd23b0e157a8ee5501cecf0296474fad /include
parentee50062cfb85553ad933db2b2e5a85fe85705d57 (diff)
downloadsrc-383f241dce091911b9466f49c19c8746b233ba3e.tar.gz
src-383f241dce091911b9466f49c19c8746b233ba3e.zip
Remove lint support from system headers and MD x86 headers.
Reviewed by: dim, jhb Discussed with: imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D13156
Notes
Notes: svn path=/head/; revision=326123
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index f2d45e418e46..93c4bb50cd79 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -238,17 +238,13 @@ extern void (*malloc_message)(void *, const char *);
/*
* The alloca() function can't be implemented in C, and on some
* platforms it can't be implemented at all as a callable function.
- * The GNU C compiler provides a built-in alloca() which we can use;
- * in all other cases, provide a prototype, mainly to pacify various
- * incarnations of lint. On platforms where alloca() is not in libc,
- * programs which use it will fail to link when compiled with non-GNU
- * compilers.
+ * The GNU C compiler provides a built-in alloca() which we can use.
+ * On platforms where alloca() is not in libc, programs which use it
+ * will fail to link when compiled with non-GNU compilers.
*/
#if __GNUC__ >= 2 || defined(__INTEL_COMPILER)
#undef alloca /* some GNU bits try to get cute and define this on their own */
#define alloca(sz) __builtin_alloca(sz)
-#elif defined(lint)
-void *alloca(size_t);
#endif
void abort2(const char *, int, void **) __dead2;