public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
@ 2015-10-22 20:47 hjl.tools at gmail dot com
  2015-10-23  8:20 ` [Bug ipa/68057] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2015-10-22 20:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 68057
           Summary: [6 Regression] 450.soplex in SPEC CPU 2006 failed to
                    build
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

For x32, r229159 gave

g++ -mx32  -O2 -ffast-math -fwhole-program -flto=jobserver -fuse-linker-plugin 
        changesoplex.o didxset.o dsvector.o dvector.o enter.o example.o
factor.o forest.o idxset.o leave.o lpcolset.o lprow.o lprowset.o message.o
mpsinput.o nameset.o slufactor.o solve.o soplex.o spxaggregatesm.o spxbasis.o
spxbounds.o spxchangebasis.o spxdefaultpr.o spxdefaultrt.o spxdefines.o
spxdesc.o spxdevexpr.o spxequilisc.o spxfastrt.o spxgeneralsm.o spxharrisrt.o
spxhybridpr.o spxid.o spxio.o spxlp.o spxlpfread.o spxmpsread.o spxmpswrite.o
spxparmultpr.o spxquality.o spxredundantsm.o spxrem1sm.o spxscaler.o spxshift.o
spxsolve.o spxsolver.o spxstarter.o spxsteeppr.o spxsumst.o spxvecs.o
spxvectorst.o spxweightpr.o spxweightst.o ssvector.o svector.o svset.o timer.o
unitvector.o update.o updatevector.o vector.o vsolve.o                     -o
soplex
lto1: internal compiler error: in record_target_from_binfo, at
ipa-devirt.c:2599
0x806e06 record_target_from_binfo
        ../../src-trunk/gcc/ipa-devirt.c:2599
0x806910 record_target_from_binfo
        ../../src-trunk/gcc/ipa-devirt.c:2640
0x807344 possible_polymorphic_call_targets_1
        ../../src-trunk/gcc/ipa-devirt.c:2687
0x80e6c9 possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, bool)
        ../../src-trunk/gcc/ipa-devirt.c:3216
0x80ffbc try_speculative_devirtualization(tree_node*, long,
ipa_polymorphic_call_context)
        ../../src-trunk/gcc/ipa-devirt.c:3576
0x10a887f ipa_get_indirect_edge_target_1
        ../../src-trunk/gcc/ipa-cp.c:2142
0x8220d2 estimate_edge_devirt_benefit
        ../../src-trunk/gcc/ipa-inline-analysis.c:3048
0x8224db estimate_edge_size_and_time
        ../../src-trunk/gcc/ipa-inline-analysis.c:3088
0x8224db estimate_calls_size_and_time
        ../../src-trunk/gcc/ipa-inline-analysis.c:3164
0x822826 estimate_node_size_and_time
        ../../src-trunk/gcc/ipa-inline-analysis.c:3259
0x824d8d do_estimate_edge_time(cgraph_edge*)
        ../../src-trunk/gcc/ipa-inline-analysis.c:3745
0x825317 do_estimate_edge_size(cgraph_edge*)
        ../../src-trunk/gcc/ipa-inline-analysis.c:3796
0x825587 estimate_edge_size
        ../../src-trunk/gcc/ipa-inline.h:293
0x825587 estimate_edge_growth
        ../../src-trunk/gcc/ipa-inline.h:306
0x825587 estimate_size_after_inlining(cgraph_node*, cgraph_edge*)
        ../../src-trunk/gcc/ipa-inline-analysis.c:3889
0x10b8c64 caller_growth_limits
        ../../src-trunk/gcc/ipa-inline.c:193
0x10b8c64 can_inline_edge_p
        ../../src-trunk/gcc/ipa-inline.c:398
0x10bdaad update_callee_keys
        ../../src-trunk/gcc/ipa-inline.c:1404
0x10c00eb inline_small_functions
        ../../src-trunk/gcc/ipa-inline.c:2041
0x10c00eb ipa_inline
        ../../src-trunk/gcc/ipa-inline.c:2425
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: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/local/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
specmake[3]: *** [soplex] Error 1

r229021 is OK.


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

* [Bug ipa/68057] [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
  2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
@ 2015-10-23  8:20 ` rguenth at gcc dot gnu.org
  2015-10-23 10:42 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-23  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org
            Version|5.3.0                       |6.0
             Blocks|                            |67056
   Target Milestone|---                         |6.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Honza, probably caused by your devirt fix?


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67056
[Bug 67056] [5 regression] Wrong code generated


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

* [Bug ipa/68057] [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
  2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
  2015-10-23  8:20 ` [Bug ipa/68057] " rguenth at gcc dot gnu.org
@ 2015-10-23 10:42 ` hjl.tools at gmail dot com
  2015-10-24  2:02 ` miyuki at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2015-10-23 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-23
     Ever confirmed|0                           |1

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
It was caused by r229148.


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

* [Bug ipa/68057] [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
  2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
  2015-10-23  8:20 ` [Bug ipa/68057] " rguenth at gcc dot gnu.org
  2015-10-23 10:42 ` hjl.tools at gmail dot com
@ 2015-10-24  2:02 ` miyuki at gcc dot gnu.org
  2015-10-24  4:32 ` miyuki at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: miyuki at gcc dot gnu.org @ 2015-10-24  2:02 UTC (permalink / raw)
  To: gcc-bugs

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

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

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

--- Comment #3 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
This also started showing up in my x86_64 builds with the following options:

g++ -w  -Ofast -march=haswell -mtune=haswell -flto=12   -DSPEC_CPU_LP64
-std=c++98     -fprofile-generate <...> -o soplex

I'll try to reduce the testcase.


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

* [Bug ipa/68057] [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
  2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2015-10-24  2:02 ` miyuki at gcc dot gnu.org
@ 2015-10-24  4:32 ` miyuki at gcc dot gnu.org
  2015-10-24  5:14 ` trippels at gcc dot gnu.org
  2015-10-24 12:48 ` trippels at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: miyuki at gcc dot gnu.org @ 2015-10-24  4:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
Created attachment 36570
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36570&action=edit
reproducer

Compile like this:
/opt/gcc-6.0.0/bin/g++ -O3 -flto tu{1,2,3}.cc

lto1: internal compiler error: in record_target_from_binfo, at
ipa-devirt.c:2599
0x80492d record_target_from_binfo
        /home/miyuki/gcc/src/gcc/ipa-devirt.c:2599
0x804405 record_target_from_binfo
        /home/miyuki/gcc/src/gcc/ipa-devirt.c:2640
0x804e44 possible_polymorphic_call_targets_1
        /home/miyuki/gcc/src/gcc/ipa-devirt.c:2687
0x80b8fc possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, bool)
        /home/miyuki/gcc/src/gcc/ipa-devirt.c:3216
0x80d1fc try_speculative_devirtualization(tree_node*, long,
ipa_polymorphic_call_context)
        /home/miyuki/gcc/src/gcc/ipa-devirt.c:3576
0x109aec9 ipa_get_indirect_edge_target_1
        /home/miyuki/gcc/src/gcc/ipa-cp.c:2142
0x81fb52 estimate_edge_devirt_benefit
        /home/miyuki/gcc/src/gcc/ipa-inline-analysis.c:3048
0x81ff5b estimate_edge_size_and_time
<...>

I did not preserve validity, i.e. compiling without optimization gives link
error:
tu3.cc:(.text._ZN9SPxPricerC2Ev[_ZN9SPxPricerC5Ev]+0x9): undefined reference to
`vtable for SPxPricer'
(because of missing definition for SPxPricer::load).


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

* [Bug ipa/68057] [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
  2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2015-10-24  4:32 ` miyuki at gcc dot gnu.org
@ 2015-10-24  5:14 ` trippels at gcc dot gnu.org
  2015-10-24 12:48 ` trippels at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-10-24  5:14 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 test % cat 1.ii
struct SPxPricer;
struct SoPlex {
  virtual void setPricer(SPxPricer *);
};
struct SPxPricer {
  virtual void load(SoPlex *);
};
struct SLUFactor {
  SLUFactor();
  virtual ~SLUFactor();
};
struct SPxSolver : SoPlex {
  SPxPricer pr;
  SLUFactor slu;
  SPxSolver();
};
struct A : SPxSolver {};
A a;

void SoPlex::setPricer(SPxPricer *p1) { p1->load(this); }


markus@x4 test % cat 2.ii
struct SPxPricer;
struct SoPlex {
  virtual void setPricer(SPxPricer *);
};
struct SPxPricer {
  virtual void load(SoPlex *);
};
struct SLUFactor {
  SLUFactor();
  virtual ~SLUFactor();
};
struct SPxSolver : SoPlex {
  SPxPricer pr;
  SLUFactor slu;
  SPxSolver();
};
SPxSolver::SPxSolver() { setPricer(&pr); }


markus@x4 test % g++ -r -nostdlib -O2 -flto 1.ii 2.ii
lto1: internal compiler error: in record_target_from_binfo, at
ipa-devirt.c:2599


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

* [Bug ipa/68057] [6 Regression] 450.soplex in SPEC CPU 2006 failed to build
  2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2015-10-24  5:14 ` trippels at gcc dot gnu.org
@ 2015-10-24 12:48 ` trippels at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-10-24 12:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
BTW there is a big binary size increase for SPEC2000/2006 apps using flto,
see https://vmakarov.fedorapeople.org/spec/


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

end of thread, other threads:[~2015-10-24 12:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 20:47 [Bug ipa/68057] New: [6 Regression] 450.soplex in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
2015-10-23  8:20 ` [Bug ipa/68057] " rguenth at gcc dot gnu.org
2015-10-23 10:42 ` hjl.tools at gmail dot com
2015-10-24  2:02 ` miyuki at gcc dot gnu.org
2015-10-24  4:32 ` miyuki at gcc dot gnu.org
2015-10-24  5:14 ` trippels at gcc dot gnu.org
2015-10-24 12:48 ` trippels 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).