pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT when _HPUX_SOURCE is defined.

* config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
	when _HPUX_SOURCE is defined.
	(LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.

From-SVN: r170855
This commit is contained in:
John David Anglin 2011-03-10 23:07:15 +00:00 committed by John David Anglin
parent 18d920539d
commit 5de27cca46
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
when _HPUX_SOURCE is defined.
(LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
2011-03-10 Jason Merrill <jason@redhat.com>
PR c++/48029

View file

@ -42,12 +42,14 @@ along with GCC; see the file COPYING3. If not see
if (c_dialect_cxx ()) \
{ \
builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_REENTRANT"); \
builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDCPP__"); \
} \
else if (!flag_iso) \
{ \
builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_REENTRANT"); \
if (preprocessing_trad_p ()) \
{ \
builtin_define ("hp9000s800"); \
@ -111,7 +113,7 @@ along with GCC; see the file COPYING3. If not see
"%{!shared:\
%{!p:%{!pg:\
%{!threads:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}\
%{threads:-lcma -lc_r}}}\
%{threads:-lcma -lc}}}\
%{p:%{!pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}"