Bug#726867: Internal compiler error while building Linux drivers/media/dvb-core/dvb_demux.c
Package: gcc-4.8
Version: 4.8.2-1
Severity: important
linux 3.11.5-1 failed to build on both mips and mipsel:
CC [M] drivers/media/dvb-core/dvb_demux.o
/«PKGBUILDDIR»/drivers/media/dvb-core/dvb_demux.c: In function 'dvb_dmx_swfilter_packet':
/«PKGBUILDDIR»/drivers/media/dvb-core/dvb_demux.c:474:1: internal compiler error: in do_SUBST, at combine.c:711
}
^
Notably, this only occurred for flavours built with -Os.
Here's a reduced test case:
/* Compile with: gcc-4.8 -nostdinc -mabi=64 -Os -c test.c */
typedef unsigned char u8;
static int a(u8 len)
{
static int i;
i += len;
return 0;
}
int b(u8 *p)
{
u8 count = 184 - p[4];
if (count == 0)
return -1;
if (*p < count)
a(*p);
return 0;
}
/* END */
Ben.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gcc-4.8 depends on:
ii binutils 2.23.90.20130927-1
ii cpp-4.8 4.8.2-1
ii gcc-4.8-base 4.8.2-1
ii libc6 2.17-93
ii libcloog-isl4 0.18.0-2
ii libgcc-4.8-dev 4.8.2-1
ii libgmp10 2:5.1.2+dfsg-3
ii libisl10 0.11.2-1
ii libmpc3 1.0.1-1
ii libmpfr4 3.1.1-2
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages gcc-4.8 recommends:
ii libc6-dev 2.17-93
Versions of packages gcc-4.8 suggests:
ii binutils [binutils-gold] 2.23.90.20130927-1
pn gcc-4.8-doc <none>
pn gcc-4.8-locales <none>
ii gcc-4.8-multilib 4.8.2-1
pn libasan0-dbg <none>
pn libatomic1-dbg <none>
pn libbacktrace1-dbg <none>
pn libgcc1-dbg <none>
pn libgomp1-dbg <none>
pn libitm1-dbg <none>
pn libmudflap0-4.8-dev <none>
pn libmudflap0-dbg <none>
pn libquadmath0-dbg <none>
pn libtsan0-dbg <none>
-- no debconf information
Reply to: