From: dje Date: Wed, 17 Dec 2003 18:14:45 +0000 (+0000) Subject: * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage X-Git-Tag: upstream/4.9.2~74636 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc4faf1247448daa00b26b6212ff71f515b1d803;p=platform%2Fupstream%2Flinaro-gcc.git * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities to arguments when compiling ctors and dtors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74746 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a135d2..f95cb94 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 0d20b4d..2e4dbfe 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";