From patchwork Wed Jan 13 16:58:26 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: 41712 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 2A3CB3939C04; Wed, 13 Jan 2021 16:58:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A3CB3939C04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1610557128; bh=jLFhWtF66bI4Baf7vVLTo4+7erVDjyOyEBSxzgqNTks=; 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=aiS9+yq20/8c2M0YDt8f39A+CNrt9hbCyxC6MqjYQ3a0ecBQYBTGmX4iAdzEoh4Zx v9qqgZUDPiidH3CJGjjvT2MNqEAqbgE32W+PzEKnX42ERgP2uvE+X5HGvGrmM03oEz NVVi9ZnvIw3/vXrWkfv3LabI0c4w77MeHD7M+loA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by sourceware.org (Postfix) with ESMTPS id AFB7F3939C0D for ; Wed, 13 Jan 2021 16:58:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AFB7F3939C0D Received: by mail-qv1-xf35.google.com with SMTP id s6so1056823qvn.6 for ; Wed, 13 Jan 2021 08:58:38 -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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jLFhWtF66bI4Baf7vVLTo4+7erVDjyOyEBSxzgqNTks=; b=YsYlQI28vZgVseAJDHMyVviZN/+7hu5aMOJxHjXDejWBKbEDxTYts934YXloCrBbZg VuwiHvH3gLN3ytwUNt7Uw1K20X/CgfDxIS0UnI1P7nszzOthUIOnVFm2VScwH9B8ghXl 9CofCzxXGl02WUPLTLOz1NvRv6wU0RWwUlvtPz3RPp2nVa7twhPbBSQTWaSdsUswBmvG 0RHmjlETSU4J33qIIJcHH9M/VYBrB3yxbJrKWbqHCQnK0hA7sN3nQs7ZNC4WeMvyr4Yh 4w30NPuvrExUiqIiRhn0n3CLNqJgHnXXTZCaDH/7Zf++nz5QfBgXOdjBLNTNbxixd5wC E9Fw== X-Gm-Message-State: AOAM533ItZBMcEg+zLZzVfzgr6TKrY2FmFTlLBVbv81xX1Yun3HDTP/h bhaCMa+R4vchKcCVO7AA5XvptERkBtJqAA== X-Google-Smtp-Source: ABdhPJwwFpMSj3B13b3zwjGcHiz/0QgeUbbidqO6TdFyd/vmwR3vlI1VzmP6CGX5HIv0vjrWOOaGWQ== X-Received: by 2002:a0c:fe90:: with SMTP id d16mr3059365qvs.13.1610557118135; Wed, 13 Jan 2021 08:58:38 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id y26sm1303501qth.53.2021.01.13.08.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 08:58:37 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH v2 5/5] regex: stop using alloca Date: Wed, 13 Jan 2021 13:58:26 -0300 Message-Id: <20210113165826.1014708-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113165826.1014708-1-adhemerval.zanella@linaro.org> References: <20210113165826.1014708-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.6 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" It syncs with gnulib version 87ed1f9c4. 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