This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Preprocessor macro for -mfpmath=sse ?
On Sun, May 05, 2002 at 11:14:23AM +0200, Jan Hubicka wrote:
> > > Both appear in gcc-3.1 when -mfpmath=sse is invoked together with
> > > -march=pentium4. __SSE__ alone appears with -march=pentium4 instead.
> >
> > OK, but "-mfpmath=sse -msse2" is enough to generate SSE2 code, without the
> > need for -march=pentium4 (I checked the assembly).
> >
> > The documentation of -mfpmath states : "you need to use -march=cpu-type,
> > -msse or -msse2 switches to enable SSE extensions". (see the "or" ?)
> >
> > So I think that -msse2 should be enough to have __SSE2__, but currently
> > it's not. Similarly for -msse => __SSE__.
>
> This is bug, please just report it to gnats. I will try to fix it at monday
> if time allows.
It's now PR target/6565.
Thanks for taking care of this.
--
Sylvain