This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fixinc/regex caveat
- To: aj at suse dot de, GCC-patches <gcc-patches at gcc dot gnu dot org>
- Subject: fixinc/regex caveat
- From: Bruce Korb <bkorb at veritas dot com>
- Date: Mon, 30 Jul 2001 12:37:05 -0700
- CC: bkorb at veritas dot com
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