Re: [PATCH] sparc/build: Make all compiler flags also clang-compatible

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

 



Hi Adrian~

John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx> wrote:
> Would be interesting to find out what Sun's own C/C++ compiler (Sun Studio)
> does in this case. I can try to run some tests on Solaris or you can check
> out the Solaris machines in the GCC compile farm [1].

I am using the version included in Oracle Studio 12.6, and it seems
that it always emit a EM_SPARC32PLUS type for 32-bit objects.

The documentation for the -xarch also states that even when using
the most generic target (`sparc`), it only supports emitting for V9 ISA
(that is, EM_SPARC32PLUS for 32-bit target):

> sparc
> Compile for the SPARC-V9 ISA.
> Compile for the V9 ISA, but without the Visual Instruction Set (VIS),
> and without other implementation-specific ISA extensions. This option
> enables the compiler to generate code for good performance on
> the V9 ISA.


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux