Mercurial > hg > CbC > CbC_gcc
diff gcc/config/pa/pa-hpux11.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
line wrap: on
line diff
--- a/gcc/config/pa/pa-hpux11.h Tue May 25 18:58:51 2010 +0900 +++ b/gcc/config/pa/pa-hpux11.h Tue Mar 22 17:18:12 2011 +0900 @@ -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, 2008 + Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -105,27 +105,33 @@ #undef LINK_SPEC #define LINK_SPEC \ "%{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ - %nWarning: consider linking with `-static' as system libraries with\n\ + %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\ + %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}" -/* HP-UX 11 has posix threads. HP libc contains pthread stubs so that - non-threaded applications can be linked with a thread-safe libc - without a subsequent loss of performance. For more details, see - <http://docs.hp.com/en/1896/pthreads.html>. */ +/* HP-UX 11 has posix threads. HP's shared libc contains pthread stubs + so that non-threaded applications can be linked with a thread-safe + libc without a subsequent loss of performance. For more details, + see <http://docs.hp.com/en/1896/pthreads.html>. */ #undef LIB_SPEC #define LIB_SPEC \ "%{!shared:\ - %{static|mt|pthread:%{fopenmp:%{static:-a archive_shared} -lrt\ - %{static:-a archive}} -lpthread} -lc\ - %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}}}\ + %{fopenmp:%{static:-a archive_shared} -lrt %{static:-a archive}}\ + %{mt|pthread:-lpthread} -lc\ + %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}\ + %{!mt:%{!pthread:-a shared -lc -a archive}}}}\ %{shared:%{mt|pthread:-lpthread}}" +/* The libgcc_stub.a library needs to come last. */ +#undef LINK_GCC_C_SEQUENCE_SPEC +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}}}" + #undef STARTFILE_SPEC #define STARTFILE_SPEC \ "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}} \