From 06bd234a03462ea2ecd879392a2042584297fb0b Mon Sep 17 00:00:00 2001 From: Axel Freyn Date: Tue, 12 Apr 2011 16:29:23 +0000 Subject: [PATCH] opts-common.c (decode_cmdline_options_to_array): Remove variable argv_copied. 2011-04-12 Axel Freyn * opts-common.c (decode_cmdline_options_to_array): Remove variable argv_copied. From-SVN: r172325 --- gcc/ChangeLog | 5 +++++ gcc/opts-common.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a8a279b4c3..f35c45b33e5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-12 Axel Freyn + + * opts-common.c (decode_cmdline_options_to_array): Remove variable + argv_copied. + 2011-04-12 Richard Sandiford * recog.h, genoutput.c, optabs.c: Revert last patch. diff --git a/gcc/opts-common.c b/gcc/opts-common.c index e314cb35213..089d8199d50 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@ -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); -- 2.30.2