From patchwork Tue May 14 12:32:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1935007 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VdwjX4C3zz20dM for ; Tue, 14 May 2024 22:32:32 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9EA54387103E for ; Tue, 14 May 2024 12:32:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 2B9033858427 for ; Tue, 14 May 2024 12:32:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B9033858427 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B9033858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715689931; cv=none; b=xDz9NIgaxUO/gjBj0mFwxmlxcQTKU5Z+sXMj4j1z0biQdJ/sOoYt4ylCxQe73XbYhIejwnN9fAR1UZ7TgJl12z7/WkAdxcL1/u5j8wyJvbS5vIMe8BvwFB6Mc8BczuC6Jw/63YLA6dxcmX3xSXrpR2/rBLK2YYR1+muR9XskdTU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715689931; c=relaxed/simple; bh=JxuqALWE/fdqpYoDtNX3M+WJfbmg1kBHmTgw9voUBmI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VdXW/61sL022twCha24k251WUHCTm/zibcEUd6EwQcJCWdFvYa6uosLv/My81PQCZBuryuRdI+4VluWQBzSfzW0Oyh/4enj9XFIK9HN7Nkfw8/uL9aKl0fqdmXDqzvIgQXwic5+mLuTwe7FP/KSfoaO1eFwt0rhyr9k/gpuMxLU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 09776CE231; Tue, 14 May 2024 14:32:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1715689926; bh=JxuqA LWE/fdqpYoDtNX3M+WJfbmg1kBHmTgw9voUBmI=; b=AP+wwIM9Xs3Ic47OqlwZx tyjIBkPCS0mO9yzT1RdaKkjnK4p6dj08metIKTTzG+kDisrni0BxWC9rygSQ4HTD A6/wbuhnSr/q7zArFo79ycMyW3KMCrxCFI9p6d8aq2wlA5xKHqJuqp5qohPjDSfD 5xodibC+3cBinX8ngnz85zh+tqOKO5IAGsEQLx4x95IdbNiU/8lMA9/+rSfKuzoo DyxHCBS18XYxr2bj0cA/702632JQBL71EpV9KLFbWo++9n0lzqO1tE8lwcJm4eba 9fTgPpU/ak7rOm+dPTEH+KOt21I6l4/a/F7i1uuI9ZiD6NnNELnnMQCH+aFTSlF9 g== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5BB0PONkynKc; Tue, 14 May 2024 14:32:06 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508551cc.dip0.t-ipconnect.de [80.133.81.204]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 7E5BCCE517; Tue, 14 May 2024 14:32:06 +0200 (CEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH] testsuite: analyzer: Fix fd-glibc-byte-stream-connection-server.c on Solaris [PR107750] Date: Tue, 14 May 2024 14:32:05 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3789.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c currently FAILs on Solaris: FAIL: gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c (test for excess errors) Excess errors: /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c:91:3: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] Solaris has #define FD_ZERO(__p) (void) memset((__p), 0, sizeof (*(__p))) but no declaration of memset. While one can argue that this should be fixed, it's easy enough to just include instead, which is what this patch does. Tested on i386-pc-solaris2.11 and i686-pc-linux-gnu. Ok for trunk? Rainer # HG changeset patch # Parent 4d8ceef2997b0a0ff7a4b4df140f9f864e923eb4 testsuite: analyzer: Fix fd-glibc-byte-stream-connection-server.c on Solaris [PR107750] diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c b/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c --- a/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c +++ b/gcc/testsuite/gcc.dg/analyzer/fd-glibc-byte-stream-connection-server.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #if __has_include()