This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38422] New: [4.4 Regression] union/bitfield causes cc1/cc1plus to run out of memory.
- From: "gd at spherenet dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2008 02:45:44 -0000
- Subject: [Bug c/38422] New: [4.4 Regression] union/bitfield causes cc1/cc1plus to run out of memory.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Current 4.4 snapshot (r142497) runs out of memory (stack usage >2GB) while
compiling table_layout.cpp from kdelibs-3.5.10 with -O{s,1,2,3}. It succeeds
with -O0.
The following reduced testcase shows the same behaviour even if compiled with
'gcc -O0 -S -o testcase.s testcase.c'
struct s
{
union {
struct {
int s_value : 30;
unsigned int u_value : 2;
} l;
unsigned int raw;
};
};
void func()
{
struct s foo;
foo.l.s_value *= 2;
}
--
Summary: [4.4 Regression] union/bitfield causes cc1/cc1plus to
run out of memory.
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gd at spherenet dot de
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38422