From 5de27cca46673811788adb86d647bf71381c3de1 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Thu, 10 Mar 2011 23:07:15 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/pa/pa-hpux10.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45b83c8994b..4c6a480294f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-03-10 John David Anglin + + * 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 PR c++/48029 diff --git a/gcc/config/pa/pa-hpux10.h b/gcc/config/pa/pa-hpux10.h index ecb525fd8a5..bfe09f24729 100644 --- a/gcc/config/pa/pa-hpux10.h +++ b/gcc/config/pa/pa-hpux10.h @@ -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}}}}"