From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id 24BC53858434 for ; Fri, 9 Feb 2024 10:33:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 24BC53858434 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 24BC53858434 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707474792; cv=none; b=pCy27+t1v8p/3KmtF4kHeUuP9w8yXvOA0+oMtCOwJWFzrWMrtf0fLzVkxsH1TSKhpyozdkT2vM3v7MjJaZDnk67GdxpUvTibimvSm+ysnkF1PFLkEjcFlkp/ifkHz6luOk54OC4Hs4W3mqCz5FCbsEWs5zyIUE9YZetPLs+YvOQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707474792; c=relaxed/simple; bh=Yz+ZaK632DaYqHgwUGjmCSAyMBh0dCchYDpy9GTOnwk=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=tjBv7ezSL6Mik1MvHDWXklBL+8m84TfbToVJPssPzVC2eLHzz2Q18CjuBzVXpWVpU30o97TI9ayRaq9uKmgmqrZYDXa/g3lpnjeUWxkz1nCotRl66U0WC1ds0YSlnr7YELH1shRng0B9gRx9/jcovbeDIg1+wXeZ5r7vNUB8oDY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41971t5V024829; Fri, 9 Feb 2024 11:33:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=qwAxUuttWpCYsBfTVJHkbHFnyU5bz/HP8S8iIqx3sX4=; b=Nf iceEX6nDGJQA1ZQJrB+flr5ZigXKPf1J0XlUwtkWaWPxXuEe6/Ntx+cXdFkyYWyJ VufyaYQWVKXDVD1fQiHYqbaniTIo/StqPPm1AtAsV35ld8PgZv3dg5T7pmO+st0Z CCscUYNIdb31Sg/LuAQ92y444yKFQrnvh8AXbL1SPFC91PqPstXLsxLXW9rcFtlQ WbsW6/XCAzFmuZPvxz88JF6lL/9wfwaEWjqOEqIE2HcxyxOj/bPUJL1X2THHWWBD Chnc7iHNq9uCdlidU/lfbk7t7L8AMsIt8GhltKV6LesA3kdlLb/0DUrecwuyWy/Z HNwhSEI410SlMWG4dmYA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3w21ape7nh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Feb 2024 11:33:04 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 22B9810004F; Fri, 9 Feb 2024 11:33:03 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 18196217B8A; Fri, 9 Feb 2024 11:33:03 +0100 (CET) Received: from [10.252.18.136] (10.252.18.136) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 9 Feb 2024 11:33:02 +0100 Message-ID: <8454e29d-ae16-48bf-9cbd-eadec0a6a4a8@foss.st.com> Date: Fri, 9 Feb 2024 11:33:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [testsuite] tsvc: skip include malloc.h when unavailable Content-Language: en-US To: Richard Biener , Alexandre Oliva CC: , Rainer Orth , Mike Stump , Yvan Roux References: From: Torbjorn SVENSSON In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.252.18.136] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-09_08,2024-02-08_01,2023-05-22_02 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,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 List-Id: Hi, Is it okay to backport 2f20d6296087cae51f55eeecb3efefe786191fd6 to releases/gcc-13? Without this backport, I see about 150 failures on arm-none-eabi, an example of them is: FAIL: gcc.dg/vect/tsvc/vect-tsvc-s000.c (test for excess errors) Kind regards, Torbjörn On 2023-05-24 11:02, Richard Biener via Gcc-patches wrote: > On Wed, May 24, 2023 at 7:17 AM Alexandre Oliva via Gcc-patches > wrote: >> >> >> tsvc tests all fail on systems that don't offer a malloc.h, other than >> those that explicitly rule that out. Use the preprocessor to test for >> malloc.h's availability. >> >> tsvc.h also expects a definition for struct timeval, but it doesn't >> include sys/time.h. Add a conditional include thereof. >> >> Bootstrapped on x86_64-linux-gnu. Also tested on ppc- and x86-vx7r2 >> with gcc-12. > > OK. > >> >> for gcc/testsuite/ChangeLog >> >> * gcc.dg/vect/tsvc/tsvc.h: Test for and conditionally include >> malloc.h and sys/time.h. >> >> --- >> gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h b/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h >> index 75494c24cfa62..cd39c041903dd 100644 >> --- a/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h >> +++ b/gcc/testsuite/gcc.dg/vect/tsvc/tsvc.h >> @@ -11,9 +11,12 @@ >> >> #include >> #include >> -#if !defined(__APPLE__) && !defined(__DragonFly__) >> +#if __has_include() >> #include >> #endif >> +#if __has_include() >> +#include >> +#endif >> #include >> #include >> >> >> -- >> Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ >> Free Software Activist GNU Toolchain Engineer >> Disinformation flourishes because many people care deeply about injustice >> but very few check the facts. Ask me about