This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [doc, testsuite, libgfortran] Avoid use of SSE/SSE2/SSE3 on Solaris 8/9 x86


On Fri, Jul 9, 2010 at 9:58 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
>> If your OS doesn't support SSE, but -march=native may generate SSE
>> instructions, then you get a big problem.
>
> Well, only if you use -march=native ;-) ?It's obviously the same problem
> addressed by this patch: the presence of SSE support in the CPU is not
> enough to decide if the insns can actually be used. ?Same solution,
> obviously.
>

If you put this knowledge somewhere in gcc, you can use it to check SSE
support. That is "gcc -msse2" should fail to compile if SSE2 isn''t supported
by target OS.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]