[FFmpeg-cvslog] r11889 - trunk/libavutil/mem.h
Michael Niedermayer
michaelni
Mon Feb 11 00:46:31 CET 2008
On Mon, Feb 11, 2008 at 01:33:55AM +0200, Ivan Kalvachev wrote:
> On Feb 11, 2008 12:43 AM, Reimar D?ffinger
> <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> > Hello,
> > On Sun, Feb 10, 2008 at 10:32:37PM +0000, M?ns Rullg?rd wrote:
> > > cehoyos <subversion at mplayerhq.hu> writes:
> > > > Modified: trunk/libavutil/mem.h
> > > > ==============================================================================
> > > > --- trunk/libavutil/mem.h (original)
> > > > +++ trunk/libavutil/mem.h Sat Feb 9 21:47:11 2008
> > > > @@ -28,7 +28,11 @@
> > > >
> > > > #ifdef __GNUC__
> > > > #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
> > > > +#ifdef __ICC
> > > > + #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
> > > > +#else
> > > > #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n)))
> > > > +#endif
> > >
> > > Why does one of those cases use 'static' and not the other?
> >
> > Hmm... Have you been sleeping or hiding from the flames under a rock?
> > ;-)
> > Basically the symbols ICC generates for static variables do not work with our
> > asm-MANGLE (at least I think it does, in the cases I really looked at it
> > just removed them completely because they seemed unused to it for all I can tell).
> > Making the symbols global forces ICC to keep the variables and use the standard
> > symbol naming.
>
> I think this explanation deserves to be put as comment next to that
> line of code.
> Next person who ask himself "why" may need a lot more time to find it out...
no, next person who sees this will think, uhm, thats a bug lets put static
there :)
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080211/f9c1b1b8/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list