From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Latest GCC can't compile keymap.c correctly. Date: Fri, 08 Sep 2006 01:05:56 -0400 Message-ID: References: <17664.46868.93256.57436@mars.fsas.fujitsu.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1157692579 5457 80.91.229.2 (8 Sep 2006 05:16:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 05:16:19 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 07:16:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLYin-0002Wl-30 for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 07:16:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLYii-0000gl-SO for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 01:16:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLYYy-0005w9-3U for emacs-devel@gnu.org; Fri, 08 Sep 2006 01:06:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLYYv-0005tP-VL for emacs-devel@gnu.org; Fri, 08 Sep 2006 01:05:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLYYv-0005sr-Ll for emacs-devel@gnu.org; Fri, 08 Sep 2006 01:05:57 -0400 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLYZR-00080C-W6 for emacs-devel@gnu.org; Fri, 08 Sep 2006 01:06:30 -0400 Original-Received: from alfajor ([70.55.80.224]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060908050556.ITYJ18394.tomts5-srv.bellnexxia.net@alfajor> for ; Fri, 8 Sep 2006 01:05:56 -0400 Original-Received: by alfajor (Postfix, from userid 20848) id 465BD1C188; Fri, 8 Sep 2006 01:05:56 -0400 (EDT) Original-To: =?utf-8?B?5aGp6YeO77yg44K344K544OG44Og5qeL56+J6YOo?= In-Reply-To: <17664.46868.93256.57436@mars.fsas.fujitsu.com> (=?utf-8?B?5aGp6YeO77yg44K344K544OG44Og5qeL56+J6YOoJ3M=?= message of "Fri\, 8 Sep 2006 09\:19\:32 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:59538 Archived-At: >> If it's compiled with gcc-4.2 but with -Wall, what warnings do you get? > gcc -c -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/opt/local/src/emacs/s= rc -I/opt/X11R6.6/include -I/usr/dt/include -g -O2 -Wno-pointer-sign -Wall= /opt/local/src/emacs/src/keymap.c > /opt/local/src/emacs/src/keymap.c: In function 'Fkey_description': > /opt/local/src/emacs/src/keymap.c:2016: Warn: implicit declaration of fun= ction 'alloca' > /opt/local/src/emacs/src/keymap.c:2016: Warn: incompatible implicit decla= ration of built-in function 'alloca' [...] Thanks. Does the patch below fix the problem? Stefan --- keymap.c 20 ao=FB 2006 01:24:17 -0400 1.330 +++ keymap.c 08 sep 2006 01:05:09 -0400=09 @@ -23,6 +23,7 @@ =20 #include #include +#include #include "lisp.h" #include "commands.h" #include "buffer.h"