Commit 027ea2a7 by Jim Wilson Committed by Jim Wilson

Patch to fix solaris2 float.h/limits.h conflict.

	* Makefile.in (CROSS_FLOAT_H): Delete.
	(FLOAT_H): Use float_h_file.
	(rest.cross, stmp-int-hdrs): Delete gfloat.h dependency.
	(gfloat.h): Delete.
	(stmp-int-hdrs): Use FLOAT_H instead of gfloat.h.
	(mostlyclean): Delete gloat.h reference.
	(install-cross-rest, install-float-h-cross, stmp-headers): Update
	comments.
	* configure.in (sparcv9-*-solaris2*): Set float_format to none.
	(sparc-*-solaris2*): Set float_format to none for 2.5 and higher.
	(float_h_file): Set from float_format.  Substitute into Makefile.in.
	(float_format): No longer substitute into Makefile.in.
	* cross-make (FLOAT_H): Delete.
	* config/mips/t-cross64 (FLOAT_H): Delete.
	* configure: Rebuilt.

From-SVN: r25518
parent 487f99d2
Mon Mar 1 19:09:32 1999 Jim Wilson <wilson@cygnus.com>
* Makefile.in (CROSS_FLOAT_H): Delete.
(FLOAT_H): Use float_h_file.
(rest.cross, stmp-int-hdrs): Delete gfloat.h dependency.
(gfloat.h): Delete.
(stmp-int-hdrs): Use FLOAT_H instead of gfloat.h.
(mostlyclean): Delete gloat.h reference.
(install-cross-rest, install-float-h-cross, stmp-headers): Update
comments.
* configure.in (sparcv9-*-solaris2*): Set float_format to none.
(sparc-*-solaris2*): Set float_format to none for 2.5 and higher.
(float_h_file): Set from float_format. Substitute into Makefile.in.
(float_format): No longer substitute into Makefile.in.
* cross-make (FLOAT_H): Delete.
* config/mips/t-cross64 (FLOAT_H): Delete.
* configure: Rebuilt.
Mon Mar 1 16:36:18 1999 Jeffrey A Law (law@cygnus.com) Mon Mar 1 16:36:18 1999 Jeffrey A Law (law@cygnus.com)
* mips.md (div_trap_normal, div_trap_mips16): Require the dependent * mips.md (div_trap_normal, div_trap_mips16): Require the dependent
......
...@@ -397,13 +397,9 @@ LIB1FUNCS_EXTRA = ...@@ -397,13 +397,9 @@ LIB1FUNCS_EXTRA =
# Assembler files should have names ending in `.asm'. # Assembler files should have names ending in `.asm'.
LIB2FUNCS_EXTRA = LIB2FUNCS_EXTRA =
# Default float.h source to use for cross-compiler.
# This is overridden by configure.
CROSS_FLOAT_H=$(srcdir)/config/float-@float_format@.h
# We do not try to build float.h anymore. Let configure select the # We do not try to build float.h anymore. Let configure select the
# appropriate pre-built float.h file for the target. # appropriate pre-built float.h file for the target.
FLOAT_H=$(srcdir)/config/float-@float_format@.h FLOAT_H=@float_h_file@
# Program to convert libraries. # Program to convert libraries.
LIBCONVERT = LIBCONVERT =
...@@ -850,7 +846,7 @@ PROTO: proto ...@@ -850,7 +846,7 @@ PROTO: proto
# On the target machine, finish building a cross compiler. # On the target machine, finish building a cross compiler.
# This does the things that can't be done on the host machine. # This does the things that can't be done on the host machine.
rest.cross: $(LIBGCC) gfloat.h specs rest.cross: $(LIBGCC) specs
# Verify that it works to compile and link libgcc1-test. # Verify that it works to compile and link libgcc1-test.
# If it does, then there are sufficient replacements for libgcc1.a. # If it does, then there are sufficient replacements for libgcc1.a.
...@@ -892,11 +888,6 @@ gcc-cross: xgcc$(exeext) ...@@ -892,11 +888,6 @@ gcc-cross: xgcc$(exeext)
cc1$(exeext): $(P) $(OBJS) $(C_OBJS) $(LIBDEPS) cc1$(exeext): $(P) $(OBJS) $(C_OBJS) $(LIBDEPS)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(C_OBJS) $(LIBS) $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(C_OBJS) $(LIBS)
# Copy float.h from its source.
gfloat.h: $(FLOAT_H)
-rm -f gfloat.h
cp $(FLOAT_H) gfloat.h
# Build the version of limits.h that we will install. # Build the version of limits.h that we will install.
xlimits.h: glimits.h limitx.h limity.h xlimits.h: glimits.h limitx.h limity.h
if $(LIMITS_H_TEST) ; then \ if $(LIMITS_H_TEST) ; then \
...@@ -2072,7 +2063,7 @@ gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS) ...@@ -2072,7 +2063,7 @@ gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS)
# Build the include directory including float.h (which no longer depends upon # Build the include directory including float.h (which no longer depends upon
# enquire). # enquire).
stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h gfloat.h stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h
# Copy in the headers provided with gcc. # Copy in the headers provided with gcc.
# The sed command gets just the last file name component; # The sed command gets just the last file name component;
# this is necessary because VPATH could add a dirname. # this is necessary because VPATH could add a dirname.
...@@ -2091,8 +2082,8 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h gfloat.h ...@@ -2091,8 +2082,8 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h gfloat.h
cp xlimits.h include/limits.h cp xlimits.h include/limits.h
chmod a+r include/limits.h chmod a+r include/limits.h
rm -f include/float.h rm -f include/float.h
if [ -s gfloat.h ]; then \ if [ x$(FLOAT_H) != xMakefile.in ]; then \
cp gfloat.h include/float.h && \ cp $(srcdir)/config/$(FLOAT_H) include/float.h && \
chmod a+r include/float.h; \ chmod a+r include/float.h; \
else :; fi else :; fi
# Install the README # Install the README
...@@ -2101,7 +2092,7 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h gfloat.h ...@@ -2101,7 +2092,7 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h gfloat.h
chmod a+r include/README chmod a+r include/README
touch $@ touch $@
# Now that gfloat.h no longer depends upon enquire, this is actually a no-op. # Now that float.h no longer depends upon enquire, this is actually a no-op.
stmp-headers: stmp-headers:
touch $@ touch $@
...@@ -2296,7 +2287,7 @@ mostlyclean: intl.mostlyclean lang.mostlyclean ...@@ -2296,7 +2287,7 @@ mostlyclean: intl.mostlyclean lang.mostlyclean
-rm -f */*.tree */*.loop */*.dbr */*.jump2 */*.sched */*.cse2 -rm -f */*.tree */*.loop */*.dbr */*.jump2 */*.sched */*.cse2
-rm -f */*.sched2 */*.stack */*.regmove */*.gcse -rm -f */*.sched2 */*.stack */*.regmove */*.gcse
# Delete some files made during installation. # Delete some files made during installation.
-rm -f specs gfloat.h float.h-* enquire SYSCALLS.c.X SYSCALLS.c -rm -f specs float.h-* enquire SYSCALLS.c.X SYSCALLS.c
-rm -f collect collect2 mips-tfile mips-tdump alloca.s -rm -f collect collect2 mips-tfile mips-tdump alloca.s
# Delete files generated for fixproto # Delete files generated for fixproto
-rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \ -rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
...@@ -2408,10 +2399,12 @@ install-build: force ...@@ -2408,10 +2399,12 @@ install-build: force
# Run this on the target machine # Run this on the target machine
# to finish installation of cross compiler. # to finish installation of cross compiler.
# This is not used anymore now that float.h does not depend on enquire.
install-cross-rest: install-float-h-cross install-cross-rest: install-float-h-cross
# Install float.h for cross compiler. # Install float.h for cross compiler.
# Run this on the target machine! # Run this on the target machine!
# This is not used anymore now that float.h does not depend on enquire.
install-float-h-cross: installdirs install-float-h-cross: installdirs
# if [ -f enquire ] ; then true; else false; fi # if [ -f enquire ] ; then true; else false; fi
# Note: don't use -. We should fail right away if enquire was not made. # Note: don't use -. We should fail right away if enquire was not made.
......
...@@ -2,8 +2,6 @@ SYSTEM_HEADER_DIR = /usr/cross64/usr/include ...@@ -2,8 +2,6 @@ SYSTEM_HEADER_DIR = /usr/cross64/usr/include
AR = /usr/cross64/usr/bin/ar AR = /usr/cross64/usr/bin/ar
FLOAT_H = $(CROSS_FLOAT_H)
# The rest of the file is identical to t-iris6. # The rest of the file is identical to t-iris6.
# Suppress building libgcc1.a, since the MIPS compiler port is complete # Suppress building libgcc1.a, since the MIPS compiler port is complete
......
...@@ -3088,7 +3088,7 @@ changequote([,])dnl ...@@ -3088,7 +3088,7 @@ changequote([,])dnl
xmake_file=sparc/x-sysv4 xmake_file=sparc/x-sysv4
extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
fixincludes=fixinc.wrap fixincludes=fixinc.wrap
float_format=i128 float_format=none
if test x${enable_threads} = x ; then if test x${enable_threads} = x ; then
enable_threads=$have_pthread_h enable_threads=$have_pthread_h
if test x${enable_threads} = x ; then if test x${enable_threads} = x ; then
...@@ -3128,11 +3128,14 @@ changequote([,])dnl ...@@ -3128,11 +3128,14 @@ changequote([,])dnl
changequote(,)dnl changequote(,)dnl
*-*-solaris2.[0-4]) *-*-solaris2.[0-4])
changequote([,])dnl changequote([,])dnl
fixincludes=fixinc.svr4;; fixincludes=fixinc.svr4
float_format=i128
;;
*) *)
fixincludes=fixinc.wrap;; fixincludes=fixinc.wrap
float_format=none
;;
esac esac
float_format=i128
if test x${enable_threads} = x; then if test x${enable_threads} = x; then
enable_threads=$have_pthread_h enable_threads=$have_pthread_h
if test x${enable_threads} = x; then if test x${enable_threads} = x; then
...@@ -3527,6 +3530,11 @@ if test x$float_format = x ...@@ -3527,6 +3530,11 @@ if test x$float_format = x
then float_format=i64 then float_format=i64
fi fi
if test $float_format = none
then float_h_file=Makefile.in
else float_h_file=float-$float_format.h
fi
if test x$enable_haifa = x if test x$enable_haifa = x
then then
case $target in case $target in
...@@ -4278,7 +4286,7 @@ AC_SUBST(fixincludes) ...@@ -4278,7 +4286,7 @@ AC_SUBST(fixincludes)
AC_SUBST(build_install_headers_dir) AC_SUBST(build_install_headers_dir)
AC_SUBST(build_exeext) AC_SUBST(build_exeext)
AC_SUBST(host_exeext) AC_SUBST(host_exeext)
AC_SUBST(float_format) AC_SUBST(float_h_file)
AC_SUBST(will_use_collect2) AC_SUBST(will_use_collect2)
AC_SUBST(maybe_use_collect2) AC_SUBST(maybe_use_collect2)
AC_SUBST(cc_set_by_configure) AC_SUBST(cc_set_by_configure)
......
...@@ -10,8 +10,5 @@ SYSTEM_HEADER_DIR = $(tooldir)/sys-include ...@@ -10,8 +10,5 @@ SYSTEM_HEADER_DIR = $(tooldir)/sys-include
# Don't try to compile the things we can't compile. # Don't try to compile the things we can't compile.
ALL = all.cross ALL = all.cross
# Use cross-compiler version of float.h.
FLOAT_H = $(CROSS_FLOAT_H)
# Don't install assert.h in /usr/local/include. # Don't install assert.h in /usr/local/include.
assertdir = $(tooldir)/include assertdir = $(tooldir)/include
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment