From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 15D143858CDA for ; Wed, 17 May 2023 12:23:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15D143858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-965fc25f009so118022766b.3 for ; Wed, 17 May 2023 05:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684326181; x=1686918181; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=Qkl0NiQBH87uBwjeekh085MSBgC0YIUI3yxsKRruACA=; b=ZCoh25j/CUuBNozrNWWlHpCEMK5aXrXjpbt7lXkIGXyO1d2B7is3bPHAsRvr491cvH 8i9l8xt9MlcdSw4l/YrRID6TocbONbnVuOvoYe5eu66sOocsMIglERSi8qSTwN+LifEE Sa+V4+mfPWtC52O1cmE615tg+PT6Qku8LODL81fIWq76d/DhNCnaRMIjFIA9x2bYqXw1 FfuV+mNT2LGqRIdimbMd4JP7Kwnw/FdVY4YMCbNjAVjaEj6NVa54jE7F8L91RqfeFEPY 0VcUXZ6iU+ar8pxzlFG43BVVGn+sRCSIDdDXlzilMAgQLf+gsHS2wkzpOOZaCQgEfQMN PLXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684326182; x=1686918182; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qkl0NiQBH87uBwjeekh085MSBgC0YIUI3yxsKRruACA=; b=eGzkA3AlF5XKLsP9+vRfzeT2TtEsVofof9OEX5GJO442rNFKyv+rGjLU2CfUurNmaN S8kmLb32tgxONVQZbMzxlzw5VCGsZP0qlHFMJ70ra8rCFV8qpB3KaLUTflG8m2pszrZl wEnxcbsacWBGGzmClYqTurcZGwEEgTVsBcAb2aFHqYEH6TAHv9HGOe9Z6snZ318D8IuJ Hv4YYy5gPMRKX55spHH/0HpPrlIMAJdmmBh9i4gnjNIWQTDGun6sXAU9YlxIJrqhGO7l zvGjncrAN676XzSumgKqVDympB8vwNrj/wlTPDeDIe+F7loEVzGx6b3aktIsPCHcy1YZ 9Fvg== X-Gm-Message-State: AC+VfDxVSJ0qU8ivClSYHmJ6Rt5/ADgoYi6YI/Pq5f/GvoEqUL/pW6ZV sXvsI/bg4WJ1PWI/rbB4gWo= X-Google-Smtp-Source: ACHHUZ7tdQ0QQRRnB0/cZGRAXa4swXULnrkBXLBsuMytz0Zktssrqf7XnE18gUxwE6rIZBgxWbxFzA== X-Received: by 2002:a17:906:da86:b0:960:ddba:e5c3 with SMTP id xh6-20020a170906da8600b00960ddbae5c3mr32538179ejb.32.1684326181357; Wed, 17 May 2023 05:23:01 -0700 (PDT) Received: from smtpclient.apple ([195.39.106.162]) by smtp.gmail.com with ESMTPSA id j2-20020a170906534200b0096b4c3489e6sm3740979ejo.177.2023.05.17.05.23.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 05:23:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Richard Biener Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] RISC-V: Adjust stdint.h to stdint-gcc.h for rvv tests Date: Wed, 17 May 2023 14:22:50 +0200 Message-Id: References: Cc: Robin Dapp , pan2.li@intel.com, gcc-patches@gcc.gnu.org, juzhe.zhong@rivai.ai, yanzhang.wang@intel.com, jeffreyalaw@gmail.com In-Reply-To: To: Kito Cheng X-Mailer: iPhone Mail (20E252) X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Am 17.05.2023 um 08:55 schrieb Kito Cheng : >=20 > =EF=BB=BFRISC-V glibc will require corresponding muilti-lib has built ther= e, > otherwise will report something like: >=20 > /usr/include/gnu/stubs.h:11:11: fatal error: gnu/stubs-ilp32d.h: No > such file or directory >=20 > But actually we only require those fixed length types to compile and > scan assembly or dump, > So we don't really have those multilib built, that's the reason we > workaround this way. >=20 > This way could work even if the multilib build is disabled, and seems > ARM has same issue around that and just disable those tests: Then just mimic that or avoid using stdint.h and instead use things like __I= NT32_TYPE__? > --- > # Return 1 if this is an ARM target supporting -mfloat-abi=3Dsoft. Some > # multilibs may be incompatible with this option. >=20 > proc check_effective_target_arm_soft_ok { } { > return [check_no_compiler_messages arm_soft_ok object { > #include > int dummy; > int main (void) { return 0; } > } "-mfloat-abi=3Dsoft"] > } >=20 > # Return 1 if this is an ARM target supporting -mfloat-abi=3Dsoft even > # for linking. Some multilibs may be incompatible with this option, > # and some linkers may reject incompatible options. >=20 > proc check_effective_target_arm_soft_ok_link { } { > return [check_no_compiler_messages arm_soft_ok_link executable { > #include > int dummy; > int main (void) { return 0; } > } "-mfloat-abi=3Dsoft"] > } > --- >=20 >=20 >> On Wed, May 17, 2023 at 2:25=E2=80=AFPM Robin Dapp w= rote: >>=20 >>> Huh, including stdint-gcc.h looks completely wrong. What's the issue yo= u are >>> trying to solve? >>=20 >> The way I understood it is that that's a temporary workaround until >> all multilib et al. (+testsuite) configurations are in place but I >> haven't checked the details myself. Eventually this should be done >> properly so we can include the regular headers. Kito might want to >> comment as he dealt with it before. >>=20 >> I used #include for all those tests and Andreas Schwab reporte= d: >>=20 >> /usr/include/gnu/stubs.h:11:11: fatal error: gnu/stubs-ilp32d.h: No such= file or directory >>=20 >> Regards >> Robin