[patch/rfc] Rationalize Instruction Set Architecture targets

Andrew Cagney
2002-08-06T02:42:15Z

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

Hello,

The attached patch is to follow on the previous MAINTAINERS file patch
which gave the impression of removing djgpp from the target list :-(

This patch:

- changes the target/architecture section to the more exact ``Target
Instruction Set Architecture''.

- where possible changes from an OS specific to a generic target

- where that fails, a more correct and active, cross unix target

I'm not sure how to follow this through. I could commit it all as is,
or incrementally has maintainers for specific targets (eg PPC/rs6000,
i386) give an ok.

It does reduce the number of build targets significantly which is a good
thing.

enjoy,
Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 6522 bytes --]

2002-08-05 Andrew Cagney <ac131313@redhat.com>

* MAINTAINERS (Target Instruction Set Architectures): Rename
Target/Architectures. Replace alpha-dec-osf4.0a with alpha-elf.
Replace vax-dec-vms5.5 with vax-netbsd. Replace s390-linux with
s390-linux-gnu. Replace ia64-linux with ia64-linux-gnu. Remove
redundant i386-aout, mcore-pe, mips64-elf, sparc64-elf.
rs6000-ibm-aix4.1. Remove i586-pc-msdosdjgpp which is already
mentioned under Host/Native.

* config/ia64/ia64.mt: New file.
* config/alpha/alpha.mt: New file.

* configure.tgt: Recognize alpha*-*-*. Combine i[3456]86-*-coff*,
i[3456]86-*-elf*, i[3456]86-*-pe*, and i[3456]86-*-aout* into
i[3456]86-*-*. Add mips*-*-*. Combine powerpc-*-eabi*,
powerpc-*-sysv*, powerpc-*-elf*, powerpcle-*-eabi*,
powerpcle-*-sysv*, powerpcle-*-elf* into powerpc*-*-*. Add
sparc*-*-*. Add ia64*-*-*.

Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.191
diff -u -r1.191 MAINTAINERS
--- MAINTAINERS 24 Jul 2002 23:51:35 -0000 1.191
+++ MAINTAINERS 6 Aug 2002 02:34:01 -0000
@@ -47,7 +47,7 @@
instantaneous and loud complaints.

-Target/Architecture:
+Target Instruction Set Architectures:

Generic ISA (Instruction Set Architecture) issues, API variants, CPU
variants. *-tdep.c. The Target/Architecture maintainer works with the
@@ -56,7 +56,7 @@

a29k Deleted.

- alpha --target=alpha-dec-osf4.0a -Werror
+ alpha --target=alpha-elf -Werror
Maintenance only

arc --target=arc-elf ,-Werror
@@ -80,9 +80,6 @@

d30v (--target=d30v-elf OBSOLETE)

- djgpp --target=i586-pc-msdosdjgpp ,-Werror
- (See native and host)
-
fr30 (--target=fr30-elf OBSOLETE)

h8300 --target=h8300hms -Werror
@@ -93,14 +90,14 @@
Maintenance only
Not multi-arch, work in progress

- i386 --target=i386-elf,i386-aout ,-Werror
+ i386 --target=i386-elf ,-Werror
Mark Kettenis kettenis@gnu.org

i960 --target=i960-coff ,-Werror
Maintenance only
OBSOLETE candidate, not multi-arch

- ia64 --target=ia64-linux ,-Werror
+ ia64 --target=ia64-linux-gnu ,-Werror
Kevin Buettner kevinb@redhat.com

m32r (--target=m32r-elf broken)
@@ -115,10 +112,10 @@

m88k (--target=m88k OBSOLETE)

- mcore --target=mcore-elf,mcore-pe ,-Werror
+ mcore --target=mcore-elf ,-Werror
Maintenance only

- mips --target=mips-elf,mips64-elf ,-Werror
+ mips --target=mips-elf ,-Werror
Andrew Cagney cagney@redhat.com

mn10200 --target=mn10200-elf ,-Werror
@@ -138,16 +135,13 @@
powerpc --target=powerpc-eabi ,-Werror
Kevin Buettner kevinb@redhat.com

- rs6000 --target=rs6000-ibm-aix4.1 ,-Werror
- (see rs6000 native and ppc target)
-
- s390 --target=s390-linux ,-Werror
+ s390 --target=s390-linux-gnu ,-Werror
(contact DJ Barrow djbarrow@de.ibm.com)

sh --target=sh-elf ,-Werror
Elena Zannoni ezannoni@redhat.com

- sparc --target=sparc-elf,sparc64-elf ,-Werror
+ sparc --target=sparc-elf ,-Werror
Maintenance only

tic80 Deleted.
@@ -155,7 +149,7 @@
v850 --target=v850-elf ,-Werror
Maintenance only

- vax --target=vax-dec-vms5.5 ,-Werror
+ vax --target=vax-netbsd ,-Werror
Maintenance only

w65 Deleted.
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.75
diff -u -r1.75 configure.tgt
--- configure.tgt 24 Jul 2002 23:51:35 -0000 1.75
+++ configure.tgt 6 Aug 2002 02:34:02 -0000
@@ -42,6 +42,7 @@
alpha*-*-linux*) gdb_target=alpha-linux ;;
alpha*-*-freebsd*) gdb_target=fbsd ;;
alpha*-*-netbsd*) gdb_target=nbsd ;;
+alpha*-*-*) gdb_target=alpha ;;

arc-*-*) gdb_target=arc ;;

@@ -87,9 +88,6 @@
i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
i[3456]86-sequent-sysv*) gdb_target=ptx ;;
i[3456]86-ncr-*) gdb_target=ncr3000 ;;
-i[3456]86-*-aout*) gdb_target=embed ;;
-i[3456]86-*-coff*) gdb_target=embed ;;
-i[3456]86-*-elf*) gdb_target=embed ;;
i[3456]86-*-aix*) gdb_target=i386aix ;;
i[3456]86-*-bsd*) gdb_target=i386bsd ;;
i[3456]86-*-freebsd*) gdb_target=fbsd ;;
@@ -118,8 +116,8 @@
configdirs="${configdirs} nlm" ;;
i[3456]86-*-osf1mk*) gdb_target=i386mk ;;
i[3456]86-*-cygwin*) gdb_target=cygwin ;;
-i[3456]86-*-pe*) gdb_target=embed ;;
i[3456]86-*-vxworks*) gdb_target=vxworks ;;
+i[3456]86-*-*) gdb_target=embed ;;

i960-*-bout*) gdb_target=vxworks960 ;;
i960-nindy-coff*) gdb_target=nindy960 ;;
@@ -133,6 +131,7 @@
ia64-*-linux*) gdb_target=linux
build_gdbserver=yes
;;
+ia64*-*-*) gdb_target=ia64 ;;

m32r-*-elf*) gdb_target=m32r ;;

@@ -208,6 +207,7 @@
mips*-*-sysv*) gdb_target=bigmips ;;
mips*-*-riscos*) gdb_target=bigmips ;;
mips*-*-vxworks*) gdb_target=vxmips ;;
+mips*-*-*) gdb_target=embed ;;

mn10200-*-*) gdb_target=mn10200 ;;
mn10300-*-*) gdb_target=mn10300 ;;
@@ -218,22 +218,15 @@

powerpc-*-netbsd*) gdb_target=nbsd ;;
powerpc-*-aix*) gdb_target=aix ;;
-powerpc-*-eabi* | powerpc-*-sysv* | powerpc-*-elf*)
- if test -f ../sim/ppc/Makefile; then
- gdb_target=ppc-sim
- else
- gdb_target=ppc-eabi
- fi ;;
-powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*)
- if test -f ../sim/ppc/Makefile; then
- gdb_target=ppcle-sim
- else
- gdb_target=ppcle-eabi
- fi ;;
powerpc-*-linux*) gdb_target=linux
build_gdbserver=yes
;;
powerpc-*-vxworks*) gdb_target=vxworks ;;
+powerpc*-*-*) if test -f ../sim/ppc/Makefile; then
+ gdb_target=ppc-sim
+ else
+ gdb_target=ppc-eabi
+ fi ;;

rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
rs6000-*-aix4*) gdb_target=aix4 ;;
@@ -280,6 +273,7 @@
sparc64-*-linux*) gdb_target=sp64linux ;;
sparc64-*-netbsd*) gdb_target=nbsd64 ;;
sparcv9-*-* | sparc64-*-*) gdb_target=sp64 ;;
+sparc*-*-*) gdb_target=sparc-em ;;

xstormy16-*-*) gdb_target=xstormy16 ;;

Index: config/alpha/alpha.mt
===================================================================
RCS file: config/alpha/alpha.mt
diff -N config/alpha/alpha.mt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ config/alpha/alpha.mt 6 Aug 2002 02:34:02 -0000
@@ -0,0 +1,2 @@
+TDEPFILES= alpha-tdep.o
+TM_FILE= tm-alpha.h
Index: config/ia64/ia64.mt
===================================================================
RCS file: config/ia64/ia64.mt
diff -N config/ia64/ia64.mt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ config/ia64/ia64.mt 6 Aug 2002 02:34:02 -0000