This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/489: g++ 2.95.2 on solaris/sparc optimizer crash emit-rtl.c:1604
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/489: g++ 2.95.2 on solaris/sparc optimizer crash emit-rtl.c:1604
- From: smcpeak at cs dot berkeley dot edu
- Date: 26 Aug 2000 13:51:33 -0000
- Reply-To: smcpeak at cs dot berkeley dot edu
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, smcpeak@cs.berkeley.edu
>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: