[Bug libgomp/96198] new test case libgomp.c/loop-21.c in r11-2077

tschwinge at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 15 07:59:58 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96198

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tschwinge at gcc dot gnu.org
           Keywords|                            |openmp
   Last reconfirmed|2020-07-14 00:00:00         |2020-7-15

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
> g:f418bd4b92a03ee0ec0fe4cfcd896e86e11ac2cf, r11-2077 

(No patch submission email for that one, by the way?)


(In reply to Jakub Jelinek from comment #2)
> I think
> --- gcc/omp-general.c.jj	2020-07-14 12:20:01.520110629 +0200
> +++ gcc/omp-general.c	2020-07-14 20:54:48.104237522 +0200
> [...]
> should fix that

ACK.  (But I've only tested this one testcase.)


Not sure if that's related here, but compiling with '-O2', we see:

    libgomp.c/loop-21.c: In function ‘main._omp_fn.11’:
    libgomp.c/loop-21.c:211:11: warning: ‘.count.340’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
      211 |   #pragma omp parallel for collapse(2) lastprivate (i, j, x)
reduction(+:niters)
          |           ^~~
    libgomp.c/loop-21.c: In function ‘main._omp_fn.9’:
    libgomp.c/loop-21.c:175:11: warning: ‘.count.327’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
      175 |   #pragma omp parallel for collapse(2) lastprivate (i, j, x)
reduction(+:niters)
          |           ^~~
    libgomp.c/loop-21.c: In function ‘main._omp_fn.7’:
    libgomp.c/loop-21.c:139:11: warning: ‘.count.314’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
      139 |   #pragma omp parallel for collapse(2) lastprivate (i, j, x)
reduction(+:niters)
          |           ^~~
    libgomp.c/loop-21.c: In function ‘main._omp_fn.5’:
    libgomp.c/loop-21.c:103:11: warning: ‘.count.301’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
      103 |   #pragma omp parallel for collapse(2) lastprivate (i, j, x)
reduction(+:niters)
          |           ^~~
    libgomp.c/loop-21.c: In function ‘main._omp_fn.3’:
    libgomp.c/loop-21.c:67:11: warning: ‘.count.288’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
       67 |   #pragma omp parallel for collapse(2) lastprivate (i, j, x)
reduction(+:niters)
          |           ^~~
    libgomp.c/loop-21.c: In function ‘main._omp_fn.1’:
    libgomp.c/loop-21.c:31:11: warning: ‘.count.275’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
       31 |   #pragma omp parallel for collapse(2) lastprivate (i, j, x)
reduction(+:niters)
          |           ^~~


More information about the Gcc-bugs mailing list