This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: generic threads support


Joern RENNECKE wrote:

> This patch allows to use enable-threads=generic so a toolchain can be
> compiled with, and be used to compile, thread-agnostic libraries.
> Without adding further object files / libraries, the behaviour is as if you
> selected no thread support, suitable for a system without any OS services.
> All the thread functions are supplied as weak out-of-line stub functions.
> When you add an object file / library that replaces some or all of these
> stub functions with OS-specific implementation, threading is enabled to
> the extent that working implementations are provided.  I.e. you could
> elect to provide full thread support, or just support the functions
> that are needed for C language threading.
> 
> This mechanism allows to use a single toolchain to target multiple OS
> environments for the same processor.

This seems like a good thing.  You snuck it in before the Stage 2
deadline, too!

+AC_SUBST(extra_libgcc_static_srcs)

I didn't see anything that sets this variable.  Where is that?

+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.  */

That's the old address.  Needs fixing throughout.

You also need documentation for this feature, discussing both the new
configure switch, and what you have to do to replace the generic
functions, and what the semantics of those functions are, so that people
know how to replace them.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]