From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1720 invoked by alias); 24 Jul 2015 15:38:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1683 invoked by uid 48); 24 Jul 2015 15:38:01 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66996] New: [6 Regression] defined but not used [-Wunused-function] Date: Fri, 24 Jul 2015 15:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg02131.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66996 Bug ID: 66996 Summary: [6 Regression] defined but not used [-Wunused-function] Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-6 bin]$ cat x.cc=20 namespace { class Foo { public: ~Foo (); }; Foo::~Foo () { } } [hjl@gnu-6 bin]$ ./g++ -S -Wall x.cc -O2=20 x.cc:10:1: warning: =E2=80=98{anonymous}::Foo::~Foo()=E2=80=99 defined but = not used [-Wunused-function] Foo::~Foo () ^ [hjl@gnu-6 bin]$ >>From gcc-bugs-return-493242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jul 24 15:46:12 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34281 invoked by alias); 24 Jul 2015 15:46:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31214 invoked by uid 48); 24 Jul 2015 15:46:07 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/66997] New: outer loop reduction fails to parallelize with graphite Date: Fri, 24 Jul 2015 15:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: 2015-07/txt/msg02132.txt.bz2 Content-length: 1311 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66997 Bug ID: 66997 Summary: outer loop reduction fails to parallelize with graphite Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- When running autopar.exp with --target_board=unix/-ffast-math/-floop-parallelize-all, we run into: ... FAIL: gcc.dg/autopar/uns-outer-6.c scan-tree-dump-times optimized "loopfn" 4 FAIL: gcc.dg/autopar/uns-outer-6.c scan-tree-dump-times parloops "parallelizing outer loop" 1 ... [ We can drop -ffast-math once https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01863.html has been committed. ] relevant function in uns-outer-6.c: ... void __attribute__((noinline)) parloop (int N) { int i, j; unsigned int sum; /* Outer loop reduction, outerloop is parallelized. */ sum=0; for (i = 0; i < N; i++) { for (j = 0; j < N; j++) y[i]=x[i][j]; sum += y[i]; } g_sum = sum; } ... we find in the parloops dump: ... Trying loop 3 as candidate loop 3 is not innermost loop is not parallel according to graphite ...