diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-06-20 23:54:05 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-06-20 23:54:05 +0000 |
commit | 8043a72a808a2a645d348f02caa87be976baacc3 (patch) | |
tree | 8b8de285a2dfc31e07ed18173a99a6b9f801e0ca | |
parent | 7130be3970cf07f0d25e6b9027226ed0ea12f615 (diff) | |
download | gcc-8043a72a808a2a645d348f02caa87be976baacc3.zip gcc-8043a72a808a2a645d348f02caa87be976baacc3.tar.gz gcc-8043a72a808a2a645d348f02caa87be976baacc3.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/iris6.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0e8292..de72952 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> Michael Matz <matz@suse.de> diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index 9e9e002..8686b14 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler. IRIX version 6. Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, - 2005 + 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -93,7 +93,7 @@ Boston, MA 02110-1301, USA. */ -L/usr/lib64} \ %{!shared:" \ 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 "}" /* Avoid getting two warnings for libgcc.a everytime we link. */ @@ -112,3 +112,7 @@ Boston, MA 02110-1301, USA. */ %{!mips4:/usr/lib64/mips3/crtn.o%s}}}" #define MIPS_TFMODE_FORMAT mips_extended_format + +#undef SUBTARGET_CPP_SPEC +#define SUBTARGET_CPP_SPEC "%{pthread:-D_REENTRANT}" + |