From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by sourceware.org (Postfix) with ESMTPS id 15C173858D20 for ; Fri, 2 Dec 2022 09:37:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 15C173858D20 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-vs1-xe2b.google.com with SMTP id t5so4104542vsh.8 for ; Fri, 02 Dec 2022 01:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Qne2BG77DeWLWtjYy75nWAoxP7oj2KPMN2ttvIX50UM=; b=p8Agdgc6FfgXPTMDbws58PV4ACICjXyNEgatGR5wcUpsfmAiIofEYGfsi0X56BPKY8 sLkm39gOlkRoQnD4MDS0WcfsK/iSNtd+l/OHSK6OeKkNsx3w7o88e5o7DHTcgKl6lSi+ RaXTuIjZCm94uWBbxFDVCr8xuz/ImSY6BwjcHLsB8sx0vXZNtUj3UqwDwbTO1u/8k5Lz yAgb9y01vqkZcSRAjQFc9HZEHwkPZG+TkmKKW5hO0Ziex68mbKYU49Ws/AzwAX4I6BJj 3yBd169RmBGslw5qXXfHvdDLVWWgZl7cCqASIInY1V1n6uiwEYBJKEpY9pKmipW0COkW hing== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=Qne2BG77DeWLWtjYy75nWAoxP7oj2KPMN2ttvIX50UM=; b=kE5in27KpGMy+dnBY3vFI/4+1gf62KEdMioS0dTkjl4ETi910KFCdDlpH5MHYf2Xc8 5pxpT4U7T0VUzot4t8VYXFea/n/ACNfGm/sw/Lgq8+Fk4N6VhZ6ljlJDXP/urzgOtAUs QG2xZ0HcAJ47SSfPFRc8d6sfEMC0xflOQEsPHMMZKo2Y9yKc3A8bH2FCbHincX3kwOoo xcH6kKIyuBnnNqSwDQyFoy6KXWbjTRWOUsXWcrqFAptAVOdvViB7JrDYPp1Mp2NiK7kN UZkBKCoklOfHVeLVvl+F0Nr0//HjfCAQL4Cyket2wMiY2LJ9aoarZt/wRJRtz0c1lY2N rdcg== X-Gm-Message-State: ANoB5pkWLnN/yBumcYVEjrPS8WeRdOf4eTF41Wu7QxFMpHR7o63yyKgy 5RYypMuUCbvS6DKJvFaVYNmPkhF5bAqtnChvjgg= X-Google-Smtp-Source: AA0mqf67nvI9/8HlnhNJht1/6kRHkvqYLm2mBKkyW+9DyP1PZyTh4z3EblTH4YE2C8ZPXTHJEktZyEWWSJw+RNSSSsM= X-Received: by 2002:a67:e94e:0:b0:3a7:91c0:5915 with SMTP id p14-20020a67e94e000000b003a791c05915mr32705299vso.84.1669973861078; Fri, 02 Dec 2022 01:37:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kito Cheng Date: Fri, 2 Dec 2022 17:37:29 +0800 Message-ID: Subject: Re: [PATCH] [testsuite] [riscv] uninit-pred-9_b bogus warning To: Alexandre Oliva Cc: gcc-patches@gcc.gnu.org, Rainer Orth , Mike Stump Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: OK, thanks :) On Fri, Dec 2, 2022 at 5:21 PM Alexandre Oliva via Gcc-patches wrote: > > > Like other platforms, riscv hits the uninitialized warning because the > optimizations don't eliminate the nonviable path that would enable it > to be omitted. > > Regstraped on x86_64-linux-gnu, also tested with crosses to riscv64-elf > and arm-eabi. Ok to install? > > > for gcc/testsuite/ChangeLog > > * gcc.dg/uninit-pred-9_b.c: Add riscv*-*-* to the xfail list > for the bogus warning. > --- > gcc/testsuite/gcc.dg/uninit-pred-9_b.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/testsuite/gcc.dg/uninit-pred-9_b.c b/gcc/testsuite/gcc.dg/uninit-pred-9_b.c > index 53c4a5399eaa3..c8f427b12c0ab 100644 > --- a/gcc/testsuite/gcc.dg/uninit-pred-9_b.c > +++ b/gcc/testsuite/gcc.dg/uninit-pred-9_b.c > @@ -17,7 +17,7 @@ int foo (int n, int l, int m, int r) > > if (l > 100) > if ( (n <= 9) && (m < 100) && (r < 19) ) > - blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail powerpc64*-*-* cris-*-* } } */ > + blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail powerpc64*-*-* cris-*-* riscv*-*-* } } */ > > if ( (n <= 8) && (m < 99) && (r < 19) ) > blah(v); /* { dg-bogus "uninitialized" "pr101674" { xfail mmix-*-* } } */ > -- > 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