* collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 18:14:45 +0000 (18:14 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 18:14:45 +0000 (18:14 +0000)
        -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

gcc/ChangeLog
gcc/collect2.c

index 4a135d2..f95cb94 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-17  David Edelsohn  <edelsohn@gnu.org>
+
+       * 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  <ebotcazou@libertysurf.fr>
 
        * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
index 0d20b4d..2e4dbfe 100644 (file)
@@ -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";