From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 6E89A3858D1E for ; Wed, 17 May 2023 06:55:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E89A3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-51b33c72686so243502a12.1 for ; Tue, 16 May 2023 23:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1684306528; x=1686898528; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wjX8mw43AlZgpd/S023zi3ZVDicUCQ2T5zbGxP5mn6w=; b=ENiWPZffFMWyRAMUZYdPjhrfip43KwR7Ixp063bRh+wKE0/314/hTfMtHDfl1RGNQZ 3TdtSX9YFlJOQ14vAQPvrPWAUhUtQL045GPHg6gF/HAv2KMbh0rAU3HMYGn+12Aj0k8o Gpi4WPBb9Z8Q6jXkb42KD/HCZ/6iXSyo4oVYDV97n/qPyP/BbA2gTKJEYX3hSBZ5kzV9 h9bfNoqgZ9VgHmF2x68Gjx+7yJXVDBOYy4q6dYWYnFLc0L6cZAJB/wr7zDY2Y1wqAvbC jWDj7xrKLPjw7A6/bNtFpyZwfrO+GRmLvfGdalb5v3Ty1vRU1aKKJNZXxS8VNqQFN25m lqBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684306528; x=1686898528; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wjX8mw43AlZgpd/S023zi3ZVDicUCQ2T5zbGxP5mn6w=; b=UuM2lIIM6YxKQPcJjI6Ac136SblWmzSSTJLtC3HNgEuW6FMThjb2OVEIpoFhfPdO9u c3Ob47z/uJ0jTY/oxuwKjveLxyC0QvBX0jI0c5aVuD6z6GZyFB0CA9lLRyaM7kVb5hfJ m4pdDLPko0gSBINtwE7bTTZyAAg+4UpVxcleOhSUFpASghHCIjESEGEFfiFRBMwd6sz0 qhUBPY4PHo0ulFg6cj8swC6CAgRwg9foCmcZAS0yV9aHqjd0n3JL2pmiZjQyVq6kaVJU Yrrs2jc3Twi1FdXd3DQ9+BQdG93ksZ+h6lNesMR6May76Fb1/Rc0WkOVuzMWwJnJFiMj uuGw== X-Gm-Message-State: AC+VfDxmsMkNKQ7uhPJr02/wtg1+YxYlfWkSTktXgyUe53dXNFsuuIq+ UxlbkmitsRHzDzQQ1ENpHH0JPoBBRX3iAlqQh9Xc+w== X-Google-Smtp-Source: ACHHUZ6bPV+w+ddGBUWW2VVIEy9nomu628wOXouTmCDcMk/QI0rTYkwal2II00q/fQKmACP0H8yp3DQGSNxqvdvkiHA= X-Received: by 2002:a17:90a:b297:b0:24d:ff56:f8c1 with SMTP id c23-20020a17090ab29700b0024dff56f8c1mr40349852pjr.13.1684306527775; Tue, 16 May 2023 23:55:27 -0700 (PDT) MIME-Version: 1.0 References: <20230516065201.751821-1-pan2.li@intel.com> <31643aee-538d-cdbd-9e76-db908cd6ed11@gmail.com> <9c710714-fac7-d1ff-dc33-d6ea2931f814@gmail.com> In-Reply-To: <9c710714-fac7-d1ff-dc33-d6ea2931f814@gmail.com> From: Kito Cheng Date: Wed, 17 May 2023 14:55:16 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Adjust stdint.h to stdint-gcc.h for rvv tests To: Robin Dapp Cc: Richard Biener , pan2.li@intel.com, gcc-patches@gcc.gnu.org, juzhe.zhong@rivai.ai, yanzhang.wang@intel.com, jeffreyalaw@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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: RISC-V glibc will require corresponding muilti-lib has built there, otherwise will report something like: /usr/include/gnu/stubs.h:11:11: fatal error: gnu/stubs-ilp32d.h: No such file or directory 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. This way could work even if the multilib build is disabled, and seems ARM has same issue around that and just disable those tests: --- # Return 1 if this is an ARM target supporting -mfloat-abi=3Dsoft. Some # multilibs may be incompatible with this option. 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"] } # 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. 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"] } --- On Wed, May 17, 2023 at 2:25=E2=80=AFPM Robin Dapp wr= ote: > > > Huh, including stdint-gcc.h looks completely wrong. What's the issue y= ou are > > trying to solve? > > 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. > > I used #include for all those tests and Andreas Schwab reporte= d: > > /usr/include/gnu/stubs.h:11:11: fatal error: gnu/stubs-ilp32d.h: No suc= h file or directory > > Regards > Robin