Bug 10262 - [3.2 regression] cc1plus crashes with large generated code
|
Bug#:
10262
|
Product: gcc
|
Version: 3.2.2
|
|
Host:
|
Target:
|
Build:
|
|
Status: RESOLVED
|
Severity: normal
|
Priority: P3
|
|
Resolution: FIXED
|
Assigned To: unassigned@gcc.gnu.org
|
Reported By: skavenr@linuxmail.org
|
|
Component: middle-end
|
Target Milestone: ---
|
|
Summary: [3.2 regression] cc1plus crashes with large generated code
|
|
Keywords: ice-on-valid-code
|
|
Opened: 2003-03-29 02:36
|
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/cc1plus -fpreprocessed genhvmmain.ii -quiet -dumpbase genhvmmain.ii -version -o genhvmmain.s
GNU CPP version 3.2.2 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.2.2 (i386-slackware-linux)
compiled by GNU C version 3.2.2.
genhvmmain.cpp: In member function `bool Hush::HushVM::run(long int)':
genhvmmain.cpp:362: Internal compiler error in convert_regs_1, at reg-stack.c:
2765
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Release:
gcc version 3.2.2
Environment:
standard Slackware 9.0 (2.4.20) on Intel Celeron
How-To-Repeat:
gcc genhvmmain.ii
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed on 3.2, appears to be fixed with 3.4. A reduced testcase
is this:
-------------------------- cut --------------------------
static const char* ip;
static unsigned long* sp;
static const char** rs;
bool
run(long max_opcodes_to_do)
{
void* me_ptr;
opcode_counter:
goto *ip;
*rs++ = (char*)&&l77m; l77m:
*rs++ = (char*)&&l102m; l102m:
ip = (char*)&&l155c; goto opcode_counter; l155c:
*reinterpret_cast<float*>(sp) = (sp[0]);
return false;
}
-------------------------- cut --------------------------
regards Christian
State-Changed-From-To: analyzed->closed
State-Changed-Why: Fixed for 3.3.