From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 244C73858C27 for ; Mon, 13 Jun 2022 20:25:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 244C73858C27 Received: by mail-wm1-x32c.google.com with SMTP id l126-20020a1c2584000000b0039c1a10507fso3713688wml.1 for ; Mon, 13 Jun 2022 13:25:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:message-id:subject:mime-version :list-id; bh=0CvJGdcc0hr9I7JA8Jt/1AyxnuaaPQV0DgKAG1odxOk=; b=6oWCxnFjdrqBpjBwj3O68i4mQNWsLu0j+8tGoMDmHJFD+0lyZESrnTIVbCREE4TltA zQAoxtRdYM5qrsjDrv3XgHe8Az9cW8/pfHrP9xkwwmj4zq9moub0sX9KiPTd+Aah4LO3 ujTLZTKq4ive2YilAvH96cF4gOQtj6MqTca1Sg+irYyas2td4gVwXWJi38D278p4musc UTrSQ18z6dSOr66pynfF1aPoPQbNo23LcwIZ+z/untwMdo5zEyo74fkf+14GOHIWdIPW xJUqpbAaM0Q20edfFwhetHtyxjUIg83LzlYP22P4mkImrHnTa8u3VleEjBE/vi/FDMSp J00Q== X-Gm-Message-State: AOAM532QET+YEtjUB0UiEwE8+QrVc7ZtfkgaNwyVRdD2aOuLY4AizqXu MAaCfTLhnG35iBb8eKqk2zq6lw== X-Google-Smtp-Source: ABdhPJzCQdWBRzUUgbI5zKgbcAJFj6QIrZ2YrQgGeFL1wpJsWZKX4Hhk09MrlrJ6lgA9YRdEPmYcjg== X-Received: by 2002:a1c:283:0:b0:39c:975d:67a with SMTP id 125-20020a1c0283000000b0039c975d067amr495715wmc.18.1655151942597; Mon, 13 Jun 2022 13:25:42 -0700 (PDT) Received: from jenkins.jenkins (ci.linaro.org. [88.99.136.175]) by smtp.gmail.com with ESMTPSA id v17-20020adfedd1000000b002100aa69469sm9795708wro.2.2022.06.13.13.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 13:25:42 -0700 (PDT) From: ci_notify@linaro.org X-Google-Original-From: linaro-infrastructure-errors@lists.linaro.org Date: Mon, 13 Jun 2022 20:25:40 +0000 (UTC) To: Eric Botcazou Cc: gcc-regression@gcc.gnu.org Message-ID: <187562397.3155.1655151942246@jenkins.jenkins> Subject: [TCWG CI] Regression caused by gcc: Do not erase warning data in gimple_set_location MIME-Version: 1.0 X-Jenkins-Job: TCWG Bisect tcwg_gcc_bootstrap/master-arm-bootstrap X-Jenkins-Result: SUCCESS X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_LOTSOFHASH, 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2022 20:25:49 -0000 [TCWG CI] Regression caused by gcc: Do not erase warning data in gimple_set= _location: commit cb1ecf3819f19a4fc35468010b66b5c1a7b21ee8 Author: Eric Botcazou Do not erase warning data in gimple_set_location Results regressed to # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # First few build errors in logs: # 00:05:38 make[3]: [Makefile:1787: armv8l-unknown-linux-gnueabihf/bits/lar= gefile-config.h] Error 1 (ignored) # 00:29:21 make[3]: [Makefile:1787: armv8l-unknown-linux-gnueabihf/bits/lar= gefile-config.h] Error 1 (ignored) # 00:31:02 /home/tcwg-buildslave/workspace/tcwg_gnu_1/abe/snapshots/gcc.git= ~master/libcpp/lex.cc:1523:9: error: pointer used after =E2=80=98void opera= tor delete(void*, std::size_t)=E2=80=99 [-Werror=3Duse-after-free] # 00:31:04 make[3]: *** [Makefile:227: lex.o] Error 1 # 00:31:04 make[2]: *** [Makefile:9527: all-stage3-libcpp] Error 2 # 00:31:35 make[1]: *** [Makefile:25887: stage3-bubble] Error 2 # 00:31:35 make: *** [Makefile:1072: all] Error 2 from # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # build_abe bootstrap: 2 THIS IS THE END OF INTERESTING STUFF. BELOW ARE LINKS TO BUILDS, REPRODUCT= ION INSTRUCTIONS, AND THE RAW COMMIT. This commit has regressed these CI configurations: - tcwg_gcc_bootstrap/master-arm-bootstrap First_bad build: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master= -arm-bootstrap/16/artifact/artifacts/build-cb1ecf3819f19a4fc35468010b66b5c1= a7b21ee8/ Last_good build: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master= -arm-bootstrap/16/artifact/artifacts/build-6303eee4b92e8509409503a3abebde8b= d50f0f05/ Baseline build: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-= arm-bootstrap/16/artifact/artifacts/build-baseline/ Even more details: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-mast= er-arm-bootstrap/16/artifact/artifacts/ Reproduce builds: mkdir investigate-gcc-cb1ecf3819f19a4fc35468010b66b5c1a7b21ee8 cd investigate-gcc-cb1ecf3819f19a4fc35468010b66b5c1a7b21ee8 # Fetch scripts git clone https://git.linaro.org/toolchain/jenkins-scripts # Fetch manifests and test.sh script mkdir -p artifacts/manifests curl -o artifacts/manifests/build-baseline.sh https://ci.linaro.org/job/tcw= g_gcc_bootstrap-bisect-master-arm-bootstrap/16/artifact/artifacts/manifests= /build-baseline.sh --fail curl -o artifacts/manifests/build-parameters.sh https://ci.linaro.org/job/t= cwg_gcc_bootstrap-bisect-master-arm-bootstrap/16/artifact/artifacts/manifes= ts/build-parameters.sh --fail curl -o artifacts/test.sh https://ci.linaro.org/job/tcwg_gcc_bootstrap-bise= ct-master-arm-bootstrap/16/artifact/artifacts/test.sh --fail chmod +x artifacts/test.sh # Reproduce the baseline build (build all pre-requisites) ./jenkins-scripts/tcwg_gnu-build.sh @@ artifacts/manifests/build-baseline.s= h # Save baseline build state (which is then restored in artifacts/test.sh) mkdir -p ./bisect rsync -a --del --delete-excluded --exclude /bisect/ --exclude /artifacts/ -= -exclude /gcc/ ./ ./bisect/baseline/ cd gcc # Reproduce first_bad build git checkout --detach cb1ecf3819f19a4fc35468010b66b5c1a7b21ee8 ../artifacts/test.sh # Reproduce last_good build git checkout --detach 6303eee4b92e8509409503a3abebde8bd50f0f05 ../artifacts/test.sh cd .. Full commit (up to 1000 lines): commit cb1ecf3819f19a4fc35468010b66b5c1a7b21ee8 Author: Eric Botcazou Date: Mon Jun 13 10:03:36 2022 +0200 Do not erase warning data in gimple_set_location =20 gimple_set_location is mostly invoked on newly built GIMPLE statements,= so their location is UNKNOWN_LOCATION and setting it will clobber the warn= ing data of the passed location, if any. =20 gcc/ * dwarf2out.cc (output_one_line_info_table): Initialize prev_ad= dr. * gimple.h (gimple_set_location): Do not copy warning data from the previous location when it is UNKNOWN_LOCATION. * optabs.cc (expand_widen_pattern_expr): Always set oprnd{1,2}. gcc/testsuite/ * c-c++-common/nonnull-1.c: Remove XFAIL for C++. --- gcc/dwarf2out.cc | 2 +- gcc/gimple.h | 3 ++- gcc/optabs.cc | 6 ++---- gcc/testsuite/c-c++-common/nonnull-1.c | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 29f32ec6939..b468a4b9c0f 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -12916,7 +12916,7 @@ output_one_line_info_table (dw_line_info_table *tab= le) char line_label[MAX_ARTIFICIAL_LABEL_BYTES]; unsigned int current_line =3D 1; bool current_is_stmt =3D DWARF_LINE_DEFAULT_IS_STMT_START; - dw_line_info_entry *ent, *prev_addr; + dw_line_info_entry *ent, *prev_addr =3D NULL; size_t i; unsigned int view; =20 diff --git a/gcc/gimple.h b/gcc/gimple.h index 6b1e89ad74e..870629cd562 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1913,7 +1913,8 @@ static inline void gimple_set_location (gimple *g, location_t location) { /* Copy the no-warning data to the statement location. */ - copy_warning (location, g->location); + if (g->location !=3D UNKNOWN_LOCATION) + copy_warning (location, g->location); g->location =3D location; } =20 diff --git a/gcc/optabs.cc b/gcc/optabs.cc index c0a68471d2d..a50dd798f2a 100644 --- a/gcc/optabs.cc +++ b/gcc/optabs.cc @@ -264,10 +264,8 @@ expand_widen_pattern_expr (sepops ops, rtx op0, rtx op= 1, rtx wide_op, bool sbool =3D false; =20 oprnd0 =3D ops->op0; - if (nops >=3D 2) - oprnd1 =3D ops->op1; - if (nops >=3D 3) - oprnd2 =3D ops->op2; + oprnd1 =3D nops >=3D 2 ? ops->op1 : NULL_TREE; + oprnd2 =3D nops >=3D 3 ? ops->op2 : NULL_TREE; =20 tmode0 =3D TYPE_MODE (TREE_TYPE (oprnd0)); if (ops->code =3D=3D VEC_UNPACK_FIX_TRUNC_HI_EXPR diff --git a/gcc/testsuite/c-c++-common/nonnull-1.c b/gcc/testsuite/c-c++-c= ommon/nonnull-1.c index ea987365302..7be4e3479dd 100644 --- a/gcc/testsuite/c-c++-common/nonnull-1.c +++ b/gcc/testsuite/c-c++-common/nonnull-1.c @@ -30,5 +30,5 @@ func (char *cp1, char *cp2, char *cp3, char *cp4) __attribute__((nonnull (1))) int func2 (char *cp) { - return (cp !=3D NULL) ? 1 : 0; /* { dg-warning "'nonnull' argument" "cp = compared to NULL" { xfail c++ } } */ + return (cp !=3D NULL) ? 1 : 0; /* { dg-warning "'nonnull' argument" "cp = compared to NULL" } */ } >>From hjl@sc.intel.com Wed Jun 15 15:48:02 2022 Return-Path: X-Original-To: gcc-regression@gcc.gnu.org Delivered-To: gcc-regression@gcc.gnu.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by sourceware.org (Postfix) with ESMTPS id 6868C3858D32 for ; Wed, 15 Jun 2022 15:48:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6868C3858D32 X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="276578834" X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="276578834" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 08:47:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="674566387" Received: from scymds02.sc.intel.com ([10.82.73.244]) by FMSMGA003.fm.intel.com with ESMTP; 15 Jun 2022 08:47:59 -0700 Received: from gnu-clx-1.sc.intel.com (gnu-clx-1.sc.intel.com [172.25.70.216]) by scymds02.sc.intel.com with ESMTP id 25FFlxLu027497; Wed, 15 Jun 2022 08:47:59 -0700 Received: by gnu-clx-1.sc.intel.com (Postfix, from userid 1000) id EB1643E001F; Wed, 15 Jun 2022 08:47:58 -0700 (PDT) Date: Wed, 15 Jun 2022 08:47:58 -0700 To: skpgkp2@gmail.com, hjl.tools@gmail.com, gcc-regression@gcc.gnu.org Subject: Regressions on native/master at commit r13-1108 vs commit r13-1097 on Linux/x86_64 User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20220615154758.EB1643E001F@gnu-clx-1.sc.intel.com> From: "H. J. Lu" X-Spam-Status: No, score=-3460.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2022 15:48:02 -0000 New failures: FAIL: g++.target/i386/pr105953.C -std=gnu++14 (test for excess errors) FAIL: g++.target/i386/pr105953.C -std=gnu++17 (test for excess errors) FAIL: g++.target/i386/pr105953.C -std=gnu++20 (test for excess errors) FAIL: g++.target/i386/pr105953.C -std=gnu++98 (test for excess errors) New passes: