This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: .machine for Darwin, new cctools required
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?
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