public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/58257] New: [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops
@ 2013-08-28 9:55 jakub at gcc dot gnu.org
2013-08-28 10:07 ` [Bug middle-end/58257] " jakub at gcc dot gnu.org
2013-08-28 10:11 ` jakub at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-28 9:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58257
Bug ID: 58257
Summary: [4.8/4.9 Regression] Bogus warning with OpenMP
collapsed loops
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Keywords: openmp
Severity: normal
Priority: P3
Component: middle-end
Assignee: jakub at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -Wall" } */
int
foo (int n)
{
int a[10][10];
int x, y;
#pragma omp parallel for collapse(2)
for (x = 0; x < n; x++)/* { dg-bogus "may be used uninitialized in this
function" } */
for (y = 0; y < n; y++)
a[x][y] = x + y * y;
return a[0][0];
}
yields:
rh999674.c: In function ‘<built-in>’:
rh999674.c:10:3: warning: ‘.count.6’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
rh999674.c:10:3: note: ‘.count.6’ was declared here
rh999674.c:10:3: warning: ‘.count.7’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
rh999674.c:10:3: note: ‘.count.7’ was declared here
>From gcc-bugs-return-428523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 28 10:04:00 2013
Return-Path: <gcc-bugs-return-428523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20685 invoked by alias); 28 Aug 2013 10:04:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20584 invoked by uid 48); 28 Aug 2013 10:03:57 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/58257] [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops
Date: Wed, 28 Aug 2013 10:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work everconfirmed cf_known_to_fail
Message-ID: <bug-58257-4-pu527czhrC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58257-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58257-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg01447.txt.bz2
Content-length: 676
http://gcc.gnu.org/bugzilla/show_bug.cgi?idX257
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-08-28
CC| |mpolacek at gcc dot gnu.org
Known to work| |4.7.3
Ever confirmed|0 |1
Known to fail| |4.8.2, 4.9.0
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/58257] [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops
2013-08-28 9:55 [Bug middle-end/58257] New: [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops jakub at gcc dot gnu.org
@ 2013-08-28 10:07 ` jakub at gcc dot gnu.org
2013-08-28 10:11 ` jakub at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-28 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58257
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/58257] [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops
2013-08-28 9:55 [Bug middle-end/58257] New: [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops jakub at gcc dot gnu.org
2013-08-28 10:07 ` [Bug middle-end/58257] " jakub at gcc dot gnu.org
@ 2013-08-28 10:11 ` jakub at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-28 10:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58257
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Aug 28 10:08:59 2013
New Revision: 202049
URL: http://gcc.gnu.org/viewcvs?rev=202049&root=gcc&view=rev
Log:
PR middle-end/58257
* omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
* c-c++-common/gomp/pr58257.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/gomp/pr58257.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/gcc/testsuite/ChangeLog
Author: jakub
Date: Wed Aug 28 10:10:43 2013
New Revision: 202050
URL: http://gcc.gnu.org/viewcvs?rev=202050&root=gcc&view=rev
Log:
PR middle-end/58257
* omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
* c-c++-common/gomp/pr58257.c: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/gomp/pr58257.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/omp-low.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-28 10:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-28 9:55 [Bug middle-end/58257] New: [4.8/4.9 Regression] Bogus warning with OpenMP collapsed loops jakub at gcc dot gnu.org
2013-08-28 10:07 ` [Bug middle-end/58257] " jakub at gcc dot gnu.org
2013-08-28 10:11 ` jakub at gcc dot gnu.org
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).