------- Comment #4 from tromey at gcc dot gnu dot org 2006-06-21 20:09 ------- I looked at this a little today. The code does look wrong, but I couldn't write a simple test case to make it fail. Do you have one?
One problem I see is that serve() uses the task's 'scheduled' field without checking to see if it is == -1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21524