all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: Adrian Robert <adrian.b.robert@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: 64-bit compilation and printfs
Date: Wed, 14 Oct 2009 11:17:48 -0700 (PDT)	[thread overview]
Message-ID: <200910141817.n9EIHmB9024840@godzilla.ics.uci.edu> (raw)
In-Reply-To: <4EE5D1CB-4FDD-4E71-9717-679FC32FF3D7@gmail.com> (Adrian Robert's message of "Wed, 14 Oct 2009 13:50:47 -0400")

Adrian Robert <adrian.b.robert@gmail.com> 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...)




      reply	other threads:[~2009-10-14 18:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12  0:46 64-bit compilation and printfs Adrian Robert
2009-10-12  4:03 ` Eli Zaretskii
2009-10-12 14:44   ` Adrian Robert
2009-10-12  8:48 ` Andreas Schwab
2009-10-13 19:34 ` Stefan Monnier
2009-10-14 16:40 ` Dan Nicolaescu
2009-10-14 17:50   ` Adrian Robert
2009-10-14 18:17     ` Dan Nicolaescu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200910141817.n9EIHmB9024840@godzilla.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=adrian.b.robert@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.