autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #8235] ax_gcc_archflag.m4 recognizes ultrasparc IIi as ultrasparc


From: anonymous
Subject: [patch #8235] ax_gcc_archflag.m4 recognizes ultrasparc IIi as ultrasparc3, which is wrong
Date: Sat, 09 Nov 2013 11:01:21 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0

URL:
  <http://savannah.gnu.org/patch/?8235>

                 Summary: ax_gcc_archflag.m4 recognizes ultrasparc IIi as
ultrasparc3, which is wrong
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Sat 09 Nov 2013 11:01:20 AM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This problem was reported to the libffi project, along with a proposed patch.

https://sourceware.org/ml/libffi-discuss/2013/msg00196.html

Shigeharu TAKENO address@hidden via sourceware.org 
        
1:49 AM (4 hours ago)
                
to libffi-discuss
shige 11/09 2013
----------------

I use Solaris 10 on an UltraSPARC-IIi machine. The configure
script of libffi-3.0.13 recognizes the cpu to ultrasparc3, but it
is not correct because "UltraSPARC-IIi" should be identified as
ultrasparc (IIi is not III). The following patch may fix the
problem.

----- From here -----
diff -uN libffi-3.0.13/configure.ORG libffi-3.0.13/configure
--- libffi-3.0.13/configure.ORG 2013-03-18 07:36:19.000000000 +0900
+++ libffi-3.0.13/configure     2013-11-08 18:55:24.797500000 +0900
@@ -12811,7 +12811,7 @@


      cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep
-i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
-     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS
$as_cr_letters`
+     cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' |tr
$as_cr_LETTERS $as_cr_letters`
      case $cputype in
          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9"
;;
          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
----- To here -----

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 address@hidden   TEL(&FAX): +81-257-22-8161
+========================================================+




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8235>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]