From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id 4D35E3AA9834; Thu, 10 Jun 2021 07:32:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D35E3AA9834 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1355] testsuite: Fix up libgomp.fortran/pr100981-2.f90 testcase [PR100981] X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/master X-Git-Oldrev: 2d2ed777b23ab6503027039e0adbfe1162f52b2f X-Git-Newrev: 7d19a50ea1e5e9858bb7cd258fa4f9db89ecfcb2 Message-Id: <20210610073233.4D35E3AA9834@sourceware.org> Date: Thu, 10 Jun 2021 07:32:33 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2021 07:32:33 -0000 https://gcc.gnu.org/g:7d19a50ea1e5e9858bb7cd258fa4f9db89ecfcb2 commit r12-1355-g7d19a50ea1e5e9858bb7cd258fa4f9db89ecfcb2 Author: Jakub Jelinek Date: Thu Jun 10 09:31:06 2021 +0200 testsuite: Fix up libgomp.fortran/pr100981-2.f90 testcase [PR100981] The dsdotr and dsdoti variables uninitialized and the testcase fails e.g. on i686-linux. Fixed by zero initialization. 2021-06-10 Jakub Jelinek PR tree-optimization/100981 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize dsdotr and dsdoti to 0. Diff: --- libgomp/testsuite/libgomp.fortran/pr100981-2.f90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgomp/testsuite/libgomp.fortran/pr100981-2.f90 b/libgomp/testsuite/libgomp.fortran/pr100981-2.f90 index 12836d4ad4c..9814224b5e9 100644 --- a/libgomp/testsuite/libgomp.fortran/pr100981-2.f90 +++ b/libgomp/testsuite/libgomp.fortran/pr100981-2.f90 @@ -9,6 +9,8 @@ complex function cdcdot(n, cx) double precision :: dsdotr, dsdoti, dt1, dt3 kx = 1 + dsdotr = 0 + dsdoti = 0 do i = 1, n dt1 = real(cx(kx)) dt3 = aimag(cx(kx))