From 5aaf0123d8f3e8e4c3eb0e2151395aabb88e0c44 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Wed, 30 Sep 1998 20:35:10 +0000 Subject: [PATCH] config.sub: Recognize i[34567]86-pc-udk as new target. * config.sub: Recognize i[34567]86-pc-udk as new target. * configure.in: Likewise. * config/i386/t-udk: New file. * config/i386/udk.h: New file. From-SVN: r22702 --- gcc/ChangeLog | 7 +++++++ gcc/config.sub | 5 ++++- gcc/config/i386/t-udk | 2 ++ gcc/config/i386/udk.h | 35 +++++++++++++++++++++++++++++++++++ gcc/configure.in | 11 +++++++++++ 5 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 gcc/config/i386/t-udk create mode 100644 gcc/config/i386/udk.h diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e5ea59e08f..2ba55393a49 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Wed Sep 30 22:27:53 1998 Robert Lipe + + * config.sub: Recognize i[34567]86-pc-udk as new target. + * configure.in: Likewise. + * config/i386/t-udk: New file. + * config/i386/udk.h: New file. + Wed Sep 30 19:33:07 1998 Jeffrey A Law (law@cygnus.com) * reorg.c (check_annul_list_true_false): Remove unused variables. diff --git a/gcc/config.sub b/gcc/config.sub index a12a6775e03..f1ee4a1714b 100755 --- a/gcc/config.sub +++ b/gcc/config.sub @@ -117,6 +117,9 @@ case $os in # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -732,7 +735,7 @@ case $os in | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -win32* | -mingw32* | -linux-gnu* | -uxpv* | -beos* ) + | -win32* | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -udk* ) # Remember, each alternative MUST END IN *, to match a version number. ;; -linux*) diff --git a/gcc/config/i386/t-udk b/gcc/config/i386/t-udk new file mode 100644 index 00000000000..96e18643979 --- /dev/null +++ b/gcc/config/i386/t-udk @@ -0,0 +1,2 @@ +# Tell fixincludes to work on this set of headers +SYSTEM_HEADER_DIR = /udk/usr/include diff --git a/gcc/config/i386/udk.h b/gcc/config/i386/udk.h new file mode 100644 index 00000000000..3b93ebcb6a6 --- /dev/null +++ b/gcc/config/i386/udk.h @@ -0,0 +1,35 @@ +/* Configuration for i386 interfacing with SCO's Universal Development Kit + probably running on OpenServer 5, Unixware 2, or Unixware 5 + */ + + +/* We're very much the SVR4 target with "/udk" prepended to everything that's + interesting */ + +#include "i386/sysv4.h" + +#undef MD_EXEC_PREFIX +#define MD_EXEC_PREFIX "/udk/usr/ccs/bin/" + +#undef MD_STARTFILE_PREFIX +#define MD_STARTFILE_PREFIX "/udk/usr/ccs/lib/" + +#if 0 /* Later. */ +#undef PREFERRED_DEBUGGING_TYPE +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG +#endif + +#define STANDARD_INCLUDE_DIR "/udk/usr/include" + +#undef LINK_SPEC +#define LINK_SPEC "%{h*} %{v:-V} \ + %{b} %{Wl,*:%*} \ + %{static:-dn -Bstatic} \ + %{shared:-G -dy -z text} \ + %{symbolic:-Bsymbolic -G -dy -z text} \ + %{G:-G} \ + %{YP,*} \ + %{!YP,*:%{p:-Y P,/udk/usr/ccs/lib/libp:/udk/usr/lib/libp:/udk/usr/ccs/lib:/udk/usr/lib} \ + %{!p:-Y P,/udk/usr/ccs/lib:/usr/lib}} \ + %{Qy:} %{!Qn:-Qy}" + diff --git a/gcc/configure.in b/gcc/configure.in index b6e3bc0836d..1d40d2a7c64 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1350,6 +1350,17 @@ changequote([,])dnl xmake_file=x-svr4 extra_parts="crtbegin.o crtend.o" ;; +changequote(,)dnl + i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit +changequote([,])dnl + xm_file="xm-alloca.h xm-siglist.h ${xm_file}" + xm_defines="USG POSIX" + tm_file=i386/udk.h + tmake_file="i386/t-crtpic i386/t-udk" + xmake_file=x-svr4 + extra_parts="crtbegin.o crtend.o" + fixincludes="fixinc.svr4" + ;; changequote(,)dnl i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ changequote([,])dnl