public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/63563] New: [4.9/5 Regression] ICE: in vectorizable_store, at tree-vect-stmts.c:5106 with -mavx2
@ 2014-10-16 16:18 trippels at gcc dot gnu.org
  2014-10-17 12:34 ` [Bug tree-optimization/63563] " trippels at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-10-16 16:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63563
           Summary: [4.9/5 Regression] ICE: in vectorizable_store, at
                    tree-vect-stmts.c:5106 with -mavx2
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

A gentoo user emailed me the following testcase:

markus@x4 ~ % cat blub.ii
struct A
{
  unsigned long m_count;
  unsigned long m_sum;
  unsigned long m_min;
  unsigned long m_max;
  void
  m_fn1 (A *p1)
  {
    m_count = m_sum = m_min = p1->m_min;
    if (__builtin_expect (m_max, 0))
      m_max = p1->m_max;
  }
};
struct B
{
  A m_stat[];
  void
  m_fn2 ()
  {
    A *a = &m_stat[0];
    A b, c = m_stat[0];
    for (; a < &b; a++)
      a->m_fn1 (&c);
  }
};
struct C
{
  B m_lock_stat;
  void
  m_fn3 ()
  {
    m_lock_stat.m_fn2 ();
  }
};
struct PFS_table_share
{
  C m_table_stat;
} d;
void
PFS_tablesafe_aggregate_io ()
{
  d.m_table_stat.m_fn3 ();
}

markus@x4 ~ % g++ -O3 -mavx2 -c blub.ii
blub.ii: In function ‘void PFS_tablesafe_aggregate_io()’:
blub.ii:41:1: internal compiler error: in vectorizable_store, at
tree-vect-stmts.c:5106
 PFS_tablesafe_aggregate_io ()
 ^
0xdeba83 vectorizable_store
        ../../gcc/gcc/tree-vect-stmts.c:5106
0xdf0371 vect_analyze_stmt(gimple_statement_base*, bool*, _slp_tree*)
        ../../gcc/gcc/tree-vect-stmts.c:7105
0xdfbc91 vect_analyze_loop_operations
        ../../gcc/gcc/tree-vect-loop.c:1505
0xdfbc91 vect_analyze_loop_2
        ../../gcc/gcc/tree-vect-loop.c:1766
0xdfbc91 vect_analyze_loop(loop*)
        ../../gcc/gcc/tree-vect-loop.c:1864
0xe113f7 vectorize_loops()
        ../../gcc/gcc/tree-vectorizer.c:432
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-464271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 16 16:19:15 2014
Return-Path: <gcc-bugs-return-464271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8003 invoked by alias); 16 Oct 2014 16:19:14 -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 7952 invoked by uid 48); 16 Oct 2014 16:19:11 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/63546] ICE: Segmentation fault in lto_get_decl_name_mapping on ppc64
Date: Thu, 16 Oct 2014 16:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
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:
Message-ID: <bug-63546-4-pR4ZD55AyB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63546-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63546-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: 2014-10/txt/msg01292.txt.bz2
Content-length: 363

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
When this code is invoked, DECL_RTL for some variable might not be set yet,
even when it will or might be set later on (e.g. TLS vars), e.g. when compiling
some other function.
So, we need some RTL for it but not set the rtl on the actual decl.


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

end of thread, other threads:[~2014-10-21 12:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16 16:18 [Bug tree-optimization/63563] New: [4.9/5 Regression] ICE: in vectorizable_store, at tree-vect-stmts.c:5106 with -mavx2 trippels at gcc dot gnu.org
2014-10-17 12:34 ` [Bug tree-optimization/63563] " trippels at gcc dot gnu.org
2014-10-20  8:51 ` jakub at gcc dot gnu.org
2014-10-20 14:39 ` jakub at gcc dot gnu.org
2014-10-21 12:28 ` jakub at gcc dot gnu.org
2014-10-21 12:28 ` jakub at gcc dot gnu.org
2014-10-21 13:53 ` jakub 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).