------- Comment #3 from tromey at gcc dot gnu dot org 2006-03-15 17:17 ------- Despite what the original report says, we don't really want to resolve all entries when compiling. Also it would be best to avoid any kind of synchronization at all.
One idea would be to 'or' the argument to one of these instructions with 0x1 when the datum is unresolved. This can be tested reasonably quickly. And, since these lookups are all idempotent, it does not matter if two threads happen to do a small amount of redudant lookup work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8995