From patchwork Sun Oct 22 07:47:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 156522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp645693vqx; Sun, 22 Oct 2023 00:47:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0eyQvmvTogkuvzgeLrlzd0kwG61keoJwcCom2oui47z947faBuFPrOhM7hnVZaCXwdjWv X-Received: by 2002:a05:6214:628:b0:65d:4840:6eb4 with SMTP id a8-20020a056214062800b0065d48406eb4mr9040959qvx.6.1697960858490; Sun, 22 Oct 2023 00:47:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697960858; cv=pass; d=google.com; s=arc-20160816; b=OH9iwICIjlvnsU00q7VqpBw0Wd4RZ0hXPSHtp+JiNF28/rJ2IddZROYHHAPkjfb9m4 qDWFxCn+xwobyFbEVemKMnxmv4nmnl7lbzOpqdSD0RpeANKwPj+bvrAl+af4HorAWwSG TndA2+CnvbSoAl86zH4B7a+rYVRDKh5g//WWhNCV0voco/TZnbDisjbJjTfsh+WsVtsB +/im61gZve/DNi3n4PjbBrL2uv2MBHWvq9hKiQobxHUtqd7qum5QHIPGYui0V63qvb+Z DAhhYcNmx9U5uv6szz4bxMN8aTeiD7kYSNrSHxmNYQlO4Fl1D5OjDNyt/3LwXsLhILmf 5b7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=4M2DYhf/6F+31+XITa7gMWSr+LTh1FQfPaj5uxtl60A=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=O1oL2vOvwE3JjgxvpUaBFSiIRbi/fDmGeG3L0yqFtc0oeMp5z1+adQDPw3oXlGafqF w2CPtB1aOU3ssve0QiBf7rRxe/tONrGx/692y77qaTYHZ6qmETIIHHizY6Kdj0W4u6O7 jL644QKzS1VqEbcCk1y+Py5llCEq0FHSIWcQDq4+xprAmJVXe+ZYVc7Vsz3tKcwcfZog 99AsVcvSqNOGBCWoBu0RirrLU5gED9YogqJCdqTiNNImVluJQDg4sDfizT+QAwhoT2f/ VRbsaSaCSC3HrzLKsy8fqLMD8QfZLXzG2IiZYxmniMyPr/LtXqQkJDjN0eD4RMqbk06R ekYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VFr0i+XR; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bm27-20020a05620a199b00b007757d446533si3939457qkb.282.2023.10.22.00.47.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 00:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VFr0i+XR; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 465AC3858439 for ; Sun, 22 Oct 2023 07:47:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 09A243858D3C for ; Sun, 22 Oct 2023 07:47:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 09A243858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 09A243858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697960835; cv=none; b=ieR48sqI0f92Cw83EEfaF99CPqlbVtRe8JbmhBWusAGLCyjIB22xH6BN4MeXRKKAOnfV1th9f/7DR0c3PBWB+6SOEoq+xe375sPSyoiMnP+u7O36M34+aWJxRsvm3xZojSyXYf/F09KgbD+MVERuZpolfv6BmXOrwMV8F+oXPcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697960835; c=relaxed/simple; bh=g3mqrA8XFSj0DAsNO9j/yDzT5K/1E7hi4W+ZseR1ohw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=t4qkdhsV0JdQBNlPGxltBYZHJ2e80oiTco1RsML8Of5i61Obg/OiT7brPXzm1EM82QkHuZWRgTlNGIFCBZw0cR04suEmxyt/2ZW/1ksZQ1WyVkn2L2BzV248lhjJw87mumzYEKYm5PQcldeGqsGgXeC/cjxpTaL5j8poSX78O4o= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697960834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=4M2DYhf/6F+31+XITa7gMWSr+LTh1FQfPaj5uxtl60A=; b=VFr0i+XRKcvwSKMesAmZ+0axVYfvLJ9fwPPDs/wyVVUH0TSxyUXZfO8RCcWVEgwecl2jS4 RhyLDYT+4TCxK3s+M83LqdQtfHRWacZjYD/dXFoSf8eNMoX56dLbV2drfTfuYvf7Wm4IJh JxQYQ7SMeJwIsplHmujQRlbBAjir0Tc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-611-Y650OU-dM1iaouNLSqU2Mw-1; Sun, 22 Oct 2023 03:47:12 -0400 X-MC-Unique: Y650OU-dM1iaouNLSqU2Mw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 866D18C7EC0 for ; Sun, 22 Oct 2023 07:47:12 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E0609492BD9 for ; Sun, 22 Oct 2023 07:47:11 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Subject: [PATCH] gcc.c-torture/execute/builtins/fputs.c: Define _GNU_SOURCE Date: Sun, 22 Oct 2023 09:47:10 +0200 Message-ID: <87zg0bhzep.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780441004822993898 X-GMAIL-MSGID: 1780441004822993898 Current glibc headers only declare fputs_unlocked for _GNU_SOURCE. Defining the macro avoids an implicit function declaration. gcc/testsuite/ * gcc.c-torture/execute/builtins/fputs.c (_GNU_SOURCE): Define. --- gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c index 93fa9736449..13e30724355 100644 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c @@ -5,6 +5,7 @@ Written by Kaveh R. Ghazi, 10/30/2000. */ +#define _GNU_SOURCE /* For fputs_unlocked. */ #include extern void abort(void);