Richard Henderson wrote: > I believe some poor design decisions were made for p4 here. But even > on a platform without such problems you can expect a factor of 30 > difference.
So, that suggests that inlining these operations probably isn't very profitable. In that case, it seems like we could put these routines into libgcc, and just have libstdc++ call them. And, that if __exchange_and_add is showing up on the top of the profile, the fix probably isn't inlining -- it's to work out a way to make less use of atomic operations. -- Mark Mitchell CodeSourcery, LLC [EMAIL PROTECTED] (916) 791-8304