This is the mail archive of the 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]

[PATCH] PR libgomp/28296: Bootstrap failure on Tru64

The following patch resolves PR libgomp/28296 which a boostrap failure
on alphaev67-dec-osf5.1 triggered by Eric Christopher's 2006-07-05
change to libgomp's to avoid the use of -pthread on darwin.

Unfortunately, that change contained two mistakes: the first is that
it removed -pthread from $CFLAGS on all platforms (it's necessary on
those that require _REENTRANT to be defined to get the pthreads APIs),
and the second was that it used "default)" in a case statement instead
of "*)" thereby disabling the setting of XPCFLAGS on all non-darwin

The change below has been tested on alphaev67-dec-osf5.1 where it
allows a default bootstrap, except for java, to complete without

Ok for mainline?

2006-09-11  Roger Sayle  <>

	PR libgomp/28296
	* Fix the platform dependent use of -pthread in
	configure tests.
	* configure: Regenerate.

***	(revision 116840)
---	(working copy)
*************** GCC_HEADER_STDINT(gstdint.h)
*** 146,152 ****
--- 146,162 ----
  # In case the pthread.h system header is not found, this test will fail.

+ # Some plaforms require -pthread in the following configure tests otherwise
+ # they'll fail to detect the system supports POSIX pthreads (i.e. Tru64).
  # Darwin doesn't need the -pthread option since threads are in libSystem
+ case "$host" in
+   *-darwin*)
+     ;;
+   *)
+     CFLAGS="$CFLAGS -pthread"
+     ;;
+ esac
    [#include <pthread.h>
*************** AC_LINK_IFELSE(
*** 155,161 ****
   [case $host in
!    default)
       XPCFLAGS=" -Wc,-pthread"
--- 165,171 ----
   [case $host in
!    *)
       XPCFLAGS=" -Wc,-pthread"


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