Date: Sat, 14 Jun 2003 16:08:31 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: arch@freebsd.org Cc: des@ofug.org Subject: Re: unbreaking alloca Message-ID: <200306142308.h5EN8VEK015107@strings.polstra.com> 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
In article <xzp1xxw65o7.fsf@flood.ping.uio.no>, 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. I tried your patch, but it broke world in ranlib: ===> gnu/usr.bin/binutils/ranlib cc -O -pipe -march=pentiumpro -D_GNU_SOURCE -I. -I/a/src/gnu/usr.bin/binutils/ranlib -I/a/src/gnu/usr.bin/binutils/ranlib/../libbfd/i386 -I/a/src/gnu/usr.bin/binutils/ranlib/../../../../contrib/binutils/include -I/a/src/gnu/usr.bin/binutils/ranlib/../libbinutils -I/a/src/gnu/usr.bin/binutils/ranlib/../../../../contrib/binutils/binutils -I/a/src/gnu/usr.bin/binutils/ranlib/../../../../contrib/binutils/bfd -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -c /a/src/gnu/usr.bin/binutils/ranlib/../../../../contrib/binutils/binutils/ar.c In file included from /a/src/contrib/binutils/binutils/bucomm.h:64, from /a/src/contrib/binutils/binutils/ar.c:32: /usr/obj/a/src/i386/usr/include/stdlib.h:226:1: "alloca" redefined In file included from /a/src/contrib/binutils/binutils/ar.c:30: /a/src/contrib/binutils/include/libiberty.h:289:1: this is the location of the previous definition *** Error code 1 John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Two buttocks cannot avoid friction." -- Malawi saying
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306142308.h5EN8VEK015107>