Index: gcc/gcc/config/pa/pa-hpux11.h |
diff --git a/gcc/gcc/config/pa/pa-hpux11.h b/gcc/gcc/config/pa/pa-hpux11.h |
index 8dd01d2563d6ec4737ec0c3c118ab5edf0bf1cb6..540a93da52479db5d5eb1242cff00038f9ab67a3 100644 |
--- a/gcc/gcc/config/pa/pa-hpux11.h |
+++ b/gcc/gcc/config/pa/pa-hpux11.h |
@@ -37,11 +37,11 @@ along with GCC; see the file COPYING3. If not see |
builtin_define ("__hpux__"); \ |
builtin_define ("__unix"); \ |
builtin_define ("__unix__"); \ |
+ builtin_define ("__STDC_EXT__"); \ |
if (c_dialect_cxx ()) \ |
{ \ |
builtin_define ("_HPUX_SOURCE"); \ |
builtin_define ("_INCLUDE_LONGLONG"); \ |
- builtin_define ("__STDC_EXT__"); \ |
builtin_define ("__STDCPP__"); \ |
} \ |
else \ |
@@ -59,8 +59,6 @@ along with GCC; see the file COPYING3. If not see |
builtin_define ("_PWB"); \ |
builtin_define ("PWB"); \ |
} \ |
- else \ |
- builtin_define ("__STDC_EXT__"); \ |
} \ |
} \ |
if (!TARGET_64BIT) \ |
@@ -106,13 +104,13 @@ along with GCC; see the file COPYING3. If not see |
want dereferencing of a NULL pointer to cause a SEGV. */ |
#undef LINK_SPEC |
#define LINK_SPEC \ |
- "%<fwhole-program\ |
- %{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ |
+ "%{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ |
%nWarning: consider linking with `-static' as system libraries with\n\ |
%n profiling support are only provided in archive format}}}\ |
%{!shared:%{pg:-L/lib/libp -L/usr/lib/libp %{!static:\ |
%nWarning: consider linking with `-static' as system libraries with\n\ |
%n profiling support are only provided in archive format}}}\ |
+ %{!shared:%{!static:%{rdynamic:-E}}}\ |
-z %{mlinker-opt:-O} %{!shared:-u main -u __gcc_plt_call}\ |
%{static:-a archive} %{shared:-b}" |