From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 7E02C3858D33 for ; Mon, 17 Jul 2023 07:33:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E02C3858D33 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-x436.google.com with SMTP id ffacd0b85a97d-314172bac25so4108523f8f.3 for ; Mon, 17 Jul 2023 00:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1689579200; x=1692171200; 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=b51JaKfgpoLov9HImYKLJU6qwD/Gs3zU53i0K8MyuOE=; b=Ic6hPy9LPuNgTz7DaPQGMcJCdJxPwhyQYcEpHpzi2TRHwu+nKV5HDt602JKf/j4Goq WcoXj6xQEacqfq5GyN8cbUbk+ScNfubAQA09aQ2qtebYqgMsBYOkP2uW39kdcCItHiPo MvbdDjWqKtfNQrmHAEvohgEBfWxpOyJoHv+8dIc0IjvjafHXEWUYGrveoGWr/9BgAqxC id/n9Ki9cfsiY25w99mTtTaR8DIVqy4U2+Xv9cav+NWGuAf254/nlR9IN+24QpzxhRCX l8drCuL9EUH5XOnygqRVcSVyiAZRx6XbMY9XKkukdrkHOvTelYo9qvQhe/hzhTvpZ8Ox lNGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689579200; x=1692171200; 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=b51JaKfgpoLov9HImYKLJU6qwD/Gs3zU53i0K8MyuOE=; b=b4sLfwtHGsp1Tq+san8fzrFEdg7+BHjKbv7TixhNue+W8QsOKWEXzpbs5Dd6/girwJ 5fEtT04gzsX0MIX2zYsag/4EvZGqQdXeg2cEDQ+A8DZoQZyY2vUlqka39pS1aKyztBVL i900H34L4kQEwXy4U887hxxyKEW+4iQCIHEQv4gT7knuakzkAP1x8kdUIw6Tv0yGNdad SkMV9GdCFYH5/CDPT8ms7rvUuhDX1vNCyXJ5/B6E4jjelmY7oXTMnbNmtg60cI/h/kGu KeowtBPLrKOlIsfOzJQ0GaRECBJVpuLBOMhGCRqO97oKIeW2kGL89KOlD5faZvUQbPO8 G35g== X-Gm-Message-State: ABy/qLZmgvL26ua3bTI3a4ca+HFD963hAS+GbchvYi8usEN7W6QqkeBV u42gcTe+L2Ky9YUDIH8Edls8fTrtSvlNM1CjcwyGUA== X-Google-Smtp-Source: APBJJlHNJke/Z9nQrG5DxNyEFcHgOqF3sDDSUwq0m7xDrpqOphgpvQAYs6sciub/WpVvTaLXWHOw7fVbkdQPqeE5tKI= X-Received: by 2002:adf:e48e:0:b0:313:f463:9d40 with SMTP id i14-20020adfe48e000000b00313f4639d40mr9065427wrm.65.1689579200392; Mon, 17 Jul 2023 00:33:20 -0700 (PDT) MIME-Version: 1.0 References: <20230712081314.F1263385800C@sourceware.org> <87351qpz1c.fsf@igel.home> In-Reply-To: From: =?UTF-8?Q?Christoph_M=C3=BCllner?= Date: Mon, 17 Jul 2023 09:33:07 +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.4 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 Mon, Jul 17, 2023 at 9:24=E2=80=AFAM Andreas Schwab wrote: > > On Jul 17 2023, Christoph M=C3=BCllner wrote: > > > The build process shows a lot of warnings. > > Then you are using a bad compiler. The build is 100% -Werror clean. My host compiler is: gcc version 13.1.1 20230614 (Red Hat 13.1.1-4) (GCC) Some examples: > /home/cm/src/gcc/riscv-mainline/gcc/text-art/table.cc: In member function= =E2=80=98int text_art::table_geometry::table_x_to_canvas_x(int) const=E2= =80=99: > /home/cm/src/gcc/riscv-mainline/gcc/text-art/table.cc:561:15: warning: co= mparison of integer expressions of different signedness: =E2=80=98int=E2=80= =99 and =E2=80=98std::vector::size_type=E2=80=99 {aka =E2=80=98long un= signed int=E2=80=99} [-Wsign-compare] > 561 | if (table_x =3D=3D m_col_start_x.size ()) > | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ > /home/cm/src/gcc/riscv-mainline/gcc/text-art/table.cc: In function =E2=80= =98void selftest::test_spans_3()=E2=80=99: > /home/cm/src/gcc/riscv-mainline/gcc/text-art/table.cc:947:62: warning: un= quoted keyword =E2=80=98char=E2=80=99 in format [-Wformat-diag] > 947 | "'buf' (char[= %i])", > | ^~~~ > /home/cm/src/gcc/riscv-mainline/gcc/gengtype-lex.l: In function =E2=80=98= int yylex(const char**)=E2=80=99: > gengtype-lex.cc:356:15: warning: this statement may fall through [-Wimpli= cit-fallthrough=3D] > 356 | */ > | ~~ ^ > In file included from /home/cm/src/gcc/riscv-mainline/libgcc/unwind-dw2.c= :410: > ./md-unwind-support.h: In function 'riscv_fallback_frame_state': > ./md-unwind-support.h:67:6: warning: assignment to 'struct sigcontext *' = from incompatible pointer type 'mcontext_t *' [-Wincompatible-pointer-types= ] > 67 | sc =3D &rt_->uc.uc_mcontext; > | ^ > /home/cm/src/gcc/riscv-mainline/libgcc/config/riscv/atomic.c:36:8: warnin= g: conflicting types for built-in function '__sync_fetch_and_add_1'; expect= ed 'unsigned char(volatile void *, unsigned char)' [-Wbuiltin-declaration-m= ismatch] > 36 | type __sync_fetch_and_ ## opname ## _ ## size (type *p, type v)= \ > | ^~~~~~~~~~~~~~~~~ Please let me know if I am doing something wrong. BR Christoph > > -- > 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."