From 77e86c91095a7c617acd6de0f8916983dc072876 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 17 Dec 2003 18:14:45 +0000 Subject: [PATCH] collect2.c (main): Add -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities to arguments... * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities to arguments when compiling ctors and dtors. From-SVN: r74746 --- gcc/ChangeLog | 6 ++++++ gcc/collect2.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a135d25f8e..f95cb94458c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-12-17 David Edelsohn + + * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage + -fno-branch-probabilities to arguments when compiling ctors and + dtors. + 2003-12-17 Eric Botcazou * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0. diff --git a/gcc/collect2.c b/gcc/collect2.c index 0d20b4d9e4a..2e4dbfe0324 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -884,8 +884,9 @@ main (int argc, char **argv) } obstack_free (&temporary_obstack, temporary_firstobj); - /* -fno-exceptions -w */ - num_c_args += 2; + /* -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities + -fno-exceptions -w */ + num_c_args += 5; c_ptr = (const char **) (c_argv = xcalloc (sizeof (char *), num_c_args)); @@ -1046,6 +1047,9 @@ main (int argc, char **argv) } } obstack_free (&temporary_obstack, temporary_firstobj); + *c_ptr++ = "-fno-profile-arcs"; + *c_ptr++ = "-fno-test-coverage"; + *c_ptr++ = "-fno-branch-probabilities"; *c_ptr++ = "-fno-exceptions"; *c_ptr++ = "-w"; -- 2.30.2