On 2015.03.27 at 00:46 +0100, Jan Hubicka wrote:
> > On 26 March 2015 at 22:12, Jan Hubicka <hubi...@ucw.cz> wrote:
> > After this fix, I can see build failures in glibc:
> > key_call.c:574:1: internal compiler error: in inline_call, at
> > ipa-inline-transform.c:386
> 
> Can you please send me preprocessed testcase? It is probably another 
> misaccounting
> bug in ipa-inline-analysis.  I may just silence this assert for this stage 4.

Also happens when building the Linux kernel:

trippels@gcc2-power8 linux-3.18.8 % cat nf_sockopt.i
int a;
int (*b)(), (*c)();
int fn1(int p1) {
  if (a)
    return 0;
  if (p1) {
    c();
    b();
  }
}
void fn2() { fn1(0); }

trippels@gcc2-power8 linux-3.18.8 % /home/trippels/gcc_test/usr/local/bin/gcc 
-O2 -c nf_sockopt.i
nf_sockopt.i:11:1: internal compiler error: in inline_call, at 
ipa-inline-transform.c:386
 void fn2() { fn1(0); }
 ^
0x10e435cf inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*, 
int*, bool, bool*)
        ../../gcc/gcc/ipa-inline-transform.c:381
0x10e39a7b inline_small_functions
        ../../gcc/gcc/ipa-inline.c:1949
0x10e39a7b ipa_inline
        ../../gcc/gcc/ipa-inline.c:2352
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.

-- 
Markus

Reply via email to