🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52551

ultrix 4.0 (vax) gcc - switch table overflow

#52551
From: Douglas B. Jones
Date: Thu, 02 Jul 1992 20:27
87 lines
5183 bytes
I am trying to compile gcc-2.2.2 on a MV3600 with ULTRIX4.0. I get the
following error line which stop the compilation:

"cp-parse.y", line 3281: compiler error: switch table overflow


Here are the last 40 lines of output from the compile:
command:
-----------------------------------------------------------------------------
%make LANGUAGES=c
.......(deleted)
touch stamp-output
cc    -g   -J  -I. -I. -I./config -c insn-output.c
cc -c    -g   -J  -I. -I. -I./config ./genemit.c
cc    -g   -o genemit   genemit.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `   
./genemit md > tmp-emit.c
./move-if-change tmp-emit.c insn-emit.c
touch stamp-emit
cc    -g   -J  -I. -I. -I./config -c insn-emit.c
cc -c    -g   -J  -I. -I. -I./config ./genattrtab.c
cc    -g   -o genattrtab   genattrtab.o rtl.o print-rtl.o rtlanal.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `   
if cmp -s Makefile   md;	 then					   echo Using ;	   cp  tmp-attrtab.c;	 else					   ./genattrtab md > tmp-attrtab.c;	 fi
./move-if-change tmp-attrtab.c insn-attrtab.c
touch stamp-attrtab
cc    -g   -J  -I. -I. -I./config -c insn-attrtab.c
cc -c    -g   -J  -I. -I. -I./config aux-output.c
cc -c    -g   -J  -I. -I. -I./config getpwd.c
cc    -g   -o cc1 c-parse.o c-lang.o  c-lex.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o  rtl.o print-rtl.o rtlanal.o emit-rtl.o  dbxout.o sdbout.o dwarfout.o xcoffout.o  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o  regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o  insn-peep.o reorg.o sched.o final.o recog.o reg-s



tack.o  insn-recog.o insn-extract.o insn-output.o insn-emit.o  insn-attrtab.o aux-output.o getpwd.o  obstack.o ` case "cc" in "cc") echo  ;; esac `  
cc -c    -g   -J  -I. -I. -I./config    `echo ./cp-parse.c | sed 's,^\./,,'`
"cp-parse.y", line 973: warning: enumeration type clash, operator ==
"cp-parse.y", line 2077: warning: enumeration type clash, operator ==
"cp-parse.y", line 2080: warning: enumeration type clash, operator =
"cp-parse.y", line 2086: warning: enumeration type clash, operator =
"cp-parse.y", line 2089: warning: enumeration type clash, operator ==
"cp-parse.y", line 2092: warning: enumeration type clash, operator =
"cp-parse.y", line 2095: warning: enumeration type clash, operator ==
"cp-parse.y", line 2097: warning: enumeration type clash, operator ==
"cp-parse.y", line 2102: warning: enumeration type clash, operator ==
"cp-parse.y", line 2103: warning: enumeration type clash, operator =
"cp-parse.y", line 2107: warning: enumeration type clash, operator ==
"cp-parse.y", line 2109: warning: enumeration type clash, operator ==
"cp-parse.y", line 2110: warning: enumeration type clash, operator =
"cp-parse.y", line 2116: warning: enumeration type clash, operator ==
"cp-parse.y", line 2117: warning: enumeration type clash, operator =
"cp-parse.y", line 2118: warning: enumeration type clash, operator ==
"cp-parse.y", line 2119: warning: enumeration type clash, operator =
"cp-parse.y", line 2492: warning: enumeration type clash, operator !=
"cp-parse.y", line 3281: compiler error: switch table overflow
*** Error code 1

Stop.
-----------------------------------------------------------------------------

sidenote: I got the 'type clash' in several parts that were compiled.

It tells me that I hav two many case stmts. So, I wrote a little program
to which is basically:
-----------------------------------------------------------------------------
main()
{
switch (1){
case 1:
....
case 599:
}
}
-----------------------------------------------------------------------------
Well, I get the same error when it reached the 500th case statement. The
vcc compiler works on this test program, but the INSTALL notes say don't
use vcc since it gens. some incorrect code.

Any ideas of what to do? I'm not that proficient in *.y stuff. Only thing

Please mail directly back to me (douglas@dekalb.dc.peachnet.edu).

Thanks!!!!
Douglas

-- 
Douglas B. Jones			douglas@dekalb.dc.peachnet.edu
Academic Computer Center		or	gatech!dekalb!douglas
DeKalb College                          Config: {DS3100,MV3600}/ULTRIX 4.0
555 N. Indian Creek Drive/Clarkston, Ga. 30021  (404) 299-4233
Technical Details
Message-ID: <1992Jul2.202734.4282@dekalb.dc.peachnet.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!sdd.hp.com!nigel.msen.com!emory!dekalb!douglas

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2023a849e9d6fec9,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-07-02 07:34:42 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!sdd.hp.com!nigel.msen.com!emory!dekalb!douglas
From: douglas@dekalb.dc.peachnet.edu (Douglas B. Jones)
Newsgroups: gnu.gcc.help
Subject: ultrix 4.0 (vax) gcc - switch table overflow
Keywords: gcc compilation error
Message-ID: <1992Jul2.202734.4282@dekalb.dc.peachnet.edu>
Date: 2 Jul 92 20:27:34 GMT
Organization: DeKalb College, Clarkston GA
Lines: 84