PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20

John David Anglin dave@hiauly1.hia.nrc.ca
Wed May 23 16:15:00 GMT 2001


> Quick comment: I would like to see this entire hunk go away not be
> extended.  If we use gthr.h properly, then it should be unneeded:
> 
>     no | none | single)
>        THREADH=threads-no.h
>        ;;
> +    dce)
> +      THREADH=threads-dce.h
> +      ;;
>      posix | pthreads)
>        THREADH=threads-posix.h
>        ;;
> -    decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
> +    decosf1 | irix | mach | os2 | solaris | win32 | vxworks)
>        AC_MSG_WARN(disabling unsupported thread package $target_thread_file)
>        THREADH=threads-no.h
>        ;;

This selects the file to be installed as c++threads.h.  The file gthr.h
is never installed and the information to use it only resides in the
build directory.  If STL could be taught to use the gcc thread models,
then that would probably greatly improve the portability of it.  However,
this looks to be a bit of work.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Libstdc++ mailing list