This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Preliminary Unixware7/SVR5 support patches
- To: egcs at cygnus dot com
- Subject: Preliminary Unixware7/SVR5 support patches
- From: Robert Lipe <robertl at dgii dot com>
- Date: Wed, 31 Dec 1997 14:51:12 -0600
- Cc: rr at sco dot com
SCO has announced Unixware 7, a product based on System V Release 5.
It's not yet shipping, but I've discussed this with appropriate people
at SCO and we've agreed that changes of this nature do not violate any
NDAs.
The following patches should get at least the four of us that are on
the egcs lists that are running the prereleases all on the same page
instead of individually implementing our own hacks and driving each
other crazy with problems the others don't have. :-)
With only these changes, egcs bootstraps, and almost all of a 'make
check' passes, but it does manage to trip over itself with some of the
C++ math functions (believed to be an artifact of me blowing off the
fixincludes process right now) and some library dependencies (which I
will probably fix by adding a new i386/blah.h file that #includes
sysv4.h and redefines LIB_SPEC). This is why there is the token
"placeholder" entry in gcc/configure.in to make a place for those
changes to be made.
Wed Dec 31 14:38:51 1997 Robert Lipe (robertl@dgii.com)
* config.guess: Recognize i[3456]-i586-UnixWare7-sysv5.
--- config.guess_ Fri Dec 26 23:32:07 1997
+++ config.guess Mon Dec 29 21:42:46 1997
@@ -667,6 +667,13 @@
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
fi
exit 0 ;;
+ i?86:*:5:7)
+ UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEAS
E}
+ exit 0 ;;
i?86:*:3.2:*)
if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
Wed Dec 31 14:38:51 1997 Robert Lipe (robertl@dgii.com)
* configure.in: (i[3456]86-UnixWare7-sysv5) Treat much like SVR4
for now
--- gcc/configure.in_ Mon Dec 29 21:37:32 1997
+++ gcc/configure.in Mon Dec 29 23:09:57 1997
@@ -1031,6 +1031,18 @@
thread_file='solaris'
fi
;;
+ i[[3456]]86-*-sysv5*) # Intel x86 on System V Release 5
+ xm_file=i386/xm-sysv4.h
+ tm_file=i386/sysv4.h
+ if [[ x$stabs = xyes ]]
+ then
+ tm_file="${tm_file} dbx.h"
+ fi
+ tmake_file=i386/t-crtpic
+ xmake_file=x-svr4
+ extra_parts="crtbegin.o crtend.o"
+ fixincludes=Makefile.in # The headers are just fine, thank you.
+ ;;
i[[3456]]86-*-sysv4*) # Intel 80386's running system V.4
xm_file=i386/xm-sysv4.h
tm_file=i386/sysv4.h
--
Robert Lipe http://www.dgii.com/people/robertl robertl@dgii.com