This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Never, never, never use alloca (was: fix giant memory leak)
- To: "'dj at redhat dot com'" <dj at redhat dot com>, "'ghazi at caip dot rutgers dot edu'" <ghazi at caip dot rutgers dot edu>
- Subject: Never, never, never use alloca (was: fix giant memory leak)
- From: Bruce Korb <bkorb at allegronetworks dot com>
- Date: Sun, 1 Apr 2001 14:45:02 -0700
- Cc: "GCC Patches (E-mail)" <gcc-patches at gcc dot gnu dot org>
I put defines into fixinc/gnu-regex.c to *ENSURE* that
it would never, ever call that silly optimization again.
What happened? Who changed it and why? Finding the
problem in the first place was a big pain because I
knew not where to look and I could not reproduce the problem
on the platforms I had access to at the time.
Never, never, never use alloca. It's broken without
direct compiler support.