From patchwork Sun Jan 14 20:53:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 187985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1366143dyc; Sun, 14 Jan 2024 12:54:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2QW0lQ5yVuChvRH+lLZ6dw/exVeV+R+UAhTJBK/YT5f/4cyYxQ5D9UpE1oJSHpZDzzWRr X-Received: by 2002:ac8:7d45:0:b0:429:bb90:f7a6 with SMTP id h5-20020ac87d45000000b00429bb90f7a6mr6041556qtb.118.1705265670072; Sun, 14 Jan 2024 12:54:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705265670; cv=pass; d=google.com; s=arc-20160816; b=rXzahTih2J3cKBF9PTJHTNCpIr4zX+LHIFI8xgL9UctEBt9FWBQXka588dqXZkw3JO Hkb78SasKkFm367CVkA+M1NpB16ICZ5fubiUT4aDk9Ecii40beLz4tL+R2UfLH/Zvks3 VX/7w2Xy2HB+VEQL6+T59hzMhcMrPI2kfwStWDUO8Xc48YEU49k6rxRQuBls7MCFpQp9 JWmfs1IbSVBHsbDRsrl6A8VP9EVdhvnJbzU8ah5XZ1cGBXS/gq/SHkTwZcuBTt0cKPPV j5YFLCxAftZfFaIlBbJyGVlkEJn2dxtmMtMaO9ECdcPVr1wYv7Gfm9ZpFg2qRjqzdcN4 9w1A== 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:content-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=afw0qFmUPPmFtkZ/D8eOlaioZqPibnqsFFQP3uPaNSw=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=E9111YOVL3f6QpQM7Sj5XR7ZhABranKXI2srBT1sXjJ8p5Fi82ajFlptb/Wvv+/Zmj +UFccuZvHwQnGPAaoFMveq+qW53Fk0TO7chak+hXywa+ELbj2wz2cm4o/C8ang/CXOzd mW9K+36ChZrFuOtViLMkaG+e9ylpXdU7JRloDgJPjPg/S4ckRqE8HRWH+NKV9GkzVP6/ hVrQKyRhRuOOx68G45eiEfaZAesvcTRGApjX6laNaiRsOemSX+qvPBe1yFwZCIy3ElWz FK2kqNezm8RjtzLLBxgUPhaXaD56pOCPxEWH1Mm94i1gEK8F3dDAescipqYX31Gw4fSB Bd8w== ARC-Authentication-Results: i=2; mx.google.com; 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" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c6-20020a05622a058600b0042788531147si6927340qtb.536.2024.01.14.12.54.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 12:54:30 -0800 (PST) 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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB7DB3858C5E for ; Sun, 14 Jan 2024 20:54:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 7B8F03858D1E for ; Sun, 14 Jan 2024 20:53:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B8F03858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7B8F03858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705265632; cv=none; b=h0fx4YPWI8cH5JKBGHogJDscxASMyqGDWlfAF4dZTuXdv0dugfJhX72/OJGtw1Zp+znPj5xQO4DBINM4VCNWAUWvHESXarDHMc0TcfLUy40sN4jMUxrsgsCg61dFUIfM305yLpC7wdcEjl+xktofqIzhCxBYQyrGiz9jba5CVHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705265632; c=relaxed/simple; bh=eboH0N7THSjvLGsu3HXbxfHN46x951/1H7Op36rG66M=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=ubsD/5goeQu/DRMR7nmbfDgaD0EfoYg+N7ZiRg6FzoO2s73WTcKYSg3nXPaQiHTXNzxgLRfQ/rlV0yWIOjJGvcA6TbUtpaM6QAGJcdFDqeUSjMCUEm8nmZj8BJOor+20BZAb4jySFXnwlA+sTHfy2LeSale2YXLxE0qlqT1bggk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 3FA1F1600123; Sun, 14 Jan 2024 21:53:49 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id 6A2CC22011C; Sun, 14 Jan 2024 20:53:47 +0000 (UTC) Date: Sun, 14 Jan 2024 20:53:47 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Disable tests for strdup/strndup on __hpux__ in various builtin-object-size tests Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: 1788100655226997004 X-GMAIL-MSGID: 1788100655226997004 Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- Disable tests for strdup/strndup on __hpux__ hppa*-*-hpux* doesn't have strdup or strndup. 2024-01-14 John David Anglin gcc/testsuite/ChangeLog: * gcc.dg/builtin-object-size-1.c: Disable tests for strdup/strndup on __hpux__. * gcc.dg/builtin-object-size-2.c: Likewise. * gcc.dg/builtin-object-size-3.c: Likewise. * gcc.dg/builtin-object-size-4.c: Likewise. diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-1.c b/gcc/testsuite/gcc.dg/builtin-object-size-1.c index 64c4bc4da39..4f7d4c0b370 100644 --- a/gcc/testsuite/gcc.dg/builtin-object-size-1.c +++ b/gcc/testsuite/gcc.dg/builtin-object-size-1.c @@ -621,7 +621,7 @@ test10 (void) } } -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ /* Tests for strdup/strndup. */ size_t __attribute__ ((noinline)) @@ -726,7 +726,7 @@ main (void) test8 (); test9 (1); test10 (); -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ test11 (); #endif DONE (); diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-2.c b/gcc/testsuite/gcc.dg/builtin-object-size-2.c index da10b6b0632..37d3dcc6f56 100644 --- a/gcc/testsuite/gcc.dg/builtin-object-size-2.c +++ b/gcc/testsuite/gcc.dg/builtin-object-size-2.c @@ -536,7 +536,7 @@ test8 (unsigned cond) #endif } -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ /* Tests for strdup/strndup. */ size_t __attribute__ ((noinline)) @@ -639,7 +639,7 @@ main (void) test6 (); test7 (); test8 (1); -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ test9 (); #endif DONE (); diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-3.c b/gcc/testsuite/gcc.dg/builtin-object-size-3.c index f23873bec38..f4d1ebf7027 100644 --- a/gcc/testsuite/gcc.dg/builtin-object-size-3.c +++ b/gcc/testsuite/gcc.dg/builtin-object-size-3.c @@ -628,7 +628,7 @@ test10 (void) } } -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ /* Tests for strdup/strndup. */ size_t __attribute__ ((noinline)) @@ -734,7 +734,7 @@ main (void) test8 (); test9 (1); test10 (); -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ test11 (); #endif DONE (); diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-4.c b/gcc/testsuite/gcc.dg/builtin-object-size-4.c index dcb042f34b6..2887dd15042 100644 --- a/gcc/testsuite/gcc.dg/builtin-object-size-4.c +++ b/gcc/testsuite/gcc.dg/builtin-object-size-4.c @@ -509,7 +509,7 @@ test8 (unsigned cond) #endif } -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ /* Tests for strdup/strndup. */ size_t __attribute__ ((noinline)) @@ -612,7 +612,7 @@ main (void) test6 (); test7 (); test8 (1); -#ifndef __AVR__ /* avr has no strndup */ +#if !defined(__AVR__) && !defined(__hpux__) /* avr and hpux have no strndup */ test9 (); #endif DONE ();