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]

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



>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:

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