public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/65193] New: [4.9 Regression] ICE: Segmentation fault with -g -flto
Date: Tue, 24 Feb 2015 14:59:00 -0000	[thread overview]
Message-ID: <bug-65193-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 65193
           Summary: [4.9 Regression] ICE: Segmentation fault with -g -flto
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

Boost doesn't build with gcc-4.9 and -flto -g:

markus@x4 testcase % cat nexttowardl.ii
void frexp (int, int *);
namespace std
{
int ldexp (int, int);
struct A
{
};
template <class T> T get_min_shift_value ();
template <class> struct min_shift_initializer
{
  struct B
  {
    B () { get_min_shift_value<long double> (); }
  } static const b;
  static void
  m_fn1 ()
  {
    b;
  }
};
template <class T>
const typename min_shift_initializer<T>::B min_shift_initializer<T>::b;
template <class T>
inline T
get_min_shift_value ()
{
  using std::ldexp;
  static T c = ldexp (0, 0);
  min_shift_initializer<T>::m_fn1;
}
template <class T, class Policy>
void
float_next_imp (T p1, Policy p2)
{
  using std::ldexp;
  int d;
  float_next (0, p2);
  frexp (p1, &d);
}
template <class T, class Policy>
int
float_next (const T &p1, Policy &p2)
{
  float_next_imp (p1, p2);
}
template <class T, class Policy> void float_prior_imp (T, Policy)
{
  get_min_shift_value<T> ();
}
template <class T, class Policy> int float_prior (T, Policy)
{
  float_prior_imp (static_cast<T> (0), 0);
}
template <class T, class U, class Policy>
void
nextafter (T p1, U p2, Policy p3)
{
  p2 ? float_next (0, p3) : float_prior (p1, 0);
}
long double e;
int f;
void
nextafter ()
{
  nextafter (e, f, A ());
}
}
markus@x4 testcase % g++ -fPIC -flto -shared -O2 -g nexttowardl.ii
nexttowardl.ii: In function ‘float_next_imp’:
nexttowardl.ii:33:1: internal compiler error: Segmentation fault
 float_next_imp (T p1, Policy p2)
 ^
0x814e6f crash_signal
        ../../gcc/gcc/toplev.c:337
0x91e78b mark_use_processed
        ../../gcc/gcc/tree-ssa-sccvn.c:2708
0x91e78b visit_use
        ../../gcc/gcc/tree-ssa-sccvn.c:3366
0x92164c process_scc
        ../../gcc/gcc/tree-ssa-sccvn.c:3718
0x92164c extract_and_process_scc_for_name
        ../../gcc/gcc/tree-ssa-sccvn.c:3802
0x92164c DFS
        ../../gcc/gcc/tree-ssa-sccvn.c:3854
0x92164c run_scc_vn(vn_lookup_kind)
        ../../gcc/gcc/tree-ssa-sccvn.c:4097
0x8fe71a execute_fre
        ../../gcc/gcc/tree-ssa-pre.c:4839
0x8fe71a execute
        ../../gcc/gcc/tree-ssa-pre.c:4890
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.
lto-wrapper: /var/tmp/gcc_test_/usr/local/bin/g++ returned 1 exit status
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
>From gcc-bugs-return-478327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 24 14:37:15 2015
Return-Path: <gcc-bugs-return-478327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116235 invoked by alias); 24 Feb 2015 14:37:15 -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 116196 invoked by uid 48); 24 Feb 2015 14:37:12 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/65193] [4.9 Regression] ICE: Segmentation fault with -g -flto
Date: Tue, 24 Feb 2015 15:00: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: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone cf_known_to_fail
Message-ID: <bug-65193-4-MTDELi7iaR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65193-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65193-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-02/txt/msg02659.txt.bz2
Content-length: 415

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.8.4, 5.0
   Target Milestone|---                         |4.9.3
      Known to fail|                            |4.9.2


             reply	other threads:[~2015-02-24 14:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24 14:59 trippels at gcc dot gnu.org [this message]
2015-02-25 12:27 ` [Bug lto/65193] " rguenth at gcc dot gnu.org
2015-02-26 15:18 ` [Bug tree-optimization/65193] " rguenth at gcc dot gnu.org
2015-02-27  9:51 ` rguenth at gcc dot gnu.org
2015-02-27  9:57 ` rguenth at gcc dot gnu.org
2015-02-27 10:55 ` rguenth at gcc dot gnu.org
2015-02-27 11:17 ` rguenth at gcc dot gnu.org
2015-02-27 12:25 ` 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-65193-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).