c++/489: g++ 2.95.2 on solaris/sparc optimizer crash emit-rtl.c:1604

smcpeak@cs.berkeley.edu smcpeak@cs.berkeley.edu
Sat Aug 26 06:56:00 GMT 2000


>Number:         489
>Category:       c++
>Synopsis:       g++ 2.95.2 on solaris/sparc optimizer crash emit-rtl.c:1604
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 26 06:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Scott McPeak
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
SunOS york.CS.Berkeley.EDU 5.7 Generic_106541-07 sun4u sparc SUNW,Ultra-5_10
>Description:
crashgcc.cpp: In function `bool isBigEndian()':
crashgcc.cpp:12: Internal compiler error in `change_address', at emit-rtl.c:1604
Please submit a full bug report.
>How-To-Repeat:
Compile command:
  g++ -O2 crashgcc.cpp

/* crashgcc.cpp */

typedef unsigned char byte;

bool isBigEndian()
{
  union {
    int i;                  // machine word
    byte b[sizeof(int)];    // b[0] overlaid with first byte of i
  };
  i = 0xFF;    // set lsb, zero all others
  return b[0] != 0xFF;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list