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 ipa/60266] [4.9 Regression] ICE: in ipa_get_parm_lattices, at ipa-cp.c:261 during LibreOffice LTO build
Date: Wed, 19 Feb 2014 14:08:00 -0000	[thread overview]
Message-ID: <bug-60266-4-W6klldyDrT@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60266-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60266

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
It's caused by mixing -O0 and -O2 with LTO:

markus@x4 ~S % cat TableCopyHelper.ii
namespace com {
namespace sun {
namespace star {}
}
}
namespace css = com::sun::star;
namespace com {
namespace sun {
namespace star {
class A {};
template <class interface_type> class C : A {
public:
  interface_type *operator->();
};
}
}
typedef struct {
} uno_Any;
namespace sun {
namespace star {
class D : uno_Any {};
class B {
  virtual css::D m_fn1();
  virtual void m_fn2();
  virtual void m_fn3();
};
class F : css::B {
  virtual int m_fn4();
};
namespace sdb {
namespace application {
class XCopyTableWizard : css::F {
public:
  virtual void m_fn5();
  virtual void m_fn6();
};
}
}
}
}
using namespace com::sun::star;
using namespace com::sun::star::sdb::application;
void fn1(C<int> &&) try {
  C<XCopyTableWizard> a;
  a->m_fn6();
}
catch (int &) {
}
}


markus@x4 ~S % cat copytablewizard.ii
namespace com {
namespace sun {
namespace star {
class A {};
namespace sdb {
namespace application {
class XCopyTableWizard {
  virtual int m_fn1();
};
}
}
}
}
}
class OPropertyArrayUsageHelper {
public:
  virtual ~OPropertyArrayUsageHelper();
};
using com::sun::star::A;
using com::sun::star::sdb::application::XCopyTableWizard;
class CopyTableWizard : XCopyTableWizard, OPropertyArrayUsageHelper {
  ~CopyTableWizard();
};
CopyTableWizard::~CopyTableWizard() try {}

catch (A &) {
}


markus@x4 ~S % g++ -flto -fPIC -O0 -c copytablewizard.ii
markus@x4 ~S % g++ -flto -fPIC -std=gnu++11 -O2 -c TableCopyHelper.ii
markus@x4 ~S % g++ -w -r -nostdlib -O2 TableCopyHelper.o copytablewizard.o
lto1: internal compiler error: in ipa_get_parm_lattices, at ipa-cp.c:261
0x50c7ac ipa_get_parm_lattices
        ../../gcc/gcc/ipa-cp.c:261
0xc41824 ipa_get_parm_lattices
        ../../gcc/gcc/ipa-cp.c:261
0xc41824 propagate_constants_accross_call
        ../../gcc/gcc/ipa-cp.c:1443
0xc44308 propagate_constants_topo
        ../../gcc/gcc/ipa-cp.c:2231
0xc44308 ipcp_propagate_stage
        ../../gcc/gcc/ipa-cp.c:2327
0xc44308 ipcp_driver
        ../../gcc/gcc/ipa-cp.c:3705
0xc44308 execute
        ../../gcc/gcc/ipa-cp.c:3804
Please submit a full bug report,
with preprocessed source if appropriate.

(I think the ODR violation got introduced during reduction.)


  parent reply	other threads:[~2014-02-19 14:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-60266-4@http.gcc.gnu.org/bugzilla/>
2014-02-19  9:09 ` rguenth at gcc dot gnu.org
2014-02-19 14:08 ` trippels at gcc dot gnu.org [this message]
2014-02-21 14:55 ` jamborm at gcc dot gnu.org
2014-02-24 12:40 ` jamborm at gcc dot gnu.org
2014-02-24 12:46 ` jamborm 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-60266-4-W6klldyDrT@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).