From patchwork Fri Feb 18 22:59:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 1594888 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Xqu9mVSy; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K0nFd2Vqjz9sFN for ; Sat, 19 Feb 2022 09:59:33 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A1F7385F014 for ; Fri, 18 Feb 2022 22:59:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A1F7385F014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1645225170; bh=UwSl5F/+jGD5Lek068A+DKAcQPOymRIwNbIOEmGjLAA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Xqu9mVSyIHWA0EXxaCAgTKb3wt4vQ0m6FYtjnMEwHEZ870M/c9MRJ1CxVmvqEq2uv cRfC/oB77vZv3eWkMIDw6JZlf4kWBrOKW/4LLk/o9WaChj+OkgzRjlZVLF3+V3bwA/ 7KTt1I6fGO6P2WID4PweRIz9mNtEmofj0mHyOGlg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by sourceware.org (Postfix) with ESMTPS id 5E73D3858435 for ; Fri, 18 Feb 2022 22:59:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5E73D3858435 Received: by mail-io1-xd34.google.com with SMTP id c23so4627370ioi.4 for ; Fri, 18 Feb 2022 14:59:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UwSl5F/+jGD5Lek068A+DKAcQPOymRIwNbIOEmGjLAA=; b=KaZDzwVlkZ9bi3s7YC3YIyVpC3YSGKfSP+WERaOAZCZlb+RrvVLthdEd/1s9Vr60TE gqboZGn+H77Y7I8a1kwzh2KKyM6La4i1JWyByKagzfmzJH8u3wlrSwiF3Oh/LqVtMsOi G259gl1k4CWlkOjagn+E3MPAszrG/0lTLFlLo60nRms9ZVBS28FJK5sUNSfXTtShkxgM cqfYjIVl7jRoQpjQCPXxhJJ+QLBiV7IjuyTjKU99L5vv7HfLqcg3oQPxDnd0cpSRGfq+ KLfuA84RGz1zXEm3T+ag+PlCehSvrxN4HdBSBRDStHhc0v0Nf4ELhmOQm6LPVpSVl9ez Cu/w== X-Gm-Message-State: AOAM533iiNin9rqkjtajjE8aom8P7Mzyfrg4DH9WWpQq3QMCPnfiVQcr +t7D3eP09FtLhAVsIi68Yj1YZP1DuAs= X-Google-Smtp-Source: ABdhPJweOE6v5KeVyWiUGsB0AZPaLJok8nnmTbdMHt1ieiIAomzEt3mBrmDqhifZG7XluvEqlV4WqA== X-Received: by 2002:a05:6638:1453:b0:308:eafa:41c with SMTP id l19-20020a056638145300b00308eafa041cmr7044876jad.30.1645225155591; Fri, 18 Feb 2022 14:59:15 -0800 (PST) Received: from localhost.localdomain (node-17-161.flex.volo.net. [76.191.17.161]) by smtp.googlemail.com with ESMTPSA id f13sm4787064ion.18.2022.02.18.14.59.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 14:59:15 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH v1] x86: Fix TEST_NAME to make it a string Date: Fri, 18 Feb 2022 16:59:01 -0600 Message-Id: <20220218225901.3485727-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Noah Goldstein via Libc-alpha From: Noah Goldstein Reply-To: Noah Goldstein Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Previously TEST_NAME was passing a function pointer. This didn't fail because of the -Wno-error flag (to allow for overflow sizes passed to strncmp/wcsncmp) --- sysdeps/x86/tst-strncmp-rtm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/tst-strncmp-rtm.c b/sysdeps/x86/tst-strncmp-rtm.c index b50c11e8d4..300bc8c281 100644 --- a/sysdeps/x86/tst-strncmp-rtm.c +++ b/sysdeps/x86/tst-strncmp-rtm.c @@ -23,12 +23,12 @@ # define CHAR wchar_t # define MEMSET wmemset # define STRNCMP wcsncmp -# define TEST_NAME wcsncmp +# define TEST_NAME "wcsncmp" #else /* !WIDE */ # define CHAR char # define MEMSET memset # define STRNCMP strncmp -# define TEST_NAME strncmp +# define TEST_NAME "strncmp" #endif /* !WIDE */