[PATCH] Fix PR target/24071

Eric Botcazou ebotcazou@libertysurf.fr
Sat Oct 28 15:34:00 GMT 2006


Hi Mark,

You may recall the glitch that happened for the 4.0.2 release on Solaris (a 
late patch for libstd++-v3 slightly broke the C++ compiler there because of a 
quirk of the OS, then Benjamin devised a workaround but it eventually did not 
make it into the release).

The scenario has just been replayed on the 4.2 branch: the fix for PR 29426 
totally breaks the C++ compiler on Solaris 2.6 and probably damages it on 
Solaris 7, 8 and 9 too.  So I think it's time to tackle the underlying 
problem, i.e. that __gthread_active_p () is not accurate on Solaris; Benjamin 
summarized the problem in the PR.

Tested on SPARC/Solaris 2.5.1, 2.6, 7, 8, 9 and 10.  OK for mainline and 4.2 
branch?


2006-10-28  Eric Botcazou  <ebotcazou@libertysurf.fr>

	PR target/24071
	* gthr-posix.h (__gthread_active_p): New implementation on Solaris.
	* gthr-posix95.h (__gthread_active_p): Likewise.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr24071.diff
Type: text/x-diff
Size: 3720 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061028/e8f150c2/attachment.bin>


More information about the Gcc-patches mailing list