From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: alloca() warnings on freebsd Date: Tue, 10 Aug 2010 12:38:14 +0300 Message-ID: <87lj8else1.fsf@kobe.laptop> References: <87ocdbbfpz.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281433183 739 80.91.229.12 (10 Aug 2010 09:39:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2010 09:39:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 10 11:39:40 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OilJ5-0008Ja-W8 for ged-emacs-devel@m.gmane.org; Tue, 10 Aug 2010 11:39:40 +0200 Original-Received: from localhost ([127.0.0.1]:58184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OilJ5-0007VK-B1 for ged-emacs-devel@m.gmane.org; Tue, 10 Aug 2010 05:39:39 -0400 Original-Received: from [140.186.70.92] (port=35328 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OilIK-0006ve-S2 for emacs-devel@gnu.org; Tue, 10 Aug 2010 05:38:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OilII-0002wD-AT for emacs-devel@gnu.org; Tue, 10 Aug 2010 05:38:52 -0400 Original-Received: from igloo.linux.gr ([62.1.205.36]:56566) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OilIH-0002v6-Tz; Tue, 10 Aug 2010 05:38:50 -0400 X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.001, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_20 -0.00) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: o7A9cMKP008835 Original-Received: from kobe.laptop (178.128.28.136.dsl.dyn.forthnet.gr [178.128.28.136]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.1) with ESMTP id o7A9cMKP008835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 10 Aug 2010 12:38:37 +0300 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o7A9cFnJ049372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Aug 2010 12:38:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o7A9cEaa049369; Tue, 10 Aug 2010 12:38:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128538 Archived-At: On Mon, 09 Aug 2010 19:16:33 -0400, Dan Nicolaescu wrote: > Giorgos Keramidas writes: >> Some time during the recent past an alloca() prototype was introduced to >> config.h that conflicts with the stdlib.h prototype of alloca() on my >> FreeBSD laptop. >> >> The current check near line 1148 of config.in is: >> >> #ifdef HAVE_ALLOCA_H >> # include >> #elif defined __GNUC__ >> # define alloca __builtin_alloca >> #elif defined _AIX >> # define alloca __alloca >> #else >> # include >> # ifdef __cplusplus >> extern "C" >> # endif >> void *alloca (size_t); >> #endif > What we use now is a shorter version what the autoconf manual > recommends. Could you ask the autoconf guys about this, and post the > solution here? That would help fix the same problem for other > programs, not only for emacs. The manual version is indeed bogus. It assumes that if __GNUC__ is defined, then __builtin_alloca() is always ok. I'll try to contact the autoconf people. In the meantime the patch seems to have fixed the alloca() warnigns on FreeBSD. I'll keep it in my personal patch queue: http://bitbucket.org/keramida/emacs-bsd-patches/src/tip/patch-alloca http://bitbucket.org/keramida/emacs-bsd-patches/src/tip/patch-alloca-regen So when the autoconf people reply I'll followup with more details. Thanks, Giorgos