From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14941 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Forney Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] Unconditonally define alloca as __builtin_alloca Date: Mon, 18 Nov 2019 20:04:59 -0800 Message-ID: <20191119040459.11143-1-mforney@mforney.org> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="251235"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14957-gllmg-musl=m.gmane.org@lists.openwall.com Tue Nov 19 05:05:19 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iWulS-0013Hl-ER for gllmg-musl@m.gmane.org; Tue, 19 Nov 2019 05:05:18 +0100 Original-Received: (qmail 22014 invoked by uid 550); 19 Nov 2019 04:05:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 21982 invoked from network); 19 Nov 2019 04:05:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=j30fCFONrOGbS0WVylSlqKaTHRHn07VpkfSVUp9DDFw=; b=yWEixwQLZ6G03ZDdEaNErN8wFN2Q/F179kNKZqYJRMDE7yp7W6EtfzouYq50CfTigf BIq6Gz1kTTnKcyzpNxKzzFH0eAEdmz1QsCt1Xeob6TikNcFbg0W0BjbWpR6NYCrLfYEs GV6w5y+Dg0eg4Foq6wgahE+qnFgxXG0gprl0pAs9XDlr6uLIsYODqEDCXIXOfnK0Dp8n hHoD1dYvLXcA+cBigMZzNjrLTGt0he+Z/w6nx0JKrAcKmaEG+0cdxDDT0p8+f2uUCbOW aF8LwUCLjvu6mJeYF2c4IJVMa0ZoRDKPvoBg4NnQxmAUQYCTwN+eWH22+a8Cisb7veqW TDpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=j30fCFONrOGbS0WVylSlqKaTHRHn07VpkfSVUp9DDFw=; b=AZuDly0U/AptUx5nDkoIU7484rZkY6komD3Ckj9ZhXFtVG80kSxk/wj1M+iA4Q5FoM Vm0B01EnTJR+i1mtXGpSk7YcAqME81dKaGQxUZRnyLQIDfkR5cTw0AA+1m93Cgl+ge8N RWkzBUHvUFldP/VOPinq24GcIGFfMkqUXAmjMo5nOr4GRXHCdGaaKCkgXqKQGb8Ym985 oNnr8/7oJyscum/I47xJ70OAQO35Vaj/KBe50EAiOAmfzoQm/2Vi2GRmHpHHZvfwZcvK GdVw0jrT4CJhmIcIte7qk2bQarp/LZV1WWxcFYvlIOT/v2MSK7lHMaWuHKnbN7eAiZO2 glig== X-Gm-Message-State: APjAAAVG9LKHQ/iVCZ/2uENPv5Mk4A/pox4b9kMIt8R9LZjtawX0wASV Xa/n9OMGV9s4Ykf8OjcUHWUX90JBDXc= X-Google-Smtp-Source: APXvYqwCnjFgA7AgZYag/OT8Xp0bsMkHwQzP6WUW5sirhKABGOFaQlpQAe1jNNIGH1D3VHvjorSoKw== X-Received: by 2002:a63:c04f:: with SMTP id z15mr3292657pgi.52.1574136301220; Mon, 18 Nov 2019 20:05:01 -0800 (PST) X-Mailer: git-send-email 2.20.1 Xref: news.gmane.org gmane.linux.lib.musl.general:14941 Archived-At: This enables alternative compilers, which may not define __GNUC__, to implement alloca, which is still fairly widely used. This is similar to how stdarg.h already works in musl; compilers must implement __builtin_va_arg, there is no fallback definition. --- include/alloca.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/alloca.h b/include/alloca.h index d2e6f1c6..8ae8a30d 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -8,11 +8,7 @@ extern "C" { #define __NEED_size_t #include -void *alloca(size_t); - -#ifdef __GNUC__ #define alloca __builtin_alloca -#endif #ifdef __cplusplus } -- 2.20.1