From patchwork Wed Jan 6 18:17:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 41655 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AFB4C394D89C; Wed, 6 Jan 2021 18:17:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFB4C394D89C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1609957039; bh=uCy6JP5EA/CqN/tzQUDKLZbkH9wKQ+HMZPRfuEQLkb4=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Rg0SOQbe4axuvrsHo9aI29lDIRgwWYGV/9eEUpeWFOZ8Po8m3SZylqbnFH2vQ+g+2 PH3OjEqQyQZXNpVuWfoY9kXeBTgJE8i02XgmqhLRPnNrDI5Zid+ultZrfAXrNG7H28 Vl6uSsRUh/zoydJOB6RuEZmKtDtE0rRjWGOBNBeg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by sourceware.org (Postfix) with ESMTPS id 7DAAE384A022 for ; Wed, 6 Jan 2021 18:17:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7DAAE384A022 Received: by mail-qv1-xf2f.google.com with SMTP id et9so1611467qvb.10 for ; Wed, 06 Jan 2021 10:17:17 -0800 (PST) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=uCy6JP5EA/CqN/tzQUDKLZbkH9wKQ+HMZPRfuEQLkb4=; b=X4aqawKrTxEcr1akoLpyBX02jGJxVUMQ/w4Wd2GyN9lINUNJeiwt8fN55V9qIJf53v cqSV6R6NV7x0oIGvsYGEzUFOI8y3vMLklk3uUCBoHA6ItiUGPsm0OLDjEqG70WWtfKkF qejK5kr5gMAhI02X2mLHyQXJUiTOsNtFbaPqsQbI9OCEl3n6cUPJUDu42gvk91kSw7xm f1Bo5RuspSfZbB9+uIWB2xnVZxa4Y49d1+4qE/b1A4MpXEH3zBtcXMl6D2P1FQ9jevlO AcDf6bJzedQuS+yCdwDxUmzrY7Pt9MZiGkvJ5ySxFzHhSbqLrwx0vJp+ABBbBsJYr8J4 HVsQ== X-Gm-Message-State: AOAM533LBrAcvUpR+ii+K3yZYFjDZZj+SZPhjjFVy5p0l8732K4hPsyH Urykb6W/dq/GK1xbq2yrDclmVT0Kb9JorA== X-Google-Smtp-Source: ABdhPJzkzW9AickTuqlgx2gLgXRLiFXHwSDwRbh/Bdz1TbIWSqxb6yPidBGuPwFXwhezTxdzdaMy4Q== X-Received: by 2002:a0c:ab8b:: with SMTP id j11mr5285572qvb.0.1609957036908; Wed, 06 Jan 2021 10:17:16 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id a194sm1762745qkc.70.2021.01.06.10.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 10:17:16 -0800 (PST) To: libc-alpha@sourceware.org, Paul Eggert , bug-gnulib@gnu.org Subject: [PATCH 3/3] posix: Remove alloca definition from regex Date: Wed, 6 Jan 2021 15:17:07 -0300 Message-Id: <20210106181707.1738066-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210106181707.1738066-1-adhemerval.zanella@linaro.org> References: <20210106181707.1738066-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Since it is not used anymore. No functional changes is expected. Checked on x86_64-linux-gnu. --- posix/regex_internal.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/posix/regex_internal.h b/posix/regex_internal.h index e31ac92674..641b27e2b1 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -444,25 +444,6 @@ typedef struct re_dfa_t re_dfa_t; #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) -#if defined _LIBC || HAVE_ALLOCA -# include -#endif - -#ifndef _LIBC -# if HAVE_ALLOCA -/* The OS usually guarantees only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - allocate anything larger than 4096 bytes. Also care for the possibility - of a few compiler-allocated temporary stack slots. */ -# define __libc_use_alloca(n) ((n) < 4032) -# else -/* alloca is implemented with malloc, so just use malloc. */ -# define __libc_use_alloca(n) 0 -# undef alloca -# define alloca(n) malloc (n) -# endif -#endif - #ifdef _LIBC # define MALLOC_0_IS_NONNULL 1 #elif !defined MALLOC_0_IS_NONNULL