public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66996] New: [6 Regression] defined but not used [-Wunused-function]
@ 2015-07-24 15:38 hjl.tools at gmail dot com
  2015-07-24 15:59 ` [Bug c++/66996] " trippels at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-24 15:38 UTC (permalink / raw)
  To: gcc-bugs

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

            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 
namespace
{

class Foo
{
public:
  ~Foo ();
};

Foo::~Foo ()
{
}
}
[hjl@gnu-6 bin]$ ./g++ -S -Wall x.cc -O2 
x.cc:10:1: warning: ‘{anonymous}::Foo::~Foo()’ 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: <gcc-bugs-return-493242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <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 31214 invoked by uid 48); 24 Jul 2015 15:46:07 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.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: <bug-66997-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: 2015-07/txt/msg02132.txt.bz2
Content-length: 1311

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf997

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/66996] [6 Regression] defined but not used [-Wunused-function]
  2015-07-24 15:38 [Bug c++/66996] New: [6 Regression] defined but not used [-Wunused-function] hjl.tools at gmail dot com
@ 2015-07-24 15:59 ` trippels at gcc dot gnu.org
  2015-07-24 16:00 ` hjl.tools at gmail dot com
  2015-07-27  8:19 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-24 15:59 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-24
                 CC|                            |aldyh at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org,
                   |                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r224161 aka debug-early branch merge.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/66996] [6 Regression] defined but not used [-Wunused-function]
  2015-07-24 15:38 [Bug c++/66996] New: [6 Regression] defined but not used [-Wunused-function] hjl.tools at gmail dot com
  2015-07-24 15:59 ` [Bug c++/66996] " trippels at gcc dot gnu.org
@ 2015-07-24 16:00 ` hjl.tools at gmail dot com
  2015-07-27  8:19 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-24 16:00 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/66996] [6 Regression] defined but not used [-Wunused-function]
  2015-07-24 15:38 [Bug c++/66996] New: [6 Regression] defined but not used [-Wunused-function] hjl.tools at gmail dot com
  2015-07-24 15:59 ` [Bug c++/66996] " trippels at gcc dot gnu.org
  2015-07-24 16:00 ` hjl.tools at gmail dot com
@ 2015-07-27  8:19 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-27  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yeah, looks correct to me, too.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-27  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 15:38 [Bug c++/66996] New: [6 Regression] defined but not used [-Wunused-function] hjl.tools at gmail dot com
2015-07-24 15:59 ` [Bug c++/66996] " trippels at gcc dot gnu.org
2015-07-24 16:00 ` hjl.tools at gmail dot com
2015-07-27  8:19 ` rguenth 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).