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]

[committed] fix PR libobjc/20252, multilib and libobjc


Paolo did not test his libobjc patch on a mutlilib target; if he did he would noticed
that it would break there. This fixes the problem by removing the way we figure out
if we need to define HAVE_GTHR_DEFAULT. Instead I copied how libstdc++ (and libobjc)
figures it out by parsing "gcc -v" and looking for "Thread model".


Committed after testing on powerpc-darwin7.x (even though this is not a multilib
target).


Thanks,
Andrew Pinski

ChangeLog:
	* Makefile.in (GTHREAD_FLAGS): Remove.
	(ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
	* thr-objc.c: Include config.h.
	* configure.ac: Instead of looking at GCC's makefile, figure out if
	GTHREAD_FLAGS should be defined by looking at the `thread model'
	of the current gcc.
	* configure: Regenerate.
	* config.h.in: Regenerate.

Patch:

Attachment: fix_thread.diff.txt
Description: Text document


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