summaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-12 23:02:45 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-12 23:02:45 +0000
commitd5a614bc58a329d691e378d4ded28075f4ded00e (patch)
tree382d6ed5de207c7f602d15756e5d3615dc26d066 /gcc/config.gcc
parent03035422ac77a68bdaa4563b6cafc7909e5f7d3c (diff)
downloadgcc-d5a614bc58a329d691e378d4ded28075f4ded00e.tar.gz
* config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
(sparc*-*-solaris): Clean up header files. * configure.in (AS_SPARC64_FLAG): Error out if can't find it and plan on generating 64-bit code. * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2. * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code. * config/sparc/sol2-sld-64.h: Rename ... * config/sparc/sol2-bi.h: ... here. Remove the bits that checked for AS_SPARC64_FLAG not defined. * config/sparc/sol2-gld-bi.h: New. * config/sparc/sol2-sld.h: Remove. * config/sparc/sol26-sld.h: New. * config/sparc/sol2.h: Tidy comments. * doc/install.texi: Document sparc-solaris configury changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc39
1 files changed, 18 insertions, 21 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 412130672dd..844e79b713a 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3070,12 +3070,10 @@ sparc-*-rtems*|sparc-*-rtemself*)
thread_file='rtems'
fi
;;
-sparcv9-*-solaris2* | sparc64-*-solaris2*)
- if test x$gnu_ld = xyes
- then
- tm_file="sparc/sol2-sld-64.h sparc/sol2-64.h sparc/sol2-gld.h"
- else
- tm_file=sparc/sol2-sld-64.h
+sparc64-*-solaris2*)
+ tm_file="sparc/biarch64.h sparc/sol2-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-bi.h"
+ if test x$gnu_ld = xyes; then
+ tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
fi
xm_defines=POSIX
tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
@@ -3121,33 +3119,32 @@ sparc-hal-solaris2*)
esac
thread_file='solaris'
;;
-sparc-*-solaris2*)
- if test x$gnu_ld = xyes
- then
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-gld.h"
- else
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sol2-sld.h"
+sparc-*-solaris2* | sparcv9-*-solaris2*)
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h"
+ if test x$gnu_ld = xyes; then
+ tm_file="${tm_file} sparc/sol2-gld.h"
fi
- xm_defines=POSIX
tmake_file="sparc/t-sol2 sparc/t-crtfm"
if test x$gnu_ld = xyes; then
tmake_file="$tmake_file t-slibgcc-elf-ver"
else
tmake_file="$tmake_file t-slibgcc-sld"
fi
- extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
case $machine in
- *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
- *-*-solaris2*)
- if test x$gnu_ld = xyes
- then
- tm_file="sparc/sol2-sld-64.h sparc/sol2-64.h sparc/sol2-gld.h"
- else
- tm_file="sparc/sol2-sld-64.h"
+ sparcv9-*)
+ tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
+ if test x$gnu_ld = xyes; then
+ tm_file="${tm_file} sparc/sol2-gld-bi.h"
fi
tmake_file="$tmake_file sparc/t-sol2-64"
;;
+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
+ if test x$gnu_ld = xno; then
+ tm_file="${tm_file} sparc/sol26-sld.h"
+ fi
esac
+ xm_defines=POSIX
+ extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
case $machine in
*-*-solaris2.[0-4])
float_format=i128