public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56883] New: error openmp parallel for order
@ 2013-04-08 21:24 daffra.claudio at gmail dot com
2013-04-09 7:44 ` [Bug c++/56883] " mpolacek at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: daffra.claudio at gmail dot com @ 2013-04-08 21:24 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4060 bytes --]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56883
Bug #: 56883
Summary: error openmp parallel for order
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: daffra.claudio@gmail.com
Created attachment 29831
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29831
geeratated by compiler
claudio@mint ~/chtulu $ g++ -fopenmp master.cpp -o master
master.cpp: In function â<built-in>â:
master.cpp:179:17: internal compiler error: in expand_gimple_stmt_1, at
cfgexpand.c:2163
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccEQsp0b.out file, please attach this to
your bugreport.
ERROR
template<class T>
void DimVector ( Vector4d(T) &dc, int x,int y,int z,int w )
{
register int i,j,k;
dc.resize(x);
#pragma omp parallel for ordered shared(i,j,k)
for ( i = 0; i < x; ++i)
{
dc[i].resize(y);
#pragma omp parallel for ordered shared(i,j,k)
for ( j = 0; j < y; ++j)
{
dc[i][j].resize(z);
#pragma omp parallel for ordered shared(i,j,k)
for ( k = 0; k < z; ++k)
{
dc[i][j][k].resize(w);
}
}
}
}
>From gcc-bugs-return-419543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Apr 08 21:26:55 2013
Return-Path: <gcc-bugs-return-419543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19289 invoked by alias); 8 Apr 2013 21:26:55 -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 19257 invoked by uid 48); 8 Apr 2013 21:26:52 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/56866] gcc 4.7.x/gcc-4.8.x with '-O3 -march½ver2' misscompiles glibc-2.17/crypt/sha512.c
Date: Mon, 08 Apr 2013 21:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56866-4-CTg4ZB9mpM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56866-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56866-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-04/txt/msg00688.txt.bz2
Content-length: 787
http://gcc.gnu.org/bugzilla/show_bug.cgi?idV866
--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-08 21:26:51 UTC ---
> Created attachment 29820 [details]
> tar-file with small set of c-files to reproduce the problem
I can't recreate the problem with your script (to compile successfully, I
removed -static from the command). All binaries were executed without problems
on corei7, with provided -march and -O2 flags. The binaries were linked with
glibc-2.16, though.
Please follow the instructions at [1] to provide a *minimized* runtime testcase
that exposes the failure, without dependencies on system libc.
BTW: From your report it is not clear if the problem is indeed in the compiler,
or in the system glibc.
[1] http://gcc.gnu.org/bugs/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/56883] error openmp parallel for order
2013-04-08 21:24 [Bug c++/56883] New: error openmp parallel for order daffra.claudio at gmail dot com
@ 2013-04-09 7:44 ` mpolacek at gcc dot gnu.org
2013-04-09 8:25 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-04-09 7:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56883
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-04-09
CC| |mpolacek at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-09 07:44:52 UTC ---
Confirmed. With trunk:
master.cpp: In function ‘<built-in>’:
master.cpp:208:1: error: non-register as LHS of unary operation
j = (int) .istart0.214_7;
master.cpp:208:1: error: non-register as LHS of binary operation
j = j.216_24 + 1;
master.cpp:208:1: error: invalid operands in gimple comparison
if (j < _9)
master.cpp:208:1: internal compiler error: verify_gimple failed
0xc81dcc verify_gimple_in_cfg(function*)
/home/marek/src/gcc/gcc/tree-cfg.c:4769
0xb64e21 execute_function_todo
/home/marek/src/gcc/gcc/passes.c:1963
0xb64179 do_per_function
/home/marek/src/gcc/gcc/passes.c:1701
0xb64f45 execute_todo
/home/marek/src/gcc/gcc/passes.c:1996
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-419564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 09 07:52:10 2013
Return-Path: <gcc-bugs-return-419564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8982 invoked by alias); 9 Apr 2013 07:52:10 -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 8847 invoked by uid 48); 9 Apr 2013 07:52:07 -0000
From: "mikpe at it dot uu.se" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56888] memcpy implementation optimized as a call to memcpy
Date: Tue, 09 Apr 2013 07:52: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-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikpe at it dot uu.se
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: CC
Message-ID: <bug-56888-4-8J3SiSsiew@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56888-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56888-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-04/txt/msg00709.txt.bz2
Content-length: 556
http://gcc.gnu.org/bugzilla/show_bug.cgi?idV888
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2013-04-09 07:52:07 UTC ---
I can reproduce the problem on x86-64 Linux with 4.8-20130404. This issue
would be fatal for one of my projects which includes an embedded libc.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/56883] error openmp parallel for order
2013-04-08 21:24 [Bug c++/56883] New: error openmp parallel for order daffra.claudio at gmail dot com
2013-04-09 7:44 ` [Bug c++/56883] " mpolacek at gcc dot gnu.org
@ 2013-04-09 8:25 ` jakub at gcc dot gnu.org
2013-04-09 9:25 ` [Bug middle-end/56883] " jakub at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-09 8:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56883
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-09 08:25:17 UTC ---
This testcase is invalid OpenMP, the loop iteration variables are predetermined
private and thus can't be specified in shared clause.
That said,
void
foo (int ***x)
{
int i, j, k;
#pragma omp parallel for
for (i = 0; i < 10; ++i)
{
#pragma omp parallel shared(j)
#pragma omp for
for (j = 0; j < 10; ++j)
{
#pragma omp parallel for
for (k = 0; k < 10; ++k)
x[i][j][k] = k;
}
}
}
is valid and still ICEs. Will have a look.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56883] error openmp parallel for order
2013-04-08 21:24 [Bug c++/56883] New: error openmp parallel for order daffra.claudio at gmail dot com
2013-04-09 7:44 ` [Bug c++/56883] " mpolacek at gcc dot gnu.org
2013-04-09 8:25 ` jakub at gcc dot gnu.org
@ 2013-04-09 9:25 ` jakub at gcc dot gnu.org
2013-04-10 6:53 ` jakub at gcc dot gnu.org
2021-09-18 20:07 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-09 9:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56883
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-09 09:25:20 UTC ---
Created attachment 29839
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29839
gcc49-pr56883.patch
Untested fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56883] error openmp parallel for order
2013-04-08 21:24 [Bug c++/56883] New: error openmp parallel for order daffra.claudio at gmail dot com
` (2 preceding siblings ...)
2013-04-09 9:25 ` [Bug middle-end/56883] " jakub at gcc dot gnu.org
@ 2013-04-10 6:53 ` jakub at gcc dot gnu.org
2021-09-18 20:07 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-10 6:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56883
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-10 06:53:47 UTC ---
Author: jakub
Date: Wed Apr 10 06:35:48 2013
New Revision: 197661
URL: http://gcc.gnu.org/viewcvs?rev=197661&root=gcc&view=rev
Log:
Backported from mainline
2013-04-09 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56883
* omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
expand_omp_for_static_chunk): Use simple_p = true in
force_gimple_operand_gsi calls when assigning to addressable decls.
* c-c++-common/gomp/pr56883.c: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/gomp/pr56883.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] 6+ messages in thread
* [Bug middle-end/56883] error openmp parallel for order
2013-04-08 21:24 [Bug c++/56883] New: error openmp parallel for order daffra.claudio at gmail dot com
` (3 preceding siblings ...)
2013-04-10 6:53 ` jakub at gcc dot gnu.org
@ 2021-09-18 20:07 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-18 20:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56883
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
Target Milestone|--- |4.8.1
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed so closing.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-09-18 20:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-08 21:24 [Bug c++/56883] New: error openmp parallel for order daffra.claudio at gmail dot com
2013-04-09 7:44 ` [Bug c++/56883] " mpolacek at gcc dot gnu.org
2013-04-09 8:25 ` jakub at gcc dot gnu.org
2013-04-09 9:25 ` [Bug middle-end/56883] " jakub at gcc dot gnu.org
2013-04-10 6:53 ` jakub at gcc dot gnu.org
2021-09-18 20:07 ` pinskia 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).