[MPlayer-dev-eng] [PATCH] fix asm deps [RESENT]

D Richard Felker III dalias at aerifal.cx
Sun Mar 21 23:22:05 CET 2004


On Sun, Mar 21, 2004 at 09:09:11PM +0100, Dirk Mueller wrote:
> On Thursday 18 March 2004 00:40, Michael Niedermayer wrote:
> 
> > ok, it seems u missunderstood, the reason why the code is using MANGLE()
> > instead of "m" to access some variables is because it didnt work the other
> > way with some version of gcc
> 
> eh, which version of gcc? I've been reading cvs annotate and cvs log quite 
> extensively, and the only reason for MANGLE() is that the symbol names are 
> different on Cygwin/Windows as far as I can see. 
> 
> > so it doesnt help if it compiles with ur gcc 
> > 2.95.?, one or more of these asm statements will fail to compile or lead to
> > incorrect code with some other gcc version
> 
> which other gcc version? there is no indication whatsoever that there was ever 
> such a problem in CVS, at least in the file I touched. It might have been in 
> some other place however. Reading all changelogs of all files in CVS is quite 
> painful..
> 
> I don't see why this would cause a bigger problem, since gcc documentation 
> describes this as the way to go. 
> 
> > the problem should be fixed in this strange way anyway, the correct fix is
> > to add attribute_used to the variables and define it to attribute((used))
> > if gcc supports it
> 
> Well, I'd love to do a patch that way, but it doesn't work. gcc "see's" the 
> trick and ignores the __attribute__ ((used)). With other words - the static 

gcc does NOT ignore attribute((used)). If it does, this is a bug and
you should report it to the gcc developers...

Rich




More information about the MPlayer-dev-eng mailing list