This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

mingw32 cross compiler & unwanted alloca


I am crosscompiling (and sometimes linking) Windows programs under Solaris using
mingw32 2.95.2. Mingw32 creates calls to __alloca for functions that declare large
auto arrays. Normal Solaris gcc (2.8.1) does not call alloca, it allocates the
specified amount of storage directly on the stack (this is what I want)

Is this a version problem, 2.8.1 vs. 2.95.2, or some other problem?

I don't like alloca and worse, MSVC libraries do not contain any alloca implementation.
(That is my goal, crosscompiling under Solaris and then final link using MSVC under
Windows).

I think I remember once reading that it was possible to disable usage of alloca
for gcc but I haven't found such a compiler option (using mingw32-gcc -v --help).
--
	Ola Liljedahl
	olli@enea.se
	Enea OSE Systems
begin:vcard 
n:Liljedahl;Ola
x-mozilla-html:FALSE
org:Enea OSE Systems;R & D
adr:;;;;;;
version:2.1
email;internet:olli@enea.se
title:Technical Manager
fn:Ola Liljedahl
end:vcard

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]