[MPlayer-dev-eng] Re: [PATCH] Enable FTZ/DAZ for SSE
Zuxy Meng
zuxy.meng at gmail.com
Tue Mar 6 13:21:32 CET 2007
Hi,
2007/3/6, Diego Biurrun <diego at biurrun.de>:
> On Tue, Mar 06, 2007 at 07:46:47PM +0800, Zuxy Meng wrote:
> >
> > 2007/3/6, Zuxy Meng <zuxy.meng at gmail.com>:
> > >
> > >GCC has recently implemented FTZ/DAZ optimization
> > >(http://gcc.gnu.org/ml/gcc/2005-08/msg00281.html) which is turned on
> > >by -ffast-math or -funsafe-math-optimizations; hence the patch.
> >
> > Sorry but previous patch contains an unrelated part. Try this instead.
> >
> > --- Makefile ?????? 22476??
> > +++ Makefile ????????????
> > @@ -230,10 +230,10 @@
> >
> > mplayer$(EXESUF): $(MPLAYER_DEPS)
> > - $(CC) -o $@ $^ $(LDFLAGS_MPLAYER)
> > + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS_MPLAYER)
>
> Looks incorrect. This is the linking stage, compilation flags should
> not be necessary here.
There's an "endfile" line in the specs file which looks like
%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}
So an additional object file gets linked in if -ffast-math or
-funsafe-math-optimizations is in the command line. It doesn't affect
compilation really but the link stage instead.
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the MPlayer-dev-eng
mailing list