public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4581] testsuite: Avoid uninit var in pr60510.f [PR111427]
@ 2023-10-12 5:06 Kewen Lin
0 siblings, 0 replies; only message in thread
From: Kewen Lin @ 2023-10-12 5:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:610b845a426e26fa86724e5c9d6f74c7a4baf741
commit r14-4581-g610b845a426e26fa86724e5c9d6f74c7a4baf741
Author: Kewen Lin <linkw@linux.ibm.com>
Date: Thu Oct 12 00:04:58 2023 -0500
testsuite: Avoid uninit var in pr60510.f [PR111427]
The uninitialized variable a in pr60510.f can cause
some random failures as exposed in PR111427. This
patch is to make it initialized accordingly.
PR testsuite/111427
gcc/testsuite/ChangeLog:
* gfortran.dg/vect/pr60510.f (test): Init variable a.
Diff:
---
gcc/testsuite/gfortran.dg/vect/pr60510.f | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gfortran.dg/vect/pr60510.f b/gcc/testsuite/gfortran.dg/vect/pr60510.f
index ecd50dd5586..6cae82acece 100644
--- a/gcc/testsuite/gfortran.dg/vect/pr60510.f
+++ b/gcc/testsuite/gfortran.dg/vect/pr60510.f
@@ -17,6 +17,7 @@
program test
real*8 x(1024),y(1024),a
+ a = 0.0
do i=1,1024
x(i) = i
y(i) = i+1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-12 5:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 5:06 [gcc r14-4581] testsuite: Avoid uninit var in pr60510.f [PR111427] Kewen Lin
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).