Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include Remove hacky gcc2-specific alloca definition.



details:   https://anonhg.NetBSD.org/src/rev/6401a29f7da7
branches:  trunk
changeset: 371744:6401a29f7da7
user:      nia <nia%NetBSD.org@localhost>
date:      Wed Oct 05 12:09:07 2022 +0000

description:
Remove hacky gcc2-specific alloca definition.

diffstat:

 include/stdlib.h |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (21 lines):

diff -r c3b64fed15a3 -r 6401a29f7da7 include/stdlib.h
--- a/include/stdlib.h  Wed Oct 05 10:28:19 2022 +0000
+++ b/include/stdlib.h  Wed Oct 05 12:09:07 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdlib.h,v 1.123 2021/07/03 14:07:13 christos Exp $    */
+/*     $NetBSD: stdlib.h,v 1.124 2022/10/05 12:09:07 nia Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -269,10 +269,7 @@
  * Implementation-defined extensions
  */
 #if defined(_NETBSD_SOURCE)
-#if defined(alloca) && (alloca == __builtin_alloca) && \
-       defined(__GNUC__) && (__GNUC__ < 2)
-void   *alloca(int);     /* built-in for gcc */
-#elif defined(__PCC__) && !defined(__GNUC__)
+#if defined(__PCC__) && !defined(__GNUC__)
 #define alloca(size) __builtin_alloca(size)
 #else
 void   *alloca(size_t);



Home | Main Index | Thread Index | Old Index