From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: 64-bit compilation and printfs Date: Wed, 14 Oct 2009 11:17:48 -0700 (PDT) Message-ID: <200910141817.n9EIHmB9024840@godzilla.ics.uci.edu> References: <4CE21A3C-B51B-45ED-B51B-86072D403E25@gmail.com> <200910141640.n9EGe6o7024021@godzilla.ics.uci.edu> <4EE5D1CB-4FDD-4E71-9717-679FC32FF3D7@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255544589 21576 80.91.229.12 (14 Oct 2009 18:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 18:23:09 +0000 (UTC) Cc: Emacs-Devel devel To: Adrian Robert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 20:22:55 2009 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.50) id 1My8Ut-0003o2-Ok for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 20:22:52 +0200 Original-Received: from localhost ([127.0.0.1]:47896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My8Ut-0007YA-3o for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 14:22:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My8Te-0005rU-HW for emacs-devel@gnu.org; Wed, 14 Oct 2009 14:21:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My8TZ-0005fP-A2 for emacs-devel@gnu.org; Wed, 14 Oct 2009 14:21:33 -0400 Original-Received: from [199.232.76.173] (port=33864 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My8TY-0005ey-N7 for emacs-devel@gnu.org; Wed, 14 Oct 2009 14:21:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:30599) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1My8TX-0006m5-Dg for emacs-devel@gnu.org; Wed, 14 Oct 2009 14:21:28 -0400 Original-Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My8S4-0007Qk-Eg for emacs-devel@gnu.org; Wed, 14 Oct 2009 14:19:56 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id n9EIHmUD019576; Wed, 14 Oct 2009 11:17:48 -0700 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n9EIHmB9024840; Wed, 14 Oct 2009 11:17:48 -0700 (PDT) In-Reply-To: <4EE5D1CB-4FDD-4E71-9717-679FC32FF3D7@gmail.com> (Adrian Robert's message of "Wed, 14 Oct 2009 13:50:47 -0400") Original-Lines: 53 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: n9EIHmUD019576 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_LG 0.08) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:116148 Archived-At: Adrian Robert writes: > On Oct 14, 2009, at 12:40 PM, Dan Nicolaescu wrote: > > > It looks like this the 64-bit mode uses the 32-bit configuration file. > > From configure.in: > > > > ## Apple Darwin / Mac OS X > > *-apple-darwin* ) > > case "${canonical}" in > > i[3456]86-* ) machine=intel386 ;; > > powerpc-* ) machine=macppc ;; > > * ) unported=yes ;; > > esac > > > > there should be an: > > x86_64-* ) machine=amdx86-64 ;; > > in that "case". > > > > that will allow to remove this from emacs/src/s/intel386.h: > > > > #if defined (DARWIN_OS) > > #ifdef _LP64 > > /* For Intel Mac, with CC='gcc -arch x86_64'. */ > > #define NO_ARG_ARRAY > > #endif > > #endif > > > > there shouldn't be any _LP64 checks in that file. > > OK, I'm adding the first and taking the second out. It hasn't fired > in some time anyway as DARWIN_OS is not defined yet (machine file > comes before system file in config.h). > > However, what is the purpose of the defining of START_FILES in > amdx86-64.h? The default case is: > > #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o > #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o > > None of those files are on OS X machines (not sure about non-OS X > Darwin). > > I can exclude it under __APPLE__ but wanted to know why it was there > first. This is a convoluted mess, I'm wondering if anyone has a full understanding of what is going on with all these flags. It looks like you are defining START_FILES in darwin.h anyway, so you can just leave it alone in amdx86-64.h. Does LIBS_STANDARD get used at all on OS X? If not, just ignore it (or #undefine it in darwin.h if it does...)