Commit 5de27cca by John David Anglin Committed by John David Anglin

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
parent 18d92053
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> 2011-03-10 Jason Merrill <jason@redhat.com>
PR c++/48029 PR c++/48029
......
...@@ -42,12 +42,14 @@ along with GCC; see the file COPYING3. If not see ...@@ -42,12 +42,14 @@ along with GCC; see the file COPYING3. If not see
if (c_dialect_cxx ()) \ if (c_dialect_cxx ()) \
{ \ { \
builtin_define ("_HPUX_SOURCE"); \ builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_REENTRANT"); \
builtin_define ("_INCLUDE_LONGLONG"); \ builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDCPP__"); \ builtin_define ("__STDCPP__"); \
} \ } \
else if (!flag_iso) \ else if (!flag_iso) \
{ \ { \
builtin_define ("_HPUX_SOURCE"); \ builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_REENTRANT"); \
if (preprocessing_trad_p ()) \ if (preprocessing_trad_p ()) \
{ \ { \
builtin_define ("hp9000s800"); \ builtin_define ("hp9000s800"); \
...@@ -111,7 +113,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -111,7 +113,7 @@ along with GCC; see the file COPYING3. If not see
"%{!shared:\ "%{!shared:\
%{!p:%{!pg:\ %{!p:%{!pg:\
%{!threads:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}\ %{!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}}}}\ %{p:%{!pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}" %{pg:-lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}"
......
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