------- Comment #10 from ro at CeBiTec dot Uni-Bielefeld dot DE 2009-11-20 17:10 ------- Subject: Re: Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope
> The #c4 patch looks wrong, instead of that you should IMHO just not use UNUSED > macro on __gthread_mutex_destroy argument. It is perfectly fine on > __gthread_key_delete. You're right, of course. I should have looked closer. Testing and comparison with pthread results found two other bugs, one of which I could already fix in gthr-solaris.h. I've tried to debug the other (objc) testcase, but gdb 6.6 cannot fully handle it, and I couldn't yet get a gdb 7.0 to debug a 64-bit binary. Given that this is a bootstrap failure, I'll submit and install the fix now and check the remainder later. Rainer -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41810