This is the mail archive of the
mailing list for the GCC project.
[PATCH] PR libgomp/28296: Bootstrap failure on Tru64
- From: Roger Sayle <roger at eyesopen dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Mon, 11 Sep 2006 09:21:30 -0600 (MDT)
- Subject: [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 configure.ac 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 <firstname.lastname@example.org>
* configure.ac: Fix the platform dependent use of -pthread in
* configure: Regenerate.
*** configure.ac (revision 116840)
--- configure.ac (working copy)
*** 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
+ CFLAGS="$CFLAGS -pthread"
*** 155,161 ****
[case $host in
--- 165,171 ----
[case $host in