Bug 2161 - long if-else cascade overflows parser stack
Summary: long if-else cascade overflows parser stack
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 2.95.2
: P3 normal
Target Milestone: ---
Assignee: Richard Henderson
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: 40760
  Show dependency treegraph
 
Reported: 2001-03-03 02:46 UTC by anton
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
jit.i.bz2 (44.97 KB, application/octet-stream)
2003-05-21 15:15 UTC, anton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anton 2001-03-03 02:46:01 UTC
In file included from jit.c:268:
cacao-disasm.i: In function `disassemble_threaded':
cacao-disasm.i:13737: parser stack overflow before `1'

Release:
gcc-2.95.2

Environment:
Alpha (21164a, 164LX board)
Linux-2.2.13 glibc-2.0.7 (RedHat-5.2)

How-To-Repeat:
gcc -mieee -O2 -c jit.i
Comment 1 anton 2001-03-03 02:46:01 UTC
Fix:
Untested workaround: use goto instead of else
Comment 2 Joseph S. Myers 2001-05-28 05:00:35 UTC
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed as a bug.
Comment 3 Joseph S. Myers 2001-05-28 12:00:35 UTC
From: jsm28@gcc.gnu.org
To: anton@mips.complang.tuwien.ac.at, gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk,
  nobody@gcc.gnu.org
Cc:  
Subject: Re: c/2161
Date: 28 May 2001 12:00:35 -0000

 Synopsis: long if-else cascade overflows parser stack
 
 State-Changed-From-To: open->analyzed
 State-Changed-By: jsm28
 State-Changed-When: Mon May 28 05:00:35 2001
 State-Changed-Why:
     Confirmed as a bug.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2161&database=gcc
Comment 4 Richard Henderson 2002-04-25 18:23:45 UTC
Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-Why: .
Comment 5 Richard Henderson 2002-04-25 22:40:47 UTC
State-Changed-From-To: analyzed->closed
State-Changed-Why: http://gcc.gnu.org/ml/gcc-patches/2002-04/msg01558.html