This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Anonymous union on sun-sparc-solaris 2.5.1


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)

----------------------------------------------------------------------------







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]