[MPlayer-dev-eng] [PATCH] -fno-strict-aliasing on gcc > 3

Michael Niedermayer michaelni at gmx.at
Thu Jul 14 01:05:27 CEST 2005


Hi

On Wednesday 13 July 2005 17:01, Reimar Döffinger wrote:
> Hi,
>
> On Tue, Jul 12, 2005 at 09:59:07PM +0300, Uoti A Urpala wrote:
> > Reimar Döffinger wrote:
> > > Anyway I'd say the values are well in the error margin.
> > >
> > > compiled with gcc 3.4.4 (Debian)
> >
> > gcc 3.4 does less with strict-aliasing than gcc 4 (and most people
> > didn't seem to hit problems with non-strict-aliasing-safe code before
> > gcc 4).
>
> So IMHO this means we have the choice between using -fno-strict-aliasing
> or finding somebody to fix mp3lib, libmpeg2 and libfaad2.
> The latter one we've been trying now since almost one year btw.

just found maybe another choice, add __attribute__((__may_alias__)) to all the 
problematic cases, thats easier and much more readable then the union{type1; 
type2} solution

[...]
-- 
Michael




More information about the MPlayer-dev-eng mailing list