[FFmpeg-cvslog] r11889 - trunk/libavutil/mem.h

Ivan Kalvachev ikalvachev
Mon Feb 11 00:33:55 CET 2008


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...




More information about the ffmpeg-cvslog mailing list