From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2434 invoked by alias); 22 Dec 2009 14:37:46 -0000 Received: (qmail 2426 invoked by uid 22791); 22 Dec 2009 14:37:45 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Dec 2009 14:37:41 +0000 Received: from mail.gnu.org ([199.232.76.166]:56217 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NN5rn-00035j-Ho for gcc-help@gnu.org; Tue, 22 Dec 2009 09:37:39 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NN5rj-0007Ih-Ja for gcc-help@gnu.org; Tue, 22 Dec 2009 09:37:39 -0500 Received: from rayleigh.systella.fr ([213.41.184.253]:51526) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NN5ri-0007IP-Ak for gcc-help@gnu.org; Tue, 22 Dec 2009 09:37:34 -0500 Received: from [192.168.0.4] (bertrand@cauchy.systella.fr [192.168.0.4]) (authenticated bits=0) by rayleigh.systella.fr (8.14.3/8.14.3/Debian-9) with ESMTP id nBMEbQkZ019149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 22 Dec 2009 15:37:27 +0100 Message-ID: <4B30D9A6.3070500@systella.fr> Date: Tue, 22 Dec 2009 15:54:00 -0000 From: BERTRAND Joel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.4) Gecko/20091112 Iceape/2.0 (Debian-2.0-1) MIME-Version: 1.0 To: Jan Engelhardt CC: gcc-help@gnu.org Subject: Re: GCC default targets on sparc References: <4B30D09D.9010407@systella.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00301.txt.bz2 Jan Engelhardt a =C3=A9crit : > > On Tuesday 2009-12-22 14:58, BERTRAND Joel wrote: >> Jan Engelhardt a =C3=A9crit : >>> Hi, >>> >>> >>> When gcc is ./configured with -mcpu=3Dultrasparc, it emits -m64 objects= by >>> default, when it's with -mcpu=3Dv8, it emits V8 -m32 objects. How would >>> one configure it to emit V9 -m32 by default? >> >> I use -mv8plus or -mtune=3Dniagara -mcpu=3Dniagara and gcc creates 32 b= its >> objects. > > Oops. It should have read: > > ./configure --with-cpu=3Dultrasparc > > Not -mcpu or -mtune. I use this options and I obtain by default : tchaikovski:[/usr/local/lib] > file libSDL.so libSDL.so: ELF 32 bits MSB biblioth=C3=A8que dynamique SPARC32PLUS=20 Version 1, V8+ requis, avec liens dynamiques, fichier int=C3=A9gral on a T1000 server running Solaris. For information : tchaikovski:[/usr/local/lib] > gcc -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: ../gcc-4.4.1/configure --prefix=3D/usr/shared-apps=20 --enable-languages=3Dc,c++,fortran --enable-shared --enable-threads=3Dposix= =20 --enable-nls --enable-checking=3Drelease --with-mpfr=3D/usr/shared-apps/=20 --with-gnu-ld --enable-bootstrap Thread model: posix gcc version 4.4.1 (GCC) tchaikovski:[/usr/local/lib] > This compiler can build 32 and 64 bits objects with -m32 and -m64 options. Regards, JKB