[Ffmpeg-devel] [patch] strict-aliasing support
Michael Niedermayer
michaelni
Tue Jul 4 21:44:33 CEST 2006
Hi
On Tue, Jul 04, 2006 at 03:38:11PM -0400, Rich Felker wrote:
> On Tue, Jul 04, 2006 at 02:46:33AM +0300, Uoti Urpala wrote:
> > On Tue, 2006-07-04 at 00:01 +0200, Luca Barbato wrote:
> > > open bug related to the issue
> > >
> > > 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
> > and says that stack variables can't have alignment greater than what is
> > used for the stack frames themselves.
>
> This is utter nonsense, there's no technical reason you can't align
yes, exactly
you can always do
tmp[size+align]
*name= (tmp + align - 1) & ~(align-1);
and gcc should fail if it cant align something instead of causing random
crashes during runtime without the slightest warning during compilation
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list