public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-1355] testsuite: Fix up libgomp.fortran/pr100981-2.f90 testcase [PR100981]
Date: Thu, 10 Jun 2021 07:32:33 +0000 (GMT)	[thread overview]
Message-ID: <20210610073233.4D35E3AA9834@sourceware.org> (raw)

https://gcc.gnu.org/g:7d19a50ea1e5e9858bb7cd258fa4f9db89ecfcb2

commit r12-1355-g7d19a50ea1e5e9858bb7cd258fa4f9db89ecfcb2
Author: Jakub Jelinek <jakub@redhat.com>
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  <jakub@redhat.com>
    
            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))


                 reply	other threads:[~2021-06-10  7:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210610073233.4D35E3AA9834@sourceware.org \
    --to=jakub@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).