This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch for cross-compiling hosted on AIX (for egcs/config).



Cross-compiling hosted on AIX was broken because a mt file was
masquerading as a mh file.  Of course, it's always wrong to set
*_FOR_TARGET in a mh file.

OK to commit?

(This _is_ the master copy, right?)

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/toplev-aixar.patch=================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/ChangeLog,v
retrieving revision 1.165
diff -p -u -u -p -r1.165 ChangeLog
--- ChangeLog	1999/12/23 01:47:09	1.165
+++ ChangeLog	2000/01/07 00:29:24
@@ -1,3 +1,8 @@
+2000-01-06  Geoff Keating  <geoffk@cygnus.com>
+
+	* configure.in: Use mt-aix43 to handle *_TARGET defs,
+	not mh-aix43.
+
 Thu Dec 23 03:43:36 1999  Hans-Peter Nilsson  <hp@bitrange.com>
 
 	* MAINTAINERS: Add myself to "write after approval" list.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/configure.in,v
retrieving revision 1.41
diff -p -u -u -p -r1.41 configure.in
--- configure.in	1999/10/03 20:21:45	1.41
+++ configure.in	2000/01/07 00:29:24
@@ -14,7 +14,7 @@
 ## For more information on these two systems, check out the documentation
 ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).  
 
-#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998, 1999 Free Software Foundation, Inc.
+#   Copyright (C) 1992-99, 2000 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -234,9 +234,6 @@ case "${host}" in
   *-*-lynxos*)
     host_makefile_frag="${host_makefile_frag} config/mh-lynxos"
     ;;
-  *-*-aix4.[3456789]* | *-*-aix[56789].*)
-    host_makefile_frag="${host_makefile_frag} config/mh-aix43"
-    ;;
   *-*-sysv4*)
     host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
     ;;
@@ -342,6 +339,9 @@ case "${target}" in
     ;;
   *-*-linux-gnu)
     target_makefile_frag="${target_makefile_frag} config/mt-linux"
+    ;;
+  *-*-aix4.[3456789]* | *-*-aix[56789].*)
+    target_makefile_frag="${target_makefile_frag} config/mt-aix43"
     ;;
 esac
 
Index: config/ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/config/ChangeLog,v
retrieving revision 1.12
diff -p -u -u -p -r1.12 ChangeLog
--- ChangeLog	1999/09/08 06:31:40	1.12
+++ ChangeLog	2000/01/07 00:29:24
@@ -1,3 +1,8 @@
+2000-01-06  Geoff Keating  <geoffk@cygnus.com>
+
+	* mh-aix43: Delete, move to mt-aix43.
+	* mt-aix43: New file.
+
 Tue Sep  7 23:31:01 1999  Linas Vepstas  <linas@linas.org>
 
 	* mh-openedition: New file.
Index: config/mh-aix43
===================================================================
RCS file: mh-aix43
diff -N mh-aix43
--- /sourceware/cvs-tmp/cvsyO5fx2	Thu Jan  6 16:29:24 2000
+++ /dev/null	Tue May  5 13:32:27 1998
@@ -1,4 +0,0 @@
-# AIX 4.3 and above requires -X32_64 flag to all ar and nm commands
-# to handle both 32-bit and 64-bit objects.
-AR_FOR_TARGET=ar -X32_64
-NM_FOR_TARGET=nm -X32_64
Index: config/mt-aix43
===================================================================
RCS file: mt-aix43
diff -N mt-aix43
--- /dev/null	Tue May  5 13:32:27 1998
+++ mt-aix43	Thu Jan  6 16:29:24 2000
@@ -0,0 +1,4 @@
+# AIX 4.3 and above requires -X32_64 flag to all ar and nm commands
+# to handle both 32-bit and 64-bit objects.
+AR_FOR_TARGET=ar -X32_64
+NM_FOR_TARGET=nm -X32_64
============================================================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]