]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/6540 (sparc-sun-solaris2.7 (perhaps all bi-arch sparc) fail libstdc...
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 May 2002 21:28:50 +0000 (23:28 +0200)
committerDavid S. Miller <davem@gcc.gnu.org>
Thu, 2 May 2002 21:28:50 +0000 (14:28 -0700)
2002-05-02  Jakub Jelinek  <jakub@redhat.com>

PR target/6540
* config.gcc (sparc*-*-solaris2*): Set float_format to i128.
* config/float-sparc.h: Assume 128-bit long double if
__LONG_DOUBLE_128__ is defined.

From-SVN: r53068

gcc/ChangeLog
gcc/config.gcc
gcc/config/float-sparc.h

index 8ec7945367e6072b3687e26abb91d360c6789f07..16eb65ca11e1ae6beaaf804d1ebc57db0b1118d7 100644 (file)
@@ -1,5 +1,10 @@
 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
 
+       PR target/6540
+       * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
+       * config/float-sparc.h: Assume 128-bit long double if
+       __LONG_DOUBLE_128__ is defined.
+
        PR target/6512, PR target/5628
        * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
        when memory is not aligned.
index 326bb238e67f675f980335ebfc31420c62732a8b..6736c3a285f1d310622298cd2c4b81ff87a88913 100644 (file)
@@ -3173,7 +3173,7 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
                tmake_file="$tmake_file t-slibgcc-sld"
        fi
        extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
-       float_format=sparc
+       float_format=i128
        if test x${enable_threads} = x ; then
            enable_threads=$have_pthread_h
            if test x${enable_threads} = x ; then
@@ -3199,14 +3199,7 @@ sparc-hal-solaris2*)
                tmake_file="$tmake_file t-slibgcc-sld"
        fi
         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
-        case $machine in
-        *-*-solaris2.[0-4])
-                float_format=i128
-        ;;
-        *)
-                float_format=sparc
-                ;;
-        esac
+       float_format=i128
        thread_file='solaris'
         ;;
 sparc-*-solaris2*)
@@ -3241,14 +3234,7 @@ sparc-*-solaris2*)
        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
-               ;;
-       *)
-               float_format=sparc
-               ;;
-       esac
+       float_format=i128
        if test x${enable_threads} = x; then
            enable_threads=$have_pthread_h
            if test x${enable_threads} = x; then
index f3c258388b16e4ead14cef97e91629ba2a26c55e..84250e520a6ba9c203aaed8d78518d81ab0073ab 100644 (file)
@@ -66,7 +66,7 @@
 #undef DBL_MAX_10_EXP
 #define DBL_MAX_10_EXP 308
 
-#if defined(__sparcv9) || defined(__arch64__)
+#if defined(__sparcv9) || defined(__arch64__) || defined(__LONG_DOUBLE_128__)
 
    /* Number of base-FLT_RADIX digits in the significand of a long double */
 #undef LDBL_MANT_DIG