Commit 8043a72a by Roger Sayle Committed by Roger Sayle

iris6.h (LIB_SPEC): Add support for -pthread.


	* config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
	(SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.

From-SVN: r114833
parent 7130be39
2006-06-20 Roger Sayle <roger@eyesopen.com>
* config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
(SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2006-06-20 Richard Guenther <rguenther@suse.de> 2006-06-20 Richard Guenther <rguenther@suse.de>
Michael Matz <matz@suse.de> Michael Matz <matz@suse.de>
......
/* Definitions of target machine for GNU compiler. IRIX version 6. /* Definitions of target machine for GNU compiler. IRIX version 6.
Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004,
2005 2005, 2006
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -93,7 +93,7 @@ Boston, MA 02110-1301, USA. */ ...@@ -93,7 +93,7 @@ Boston, MA 02110-1301, USA. */
-L/usr/lib64} \ -L/usr/lib64} \
%{!shared:" \ %{!shared:" \
SUBTARGET_DONT_WARN_UNUSED_SPEC \ SUBTARGET_DONT_WARN_UNUSED_SPEC \
" %{p:libprof1.a%s}%{pg:libprof1.a%s} -lc " \ " %{pthread:-lpthread} %{p:libprof1.a%s}%{pg:libprof1.a%s} -lc " \
SUBTARGET_WARN_UNUSED_SPEC "}" SUBTARGET_WARN_UNUSED_SPEC "}"
/* Avoid getting two warnings for libgcc.a everytime we link. */ /* Avoid getting two warnings for libgcc.a everytime we link. */
...@@ -112,3 +112,7 @@ Boston, MA 02110-1301, USA. */ ...@@ -112,3 +112,7 @@ Boston, MA 02110-1301, USA. */
%{!mips4:/usr/lib64/mips3/crtn.o%s}}}" %{!mips4:/usr/lib64/mips3/crtn.o%s}}}"
#define MIPS_TFMODE_FORMAT mips_extended_format #define MIPS_TFMODE_FORMAT mips_extended_format
#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC "%{pthread:-D_REENTRANT}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment