From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 28FEF3858D1E for ; Mon, 17 Jul 2023 06:49:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28FEF3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3143ccb0f75so4298611f8f.0 for ; Sun, 16 Jul 2023 23:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1689576548; x=1692168548; 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=BmLR2c9CAtTkkGcFASwAWzkZp+09ePESwDjij+I6wV8=; b=Kizk+pM4mLxm91Q5EffayuX3jmvn0WJ6uUO4M0ddD6nb09hwmpqX2tLceXSnV1XawR s3PHy4xPtb0Y94shJcNdCJi4lvMamVQAgUAUzPVC8WGTS1uKpXxYqXX4Zu2HV5g5PqEl bUyM+YwCbf/G/gSfiKMSwfXZUm/tsOJ2tttVqU76dPnoHL4Ezp6+LbrMrlSm0oSPDfoH 3e9+AZO9FKFdPHvpEWoEarCEHU9h4j1WlLPCBJxNsANQTm/la9fkGSSisjd2s3qYA6vQ +Lw86pMpyegwggvLC+iVbeMravtOtgZoDO62VhDaJtsigfWX2eYZqmzd72Hyo+AK7ZkV URHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689576548; x=1692168548; 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=BmLR2c9CAtTkkGcFASwAWzkZp+09ePESwDjij+I6wV8=; b=QvLK8rBg1c55WRzfY6ZynNOyNpm7v77LF4FkwQghYGg18tnHt2kTwLO9dhH2Lj4QlO DpbsN+l2ii3qD88FF13GK37t7yjRhJgHX2T81qHl5ft5FDWJfUmPDowzDGwm4Cj4f6x2 w3ipPl+MPIgO3z+ARKm6LOK1Zs4MURAm9HQHJGJFPP1U5c+8mfa5azLwydkHw94iApeJ bMDs1FvHs7cKrJw3y96UlllvUhYPx9XPtThFYKg9jtjK6yn0EJ30RhDuEroT89Wrh/Ay g3naC9CEBbPKgetYCZaq5O0UNCd7JN9BtHZL6D7jmsvW4d7fIvA9KYoQNBzUz0TDWFN0 pghw== X-Gm-Message-State: ABy/qLYPGE6mW8B0jUgPpUc/EU+5YYee/791Hf9Fo3sXsaJCf+CMcb+I asHGlj/7e64Wcz6EGD+ZSnijKjV9B91rSnCTeyJLudVFJfPqRPfX X-Google-Smtp-Source: APBJJlFNrgwlnRSORrJ1lKlA+fadS3TStwtcLBsFlsx0UHcE1BRP0OLiBH16clS9YVebAFukKWbCuW0ifZjKYbk6d5o= X-Received: by 2002:adf:fe0e:0:b0:314:4f36:88 with SMTP id n14-20020adffe0e000000b003144f360088mr12550233wrr.38.1689576548578; Sun, 16 Jul 2023 23:49:08 -0700 (PDT) MIME-Version: 1.0 References: <20230712081314.F1263385800C@sourceware.org> <87351qpz1c.fsf@igel.home> In-Reply-To: <87351qpz1c.fsf@igel.home> From: =?UTF-8?Q?Christoph_M=C3=BCllner?= Date: Mon, 17 Jul 2023 08:48:55 +0200 Message-ID: Subject: Re: [gcc r14-2455] riscv: Prepare backend for index registers To: Andreas Schwab Cc: Kito Cheng , gcc-patches@gcc.gnu.org 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,JMQ_SPF_NEUTRAL,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: On Fri, Jul 14, 2023 at 12:28=E2=80=AFPM Andreas Schwab wrote: > > Why didn't you test that? Thanks for reporting, and sorry for introducing this warning. I test all patches before sending them. In the case of RISC-V backend patches, I build a 2-stage cross-toolchain and run all regression tests for RV32 and RV64 (using QEMU). Testing is done with and without patches applied to identify regressions. The build process shows a lot of warnings. Therefore I did not investigate finding a way to use -Werror. This means that looking for compiler warnings is a manual step, and I might miss one while scrolling through the logs. Sorry for the inconvenience, Christoph > > ../../gcc/config/riscv/riscv.cc: In function 'int riscv_regno_ok_for_inde= x_p(int)': > ../../gcc/config/riscv/riscv.cc:864:33: error: unused parameter 'regno' [= -Werror=3Dunused-parameter] > 864 | riscv_regno_ok_for_index_p (int regno) > | ~~~~^~~~~ > cc1plus: all warnings being treated as errors > make[3]: *** [Makefile:2499: riscv.o] Error 1 > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 > "And now for something completely different."