🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3394

GCC case statements

#3394
From: news
Date: Tue, 26 Jan 1999 00:00
17 lines
1448 bytes
Hi all!

Does anyone know of any limits for gcc with case statemts?  My yyparse
function is HUGE, with about 1700 case statements, and gas seems to not be
able to jump that far, I get an error message about Index out of bounds in
gas, and it looks like when I cut down to about 1200 case statements, the
indexes slowly creep back into range until it compiles fine.  Is there a flag
in gcc to allow for larger switch statements in a file or any help would be
appreciated.  Thanks!


sean

CC sal@blksmith.com if possible

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <78kqhl$n3$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c82c4a02c51c0963,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,c82c4a02c51c0963,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,c82c4a02c51c0963,start
X-Google-Attributes: gid10ba33,public
From: news@wiggum.com
Subject: GCC case statements
Date: 1999/01/26
Message-ID: <78kqhl$n3$1@nnrp1.dejanews.com>
X-Deja-AN: 437058087
X-Http-Proxy: 1.1 x7.dejanews.com:80 (Squid/1.1.22) for client 207.13.163.34
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Tue Jan 26 16:29:53 1999 GMT
Newsgroups: comp.unix.programmer,gnu.gcc.help,gnu.g++.help
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)