[Ffmpeg-devel] [patch] strict-aliasing support

Uoti Urpala uoti.urpala
Tue Jul 4 23:13:32 CEST 2006

On Tue, 2006-07-04 at 21:44 +0200, Michael Niedermayer wrote:
> > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660
> > > 
> > > As I understand it, this problem isn't actually considered a bug in gcc,
> hmmm, ive no clue what they consider it to be but they havnt closed it yet

It's open because of the missing diagnostic.

> you can always do
> tmp[size+align]
> *name= (tmp + align - 1) & ~(align-1);

Yes, but apparently the gcc developers (at least those who edited the
bug) don't consider not doing that to be a bug.

> and gcc should fail if it cant align something instead of causing random
> crashes during runtime without the slightest warning during compilation

As mentioned above that's what the bug report is currently open for.

More information about the ffmpeg-devel mailing list