lkml.org 
[lkml]   [1998]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectBad gcc code for atomic_dec
Date
gcc 2.7.2.3 for i586 generates an extra load for atomic_dec(&xxx).  It
outputs

movl xxx,%ebx
lock decl xxx

and never uses the value in %ebx, wasting a register. Strangely
enough, atomic_inc is fine, just "lock incl xxx".


\
 
 \ /
  Last update: 2005-03-22 13:41    [W:2.105 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site