collect2.c (main): Add -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities...
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 17 Dec 2003 18:14:45 +0000 (18:14 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 17 Dec 2003 18:14:45 +0000 (13:14 -0500)
        * 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
gcc/collect2.c

index 4a135d25f8e5f17fcda9fbb31fde97cbf13f70b7..f95cb94458cbc6023c015ae0e1f3c327581c9cbf 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 0d20b4d9e4a9efadec0ab2d641606842c0154d57..2e4dbfe032459dd970d63f14792dcf263720a7fc 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";