+2009-09-10 Jason Merrill <jason@redhat.com>
+
+ * dbgcnt.c (dbg_cnt_process_single_pair): constify.
+ * opts.c (common_handle_option): constify.
+
2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
* doc/install.texi (avr): Remove obsolete reference site.
+2009-09-10 Jason Merrill <jason@redhat.com>
+
+ * repo.c (extract_string, get_base_filename, init_repo): constify.
+
2009-09-09 Jason Merrill <jason@redhat.com>
* error.c (find_typenames_r): Also add decltypes.
#include "diagnostic.h"
#include "flags.h"
-static char *extract_string (char **);
+static const char *extract_string (const char **);
static const char *get_base_filename (const char *);
static FILE *open_repo_file (const char *);
static char *afgets (FILE *);
/* Parse a reasonable subset of shell quoting syntax. */
-static char *
-extract_string (char **pp)
+static const char *
+extract_string (const char **pp)
{
- char *p = *pp;
+ const char *p = *pp;
int backquote = 0;
int inside = 0;
static const char *
get_base_filename (const char *filename)
{
- char *p = getenv ("COLLECT_GCC_OPTIONS");
+ const char *p = getenv ("COLLECT_GCC_OPTIONS");
const char *output = NULL;
int compiling = 0;
while (p && *p)
{
- char *q = extract_string (&p);
+ const char *q = extract_string (&p);
if (strcmp (q, "-o") == 0)
{
init_repo (void)
{
char *buf;
+ const char *p;
FILE *repo_file;
if (! flag_use_repository)
fclose (repo_file);
if (old_args && !get_random_seed (true)
- && (buf = strstr (old_args, "'-frandom-seed=")))
- set_random_seed (extract_string (&buf) + strlen ("-frandom-seed="));
+ && (p = strstr (old_args, "'-frandom-seed=")))
+ set_random_seed (extract_string (&p) + strlen ("-frandom-seed="));
}
static FILE *
static const char *
dbg_cnt_process_single_pair (const char *arg)
{
- char *colon = strchr (arg, ':');
+ const char *colon = strchr (arg, ':');
char *endptr = NULL;
int value;
+2009-09-10 Jason Merrill <jason@redhat.com>
+
+ * directives.c (cpp_define): constify.
+
2009-09-02 Ian Lance Taylor <iant@google.com>
* macro.c (stringify_arg): Escape CPP_WCHAR tokens.