Article View: gnu.gcc.help
Article #54195Help needed on compiling alloca(x) on a sun3 machine using OS4.1
From: Ian King DSP RA
Date: Wed, 09 Jan 1991 15:08
Date: Wed, 09 Jan 1991 15:08
26 lines
1285 bytes
1285 bytes
The following program compiles on our gcc compiler on a sun3 machine.
It is obvious that alloca is not explicitely defined but the program does
link. Does anyone know whether alloca is linked in implicitely in
gcc or whether this is a bug ? Also does anyone have conclusive proof
that alloca used in this way will function correctly ?
main()
{
char *x;
x = (char *) alloca (100);
}
-------------------------------------------------------------------
Ian King Tel: (0603) 56161 ext.2692
Dept. of Information Systems e-mail: ik@sys.uea.ac.uk
University of East Anglia
Norwich NR4 7TJ
United Kingdom
"If you choose not to decide you'll still have made a choice" - Rush
Technical Details
Message-ID:
<12269.9101091508@s4.sys.uea.ac.uk>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!ucsd!ucbvax!information-systems.east-anglia.ac.uk!ikShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5eb37bad96966f7c,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-01-10 01:55:13 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!ucsd!ucbvax!information-systems.east-anglia.ac.uk!ik From: ik@information-systems.east-anglia.ac.uk (Ian King DSP RA) Newsgroups: gnu.gcc.help Subject: Help needed on compiling alloca(x) on a sun3 machine using OS4.1 Message-ID: <12269.9101091508@s4.sys.uea.ac.uk> Date: 9 Jan 91 15:08:29 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 26