🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #380

Bug in gcc-2.1 for VAX

#380
From: Tony Hosking
Date: Mon, 13 Apr 1992 13:12
31 lines
1332 bytes
There seems to be a pattern missing from the vax.md machine description in
gcc-2.1 to dealing with indexed indirect jumps.  The program:

extern void *table[];

void try (int i) {
  goto *table[i];
}

gives the following error message when compiled with gcc-2.1 on a VAX running
Ultrix 4.1:

try.c: In function `test':
try.c:5: internal error--unrecognizable insn:
(jump_insn 8 7 9 (set (pc)
       (mem/s:SI (plus:SI (mult:SI (reg:SI 20)
                   (const_int 4))
               (symbol_ref:SI ("table"))))) -1 (nil)
   (nil))
gcc: Internal compiler error: program cc1 got fatal signal 4

I'd appreciate any help in updating the machine description.

Thanks,

		Tony Hosking
Papernet:	Dept. of Computer Science
		University of Massachusetts			 _--_|\
		Amherst, MA 01003				/      \
Voicenet:	(413) 545-0256					\_.--._/    )
Internet:	hosking@cs.umass.edu				      v    /
Technical Details
Message-ID: <9204132112.AA03237@ibis.cs.umass.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.umass.edu!hosking%ibis

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.umass.edu!hosking%ibis
From: hosking%ibis@cs.umass.edu (Tony Hosking)
Subject: Bug in gcc-2.1 for VAX
Message-ID: <9204132112.AA03237@ibis.cs.umass.edu>
Sender: gnulists@ai.mit.edu
Reply-To: hosking@cs.umass.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 13 Apr 1992 13:12:36 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 32