This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Anonymous union on sun-sparc-solaris 2.5.1
- To: <egcs-bugs at cygnus dot com>
- Subject: Anonymous union on sun-sparc-solaris 2.5.1
- From: "Dave" <dave at orctel dot co dot uk>
- Date: Mon, 15 Feb 1999 11:30:32 -0000
Using an anonymous union with -O -O2,-O3 causes internal compiler error in
egcs-1.0.3, egcs-1.1 and egcs-1.1.1 release versions on sparc sun solaris
2.5.1,
named unions uneffected:
----------------------------------------------------------------------------
// example.cc
int main(void)
{
union
{
long x;
unsigned char y[4];
};
unsigned char z;
z=y[0];
return 0;
}
----------------------------------------------------------------------------
g++ -0 example.cc
/egcs-1.1.1/gcc/emit-rtl.c:1429: Internal compiler error in function
operand_subword_force
uname -a: SunOS relais2 5.5.1 Generic_103640-03 sun4u sparc SUNW,Ultra-1
./configure --prefix=/opt/egcs-1.1.1 \
--enable-haifa \
--enable-threads
Reading specs from
/opt/egcs-1.1.1/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
----------------------------------------------------------------------------