From c8907381b10259bed3a871a2881c0f3b7287ab3c Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 7 May 2020 05:16:27 -0700 Subject: 12705 remove __builtin_alloca() declaration from string.h Reviewed by: Toomas Soome Reviewed by: Andy Stormont Approved by: Gordon Ross --- usr/src/head/string.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/usr/src/head/string.h b/usr/src/head/string.h index 2194b70bd8..f75c14c59c 100644 --- a/usr/src/head/string.h +++ b/usr/src/head/string.h @@ -22,6 +22,7 @@ /* * Copyright 2014 Garrett D'Amore * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright 2020 Joyent, Inc. */ /* Copyright (c) 1988 AT&T */ @@ -139,13 +140,8 @@ extern char *strdup(const char *); #if defined(__EXTENSIONS__) || \ (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) -#if defined(__GNUC__) -/* - * gcc provides this inlining facility but Studio C does not. - * We should use it exclusively once Studio C also provides it. - */ -extern void *__builtin_alloca(size_t); +#if defined(__GNUC__) #define strdupa(s) \ (__extension__( \ -- cgit v1.2.3