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: [PATCH] PR libgomp/28296: Bootstrap failure on Tru64


On Mon, 2006-09-11 at 09:21 -0600, Roger Sayle wrote:
> 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.
> http://gcc.gnu.org/viewcvs?view=rev&revision=115205
> 
> 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
> platforms.
> 
> The change below has been tested on alphaev67-dec-osf5.1 where it
> allows a default bootstrap, except for java, to complete without
> problems.

Can't we just get darwin to ignore -pthread?  There are already bugs
asking for -pthread to become more target independent.

Thanks,
Andrew Pinski


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