opts-common.c (decode_cmdline_options_to_array): Remove variable argv_copied.
authorAxel Freyn <axel-freyn@gmx.de>
Tue, 12 Apr 2011 16:29:23 +0000 (16:29 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 12 Apr 2011 16:29:23 +0000 (17:29 +0100)
2011-04-12  Axel Freyn  <axel-freyn@gmx.de>

* opts-common.c (decode_cmdline_options_to_array): Remove variable
argv_copied.

From-SVN: r172325

gcc/ChangeLog
gcc/opts-common.c

index 3a8a279b4c39e751bdcb3ebdb2af9669c8cc261a..f35c45b33e5a059d15a793eff7aed033caecc137 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
+
+       * opts-common.c (decode_cmdline_options_to_array): Remove variable
+       argv_copied.
+
 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * recog.h, genoutput.c, optabs.c: Revert last patch.
index e314cb35213e7881cf04f520f0fb862c9a477c54..089d8199d50becbf53d446e3f63fdf0788059b39 100644 (file)
@@ -693,7 +693,6 @@ decode_cmdline_options_to_array (unsigned int argc, const char **argv,
   unsigned int n, i;
   struct cl_decoded_option *opt_array;
   unsigned int num_decoded_options;
-  bool argv_copied = false;
 
   opt_array = XNEWVEC (struct cl_decoded_option, argc);
 
@@ -728,8 +727,6 @@ decode_cmdline_options_to_array (unsigned int argc, const char **argv,
       num_decoded_options++;
     }
 
-  if (argv_copied)
-    free (argv);
   *decoded_options = opt_array;
   *decoded_options_count = num_decoded_options;
   prune_options (decoded_options, decoded_options_count);