public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-66996-4@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2015-07-24 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 15:38 hjl.tools at gmail dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-66996-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).