* configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
authorStan Shebs <shebs@codesourcery.com>
Tue, 14 Nov 1995 04:45:54 +0000 (04:45 +0000)
committerStan Shebs <shebs@codesourcery.com>
Tue, 14 Nov 1995 04:45:54 +0000 (04:45 +0000)
* configure: Update.
* mpw-make.sed: Reorder commands to make sed happier.
* config/te-macos.h: New file.
* config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.

gas/ChangeLog
gas/config/te-macos.h [new file with mode: 0644]
gas/mpw-make.sed

index 19338fb..604b041 100644 (file)
@@ -1,3 +1,11 @@
+Mon Nov 13 20:39:06 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * configure.in (ppc-*-macos*, ppc-*-mpw*): New configurations.
+       * configure: Update.
+       * mpw-make.sed: Reorder commands to make sed happier.
+       * config/te-macos.h: New file.
+       * config/tc-ppc.h (TARGET_FORMAT): Set correctly for PowerMac.
+
 Sun Nov 12 21:14:56 1995  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-hppa.c (pa_ip): Fix off-by-2 bug in length check for
diff --git a/gas/config/te-macos.h b/gas/config/te-macos.h
new file mode 100644 (file)
index 0000000..5f48dc4
--- /dev/null
@@ -0,0 +1,11 @@
+/* This file is te-macos.h.  */
+
+#define TE_POWERMAC 1
+
+/* Added these, because if we don't know what we're targetting we may
+   need an assembler version of libgcc, and that will use local
+   labels.  */
+#define LOCAL_LABELS_DOLLAR 1
+#define LOCAL_LABELS_FB 1
+
+#include "obj-format.h"
index a5f4070..4f2d553 100644 (file)
@@ -64,16 +64,18 @@ LOCAL_LOADLIBES = \
 # Whack out recursive makes, they won't work.
 /^[    ][      ]*srcroot=/,/^[         ][      ]*(cd /d
 
+# Work around quoting problems by using multiple echo commands.
 /'#define GAS_VERSION "{VERSION}"'/c\
        Echo -n '#define GAS_VERSION "' >> "{o}"config.new\
        Echo -n "{VERSION}" >> "{o}"config.new\
        Echo -n '"' >> "{o}"config.new
 
+# Add a "stamps" target.
+$a\
+stamps \\Option-f config-stamp\
+
 # Whack out config-rebuilding targets, they won't work.
+/^Makefile \\Option-f/,/^$/d
 /^config.status \\Option-f/,/^$/d
 
 /^"{o}"config.h \\Option-f/s/^/#/
-
-# Add a "stamps" target.
-$a\
-stamps \\Option-f config-stamp\