public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/6565: x86 : -msse does not define __SSE__
@ 2002-10-03 10:46 hubicka
  0 siblings, 0 replies; 2+ messages in thread
From: hubicka @ 2002-10-03 10:46 UTC (permalink / raw)
  To: Sylvain.Pion, gcc-bugs, gcc-prs, nobody

Synopsis: x86 : -msse does not define __SSE__

State-Changed-From-To: open->closed
State-Changed-By: hubicka
State-Changed-When: Thu Oct  3 10:46:34 2002
State-Changed-Why:
    Will commit obvious fix

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6565


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

* target/6565: x86 : -msse does not define __SSE__
@ 2002-05-05 10:26 Sylvain.Pion
  0 siblings, 0 replies; 2+ messages in thread
From: Sylvain.Pion @ 2002-05-05 10:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Sylvain.Pion


>Number:         6565
>Category:       target
>Synopsis:       x86 : -msse does not define __SSE__
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 05 10:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sylvain Pion
>Release:        3.1 and 3.2
>Organization:
>Environment:
Reading specs from ./gcc/Linux_trunc/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /u/zosma/0/prisme/spion/gcc/gcc_trunc/configure --disable-shared --disable-nls --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_trunc --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld
Thread model: single
gcc version 3.2 20020502 (experimental)
>Description:
-D__SSE__ and -D__SSE2__ are only added with -march=pentium4,
but -msse or -msse2 ought to be enough since they are enough to generate SSE code when -mfpmath=sse is set.

On the other hand, -march=pentium4 alone (without -mfpmath=sse) defines __SSE__, but uses the i387 for math.

See the thread starting at :
http://gcc.gnu.org/ml/gcc/2002-05/msg00253.html

In short, there should be a way (macro) to tell the programmer if SSE[2] math is going to be used instead of i387 math (which is not IEEE 754 compliant, and thus requires costly workarounds in some cases).
>How-To-Repeat:
touch foo.c
gcc -v -c -msse -mfpmath=sse foo.c
=> does not define -D__SSE2__


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-10-03 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 10:46 target/6565: x86 : -msse does not define __SSE__ hubicka
  -- strict thread matches above, loose matches on Subject: below --
2002-05-05 10:26 Sylvain.Pion

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).