mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 07:10:27 +08:00
pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
gcc/ * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program". * config/pa/pa-hpux10.h (LINK_SPEC): Likewise. * config/pa/pa-hpux11.h (LINK_SPEC): Likewise. * gcc.c (set_collect_gcc_options): Don't add -fwhole-program to COLLECT_GCC_OPTIONS. From-SVN: r148099
This commit is contained in:
parent
70ed7339f7
commit
8633c31574
gcc
@ -1,3 +1,11 @@
|
||||
2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
|
||||
|
||||
* config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
|
||||
* config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
|
||||
* config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
|
||||
* gcc.c (set_collect_gcc_options): Don't add -fwhole-program
|
||||
to COLLECT_GCC_OPTIONS.
|
||||
|
||||
2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
|
||||
|
||||
* collect2.c (target_system_root): New variable.
|
||||
|
@ -95,12 +95,10 @@ along with GCC; see the file COPYING3. If not see
|
||||
#undef LINK_SPEC
|
||||
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_PA_11)
|
||||
#define LINK_SPEC \
|
||||
"%<fwhole-program\
|
||||
%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
|
||||
"%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
|
||||
#else
|
||||
#define LINK_SPEC \
|
||||
"%<fwhole-program\
|
||||
%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
|
||||
"%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}"
|
||||
#endif
|
||||
|
||||
/* hpux8 and later have C++ compatible include files, so do not
|
||||
|
@ -82,8 +82,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#undef LINK_SPEC
|
||||
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_PA_11)
|
||||
#define LINK_SPEC \
|
||||
"%<fwhole-program\
|
||||
%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}\
|
||||
"%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}\
|
||||
%{!shared:%{p:-L/lib/libp %{!static:\
|
||||
%nWarning: consider linking with `-static' as system libraries with\n\
|
||||
%n profiling support are only provided in archive format}}}\
|
||||
@ -94,8 +93,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
%{static:-a archive} %{shared:-b}"
|
||||
#else
|
||||
#define LINK_SPEC \
|
||||
"%<fwhole-program\
|
||||
%{!shared:%{p:-L/lib/libp %{!static:\
|
||||
"%{!shared:%{p:-L/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 %{!static:\
|
||||
|
@ -104,8 +104,7 @@ 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:\
|
||||
|
@ -4434,6 +4434,11 @@ set_collect_gcc_options (void)
|
||||
if ((switches[i].live_cond & SWITCH_IGNORE) != 0)
|
||||
continue;
|
||||
|
||||
/* Don't use -fwhole-program when compiling the init and fini routines,
|
||||
since we'd wrongly assume that the routines aren't needed. */
|
||||
if (strcmp (switches[i].part1, "fwhole-program") == 0)
|
||||
continue;
|
||||
|
||||
obstack_grow (&collect_obstack, "'-", 2);
|
||||
q = switches[i].part1;
|
||||
while ((p = strchr (q, '\'')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user