Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Definitions of target machine for GNU compiler, for HP PA-RISC | 1 /* Definitions of target machine for GNU compiler, for HP PA-RISC |
2 Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008 | 2 Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008, 2010 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
103 /* We can debug dynamically linked executables on hpux11; we also | 103 /* We can debug dynamically linked executables on hpux11; we also |
104 want dereferencing of a NULL pointer to cause a SEGV. */ | 104 want dereferencing of a NULL pointer to cause a SEGV. */ |
105 #undef LINK_SPEC | 105 #undef LINK_SPEC |
106 #define LINK_SPEC \ | 106 #define LINK_SPEC \ |
107 "%{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ | 107 "%{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ |
108 %nWarning: consider linking with `-static' as system libraries with\n\ | 108 %nwarning: consider linking with '-static' as system libraries with\n\ |
109 %n profiling support are only provided in archive format}}}\ | 109 %n profiling support are only provided in archive format}}}\ |
110 %{!shared:%{pg:-L/lib/libp -L/usr/lib/libp %{!static:\ | 110 %{!shared:%{pg:-L/lib/libp -L/usr/lib/libp %{!static:\ |
111 %nWarning: consider linking with `-static' as system libraries with\n\ | 111 %nwarning: consider linking with '-static' as system libraries with\n\ |
112 %n profiling support are only provided in archive format}}}\ | 112 %n profiling support are only provided in archive format}}}\ |
113 %{!shared:%{!static:%{rdynamic:-E}}}\ | 113 %{!shared:%{!static:%{rdynamic:-E}}}\ |
114 -z %{mlinker-opt:-O} %{!shared:-u main -u __gcc_plt_call}\ | 114 -z %{mlinker-opt:-O} %{!shared:-u main -u __gcc_plt_call}\ |
115 %{static:-a archive} %{shared:-b}" | 115 %{static:-a archive} %{shared:-b}" |
116 | 116 |
117 /* HP-UX 11 has posix threads. HP libc contains pthread stubs so that | 117 /* HP-UX 11 has posix threads. HP's shared libc contains pthread stubs |
118 non-threaded applications can be linked with a thread-safe libc | 118 so that non-threaded applications can be linked with a thread-safe |
119 without a subsequent loss of performance. For more details, see | 119 libc without a subsequent loss of performance. For more details, |
120 <http://docs.hp.com/en/1896/pthreads.html>. */ | 120 see <http://docs.hp.com/en/1896/pthreads.html>. */ |
121 #undef LIB_SPEC | 121 #undef LIB_SPEC |
122 #define LIB_SPEC \ | 122 #define LIB_SPEC \ |
123 "%{!shared:\ | 123 "%{!shared:\ |
124 %{static|mt|pthread:%{fopenmp:%{static:-a archive_shared} -lrt\ | 124 %{fopenmp:%{static:-a archive_shared} -lrt %{static:-a archive}}\ |
125 %{static:-a archive}} -lpthread} -lc\ | 125 %{mt|pthread:-lpthread} -lc\ |
126 %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}}}\ | 126 %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}\ |
127 %{!mt:%{!pthread:-a shared -lc -a archive}}}}\ | |
127 %{shared:%{mt|pthread:-lpthread}}" | 128 %{shared:%{mt|pthread:-lpthread}}" |
129 | |
130 /* The libgcc_stub.a library needs to come last. */ | |
131 #undef LINK_GCC_C_SEQUENCE_SPEC | |
132 #define LINK_GCC_C_SEQUENCE_SPEC \ | |
133 "%G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}}}" | |
128 | 134 |
129 #undef STARTFILE_SPEC | 135 #undef STARTFILE_SPEC |
130 #define STARTFILE_SPEC \ | 136 #define STARTFILE_SPEC \ |
131 "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}} \ | 137 "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}} \ |
132 %{!munix=93:unix95%O%s}}" | 138 %{!munix=93:unix95%O%s}}" |