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]

fixinc/regex caveat



Hi Andreas,

I haven't looked at the libiberty regex, but you should know that
regex may call alloca 100's of thousands of times at the same
stack level.  This is important on platforms that do not have
a native alloca implementation.  On such platforms with that
implementation of alloca, fixincl will eat all virtual memory
and die an inexplicable death.  The answer for this was to disable
the use of alloca.  So, beware the alloca.  It bites.

Regards,
	Bruce


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