public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC default targets on sparc
@ 2009-12-22 13:59 Jan Engelhardt
  2009-12-22 14:12 ` BERTRAND Joel
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2009-12-22 13:59 UTC (permalink / raw)
  To: gcc-help

Hi,


When gcc is ./configured with -mcpu=ultrasparc, it emits -m64 objects by 
default, when it's with -mcpu=v8, it emits V8 -m32 objects. How would 
one configure it to emit V9 -m32 by default?


thanks
Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GCC default targets on sparc
  2009-12-22 13:59 GCC default targets on sparc Jan Engelhardt
@ 2009-12-22 14:12 ` BERTRAND Joel
  2009-12-22 14:37   ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: BERTRAND Joel @ 2009-12-22 14:12 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: gcc-help

Jan Engelhardt a écrit :
> Hi,
>
>
> When gcc is ./configured with -mcpu=ultrasparc, it emits -m64 objects by
> default, when it's with -mcpu=v8, it emits V8 -m32 objects. How would
> one configure it to emit V9 -m32 by default?

	I use -mv8plus or -mtune=niagara -mcpu=niagara and gcc creates 32 bits 
objects.

	Regards,

	JKB

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GCC default targets on sparc
  2009-12-22 14:12 ` BERTRAND Joel
@ 2009-12-22 14:37   ` Jan Engelhardt
  2009-12-22 15:54     ` BERTRAND Joel
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2009-12-22 14:37 UTC (permalink / raw)
  To: BERTRAND Joel; +Cc: gcc-help


On Tuesday 2009-12-22 14:58, BERTRAND Joel wrote:
> Jan Engelhardt a écrit :
>> Hi,
>>
>>
>> When gcc is ./configured with -mcpu=ultrasparc, it emits -m64 objects by
>> default, when it's with -mcpu=v8, it emits V8 -m32 objects. How would
>> one configure it to emit V9 -m32 by default?
>
> 	I use -mv8plus or -mtune=niagara -mcpu=niagara and gcc creates 32 bits
> objects.

Oops. It should have read:

	./configure --with-cpu=ultrasparc

Not -mcpu or -mtune.

Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GCC default targets on sparc
  2009-12-22 14:37   ` Jan Engelhardt
@ 2009-12-22 15:54     ` BERTRAND Joel
  0 siblings, 0 replies; 4+ messages in thread
From: BERTRAND Joel @ 2009-12-22 15:54 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: gcc-help

Jan Engelhardt a écrit :
>
> On Tuesday 2009-12-22 14:58, BERTRAND Joel wrote:
>> Jan Engelhardt a écrit :
>>> Hi,
>>>
>>>
>>> When gcc is ./configured with -mcpu=ultrasparc, it emits -m64 objects by
>>> default, when it's with -mcpu=v8, it emits V8 -m32 objects. How would
>>> one configure it to emit V9 -m32 by default?
>>
>> 	I use -mv8plus or -mtune=niagara -mcpu=niagara and gcc creates 32 bits
>> objects.
>
> Oops. It should have read:
>
> 	./configure --with-cpu=ultrasparc
>
> 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èque dynamique SPARC32PLUS 
Version 1, V8+ requis, avec liens dynamiques, fichier intégral

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=/usr/shared-apps 
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix 
--enable-nls --enable-checking=release --with-mpfr=/usr/shared-apps/ 
--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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-22 14:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-22 13:59 GCC default targets on sparc Jan Engelhardt
2009-12-22 14:12 ` BERTRAND Joel
2009-12-22 14:37   ` Jan Engelhardt
2009-12-22 15:54     ` BERTRAND Joel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).