OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / pa-hpux11.h
index ae9e4d3..540a93d 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions of target machine for GNU compiler, for HP PA-RISC
-   Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007
+   Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -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)                                              \
@@ -112,6 +110,7 @@ along with GCC; see the file COPYING3.  If not see
    %{!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}"
 
@@ -122,8 +121,9 @@ along with GCC; see the file COPYING3.  If not see
 #undef LIB_SPEC
 #define LIB_SPEC \
   "%{!shared:\
-     %{mt|pthread:-lpthread} -lc \
-     %{static:%{!nolibdld:-a shared -ldld -a archive -lpthread -lc}}}\
+     %{static|mt|pthread:%{fopenmp:%{static:-a archive_shared} -lrt\
+       %{static:-a archive}} -lpthread} -lc\
+     %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}}}\
    %{shared:%{mt|pthread:-lpthread}}"
 
 #undef STARTFILE_SPEC