[MPlayer-cvslog] r24147 - trunk/input/input.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Aug 25 09:51:30 CEST 2007


Hello,
On Sat, Aug 25, 2007 at 09:34:51AM +0200, Reimar D?ffinger wrote:
> On Sat, Aug 25, 2007 at 06:28:04AM +0200, uau wrote:
> > Author: uau
> > Date: Sat Aug 25 06:28:04 2007
> > New Revision: 24147
> > 
> > Log:
> > Use bitfield instead of manual bit fiddling in input.c
> 
> I really should listen more to my intuition.
> 
> > -  if(!select)
> > -    cmd_fds[num_cmd_fd].flags = MP_FD_NO_SELECT;
> > +  cmd_fds[num_cmd_fd].no_select = !select;
> 
> This completely breaks MPlayer on x84_64 with gcc 4.2.0 becasue
> no_select gets never set.
> For the future let's remember: think of how stupid a compiler could be
> at worst and the subtract a bit. And after that, decide which features
> to use.

Here is my test case in case someone wants to see if they can reproduce
with latest SVN gcc and file a bug (and yes I know it crashes if you
forget the arguments ;-) ).
For anything bigger than -O1 it gives this output:
> reimar at hokum ~ $ gcc -O2 bitbug.c -o bitbug
> reimar at hokum ~ $ ./bitbug 0 1
> vals: 0 0 1 0

Greetings,
Reimar Döffinger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitbug.c
Type: text/x-csrc
Size: 262 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20070825/b9559e4c/attachment.c>


More information about the MPlayer-cvslog mailing list