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

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).