Date: Sat, 14 Jun 2003 18:35:44 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: freebsd-arch@freebsd.org Subject: Re: unbreaking alloca Message-ID: <20030614183544.051c7a57.Alexander@Leidinger.net> In-Reply-To: <xzp1xxw65o7.fsf@flood.ping.uio.no> References: <xzp1xxw65o7.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 14 Jun 2003 17:27:04 +0200 Dag-Erling Smorgrav <des@ofug.org> wrote: > I'd like to commit the attached patch (after suitable testing of > course). It removes all mention of alloca(3) from cdefs.h, and > instead modifies the declaration in stdlib.h so that GNU compilers see > alloca(sz) defined to __builtin_alloca(sz) while other compilers (and > linters) see a regular prototype. Please also add a comment about the actual pitfalls (alloca function not possible to implement on AMD64, ... in libc and broken on IA32). > I would also like to add (at some future date) a link-time warning for > alloca(3) similar to what we already have for gets(), mktemp() etc. Wasn't there consensus to remove it entirely from libc? Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030614183544.051c7a57.Alexander>