public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/52722] New: ICE in lto_output_varpool_node
@ 2012-03-26 12:27 malcolm.parsons at gmail dot com
  2012-03-26 12:35 ` [Bug lto/52722] " malcolm.parsons at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: malcolm.parsons at gmail dot com @ 2012-03-26 12:27 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52722
           Summary: ICE in lto_output_varpool_node
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: malcolm.parsons@gmail.com


$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/i2e/Apps-mephisto/gcc-4.7.0/libexec/gcc/x86_64-debian-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-debian-linux-gnu
Configured with: /home/i2e/g++/gcc-4.7.0/configure
--prefix=/home/i2e/Apps-mephisto/gcc-4.7.0 --disable-werror
--enable-gold=default --enable-lto --enable-plugins --with-plugin-ld=ld
--with-sysroot=/home/i2e/Apps-mephisto/sysroot/ --enable-languages=c,c++
--enable-stage1-languages=c,c++ --enable-libstdcxx-debug
--build=x86_64-centos-linux-gnu --host=x86_64-centos-linux-gnu
--target=x86_64-debian-linux-gnu --program-prefix=
--with-stage1-ldflags='-static-libstdc++ -static-libgcc'
Thread model: posix
gcc version 4.7.0 (GCC)

$ g++ -save-temps -c -flto test.cpp && g++ -o test -O2 -flto test.o
lto1: internal compiler error: in lto_output_varpool_node, at lto-cgraph.c:595
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: g++ returned 1 exit status
/home/i2e/Apps-mephisto/gcc-4.7.0/lib/gcc/x86_64-debian-linux-gnu/4.7.0/../../../../x86_64-debian-linux-gnu/bin/ld:
fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

See also bug 51765 comment 3.


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
@ 2012-03-26 12:35 ` malcolm.parsons at gmail dot com
  2012-03-26 13:01 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: malcolm.parsons at gmail dot com @ 2012-03-26 12:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Malcolm Parsons <malcolm.parsons at gmail dot com> 2012-03-26 12:27:46 UTC ---
Created attachment 26998
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26998
gzipped preprocessed source


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
  2012-03-26 12:35 ` [Bug lto/52722] " malcolm.parsons at gmail dot com
@ 2012-03-26 13:01 ` rguenth at gcc dot gnu.org
  2012-03-26 14:02 ` hubicka at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 12:48:35 UTC ---
I can't reproduce the issue with the attached testcase but the similar looking
ICE in PR51765 can be reproduced with

gcc> make check-g++ RUNTESTFLAGS="--target_board=unix/-flto
dg.exp=cpp0x/variadic-init.C"

Honza, can you have a look?


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
  2012-03-26 12:35 ` [Bug lto/52722] " malcolm.parsons at gmail dot com
  2012-03-26 13:01 ` rguenth at gcc dot gnu.org
@ 2012-03-26 14:02 ` hubicka at gcc dot gnu.org
  2012-03-26 14:14 ` markus at trippelsdorf dot de
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-03-26 14:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-03-26
         AssignedTo|unassigned at gcc dot       |hubicka at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
                   ` (2 preceding siblings ...)
  2012-03-26 14:02 ` hubicka at gcc dot gnu.org
@ 2012-03-26 14:14 ` markus at trippelsdorf dot de
  2012-04-09 18:58 ` hubicka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-03-26 14:14 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-03-26 14:05:56 UTC ---
Somewhat reduced testcase:

 % cat test.ii
namespace std
{
namespace tr1
{
template < int,
         typename ... >struct _Tuple_impl;
template < int _Idx > struct _Tuple_impl <_Idx > {
};
template < typename ... _Elements > class tuple:_Tuple_impl < 0,
    _Elements ... >
{
};
}
}
namespace testing
{
namespace
{
class TestFactoryBase
{
};
}
namespace internal
{
template < class TestClass >
class ParameterizedTestFactory:TestFactoryBase
{
public:
    typedef typename TestClass::ParamType ParamType;
    ParameterizedTestFactory (ParamType):parameter_ () {
        TestClass::SetParam (0);
    }
    ParamType parameter_;
};
template < class > class TestMetaFactoryBase
{
};
template < class TestCase > class TestMetaFactory:public TestMetaFactoryBase <
    typename TestCase::
    ParamType >
{
    typedef typename TestCase::ParamType ParamType;
    virtual TestFactoryBase *CreateTestFactory (ParamType p1) {
        new ParameterizedTestFactory < TestCase > (p1);
    }
};
template < class TestCase > class ParameterizedTestCaseInfo
{
public:
    typedef typename TestCase::ParamType ParamType;
    void AddTestPattern (char *, char *,
                         TestMetaFactoryBase < ParamType > *) {
    }
};
class ParameterizedTestCaseRegistry
{
public:
    template < class TestCase > ParameterizedTestCaseInfo < TestCase >
    *GetTestCasePatternHolder (char *, char *, int) {
    }
};
}
class Test
{
};
class UnitTest
{
public:
    static UnitTest *GetInstance ();
    internal::
    ParameterizedTestCaseRegistry & parameterized_test_registry ();
};

template < typename T > class WithParamInterface
{
public:
    typedef T ParamType;
    static void SetParam (ParamType *) {
        parameter_ = 0;
    }
    static const ParamType *parameter_;
};
template < typename T > const T *WithParamInterface < T >::parameter_;
}

class Foo:
    testing::Test,
    public
    testing::WithParamInterface <
    std::tr1::tuple < >>
{
};
class
    Foo_Init_Test:
    public
    Foo
{
    static int
    AddToRegistry () {
        testing::UnitTest::GetInstance ()->parameterized_test_registry ().
        GetTestCasePatternHolder < Foo > ("Foo", "test.cpp",
                                          0)->AddTestPattern ("Foo", "Init",
                                                  new testing::
                                                  internal::
                                                  TestMetaFactory <
                                                  Foo_Init_Test >);
    }
    static int
    gtest_registering_dummy_;
};

int
Foo_Init_Test::gtest_registering_dummy_ = Foo_Init_Test::AddToRegistry ();

 % g++ -o /dev/null -w -std=c++11 -flto test.ii
lto1: internal compiler error: in lto_output_varpool_node, at lto-cgraph.c:595
Please submit a full bug report,
with preprocessed source if appropriate.


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
                   ` (3 preceding siblings ...)
  2012-03-26 14:14 ` markus at trippelsdorf dot de
@ 2012-04-09 18:58 ` hubicka at gcc dot gnu.org
  2012-04-09 23:41 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-04-09 18:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-04-09 18:57:49 UTC ---
This seems to be another manifestation of the alias partitioning issues.  I am
testing a fix.
Honza


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
                   ` (4 preceding siblings ...)
  2012-04-09 18:58 ` hubicka at gcc dot gnu.org
@ 2012-04-09 23:41 ` hubicka at gcc dot gnu.org
  2012-04-10 15:08 ` hubicka at gcc dot gnu.org
  2021-12-24  9:00 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-04-09 23:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-04-09 23:39:15 UTC ---
Author: hubicka
Date: Mon Apr  9 23:39:11 2012
New Revision: 186252

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186252
Log:

    PR lto/52722
    PR lto/51765
    PR lto/52634    
    * lto-cgraph.c (compute_ltrans_boundary): When alias is in the boundary,
    add its target too.
    * lto.c (add_references_to_partition): Add also aliased nodes.
    (add_cgraph_node_to_partition,
    add_varpool_node_to_partition): Work on nodes, not functions/variables;
    when adding alias, add also the aliased object.

    * gcc.dg/lto/pr52634_1.c: New testcase.
    * gcc.dg/lto/pr52634_0.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/lto/pr52634_0.c
    trunk/gcc/testsuite/gcc.dg/lto/pr52634_1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-cgraph.c
    trunk/gcc/lto/lto.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
                   ` (5 preceding siblings ...)
  2012-04-09 23:41 ` hubicka at gcc dot gnu.org
@ 2012-04-10 15:08 ` hubicka at gcc dot gnu.org
  2021-12-24  9:00 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-04-10 15:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-04-10 15:07:57 UTC ---
Both the testcase and make check works for me now.


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

* [Bug lto/52722] ICE in lto_output_varpool_node
  2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
                   ` (6 preceding siblings ...)
  2012-04-10 15:08 ` hubicka at gcc dot gnu.org
@ 2021-12-24  9:00 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-24  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |link-failure
   Target Milestone|---                         |4.8.0

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

end of thread, other threads:[~2021-12-24  9:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26 12:27 [Bug lto/52722] New: ICE in lto_output_varpool_node malcolm.parsons at gmail dot com
2012-03-26 12:35 ` [Bug lto/52722] " malcolm.parsons at gmail dot com
2012-03-26 13:01 ` rguenth at gcc dot gnu.org
2012-03-26 14:02 ` hubicka at gcc dot gnu.org
2012-03-26 14:14 ` markus at trippelsdorf dot de
2012-04-09 18:58 ` hubicka at gcc dot gnu.org
2012-04-09 23:41 ` hubicka at gcc dot gnu.org
2012-04-10 15:08 ` hubicka at gcc dot gnu.org
2021-12-24  9:00 ` pinskia 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).