public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kelley Cook <kcook@gcc.gnu.org>
To: Stan Shebs <shebs@apple.com>
Cc: Geoffrey Keating <gkeating@apple.com>, gcc-patches@gcc.gnu.org
Subject: Re: .machine for Darwin, new cctools required
Date: Mon, 18 Oct 2004 23:16:00 -0000	[thread overview]
Message-ID: <41744A1A.7040804@gcc.gnu.org> (raw)
In-Reply-To: <416F5409.5030708@apple.com>

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

Stan Shebs wrote:

> /var/tmp//ccFiCTZQ.s:1:Unknown pseudo-op: .machine
> /var/tmp//ccFiCTZQ.s:1:Rest of line ignored. 1st junk character valued 
> 112 (p).
> make[1]: *** [crt2.o] Error 1
> make: *** [all-gcc] Error 2
> 
> So yes, need to update doc/install.texi at least.

Or this patch should do the trick:

tested powerpc-apple-darwin7.5

OK to install?



[-- Attachment #2: darwin_check.patch --]
[-- Type: text/plain, Size: 1084 bytes --]

2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac (powerpc-*-darwin*): Require assembler to support
	.machine directive.
	* configure: Regenerate.

Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.76
diff -p -u -d -r2.76 configure.ac
--- configure.ac	15 Oct 2004 02:26:15 -0000	2.76
+++ configure.ac	18 Oct 2004 22:03:32 -0000
@@ -2695,9 +2695,17 @@ foo:	nop
     case $target in
       *-*-aix*) conftest_s='	.csect .text[[PR]]
 	mfcr 3,128';;
-      *-*-darwin*) conftest_s='	.text
+      *-*-darwin*)
+       gcc_GAS_CHECK_FEATURE([.machine directive support],
+         gcc_cv_as_machine_directive,,,
+         [	.machine ppc7400])
+       if test x$gcc_cv_as_machine_directive != xyes; then
+         echo "*** This target requires an assembler supporting \".machine\"" >&2
+         exit 1
+       fi
+       conftest_s='	.text
 	mfcr r3,128';;
-      *)       conftest_s='	.machine power4
+      *) conftest_s='	.machine power4
 	.text
 	mfcr 3,128';;
     esac

  parent reply	other threads:[~2004-10-18 22:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 22:41 Geoffrey Keating
2004-10-14 22:50 ` Stan Shebs
2004-10-14 23:02   ` Geoffrey Keating
2004-10-15  4:08     ` Stan Shebs
2004-10-15  4:52     ` Stan Shebs
2004-10-15 17:45       ` Geoffrey Keating
2004-10-19 17:55         ` Stan Shebs
2004-10-18 23:16       ` Kelley Cook [this message]
2004-10-18 23:20         ` Mike Stump
2004-10-19 18:09         ` Stan Shebs
2004-10-19 19:12           ` Kelley Cook

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=41744A1A.7040804@gcc.gnu.org \
    --to=kcook@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gkeating@apple.com \
    --cc=shebs@apple.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).