This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: x-files must die: alloca


In article <20010305010018.E1424@wolery.stanford.edu> you write:
>Second, all references to alloca are eradicated from the gcc
>subdirectory configuration logic and Makefiles, with one exception.
>That one exception is BeOS, which apparently has draconian stack space
>limits, such that GCC needs to use the C alloca even when being
>compiled by GCC.  Forcing that is now much easier.  It is possible
>that even more gunk could go away; I took out only obviously-related
>stuff.  For instance, "CLIB=-lPW" in numerous x-host files may now be
>unnecessary, but as I have no idea what libPW was, I left it alone.

I don't know how folded back the amigaos configuration currently is,
but there ARE some hard limitations on stack space on amigaos as well.

I remember the gcc port using some VERY nasty tricks to expand the stack
on the fly to try to deal with it, but these did not work that well at the
time (there was a small possibility of falling on the `wrong' boundary, and
having the stack extension not work). To give you a better inkling of the
issue, that's on a m68k machine where you don't have any usable MMU in 
practice, so those stack extension techniques are similar to risc frames...


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