Remove unused local diff. Pointed out by htodd.
This commit is contained in:
parent
f29f78bf6e
commit
2256753ef0
27
external/gpl3/gcc/dist/libcpp/macro.c
vendored
27
external/gpl3/gcc/dist/libcpp/macro.c
vendored
@ -406,33 +406,6 @@ add_cpp_remap_path (const char *arg)
|
||||
++remap_pairs;
|
||||
}
|
||||
|
||||
static const char *
|
||||
cpp_remap_file (const char *arg, char **tmp_name)
|
||||
{
|
||||
char *result;
|
||||
size_t i, len;
|
||||
|
||||
for (i = 0; i < remap_pairs; ++i) {
|
||||
len = strlen (remap_src[i]);
|
||||
if (strncmp (remap_src[i], arg, len))
|
||||
continue;
|
||||
if (arg[len] == '\0')
|
||||
return remap_dst[i];
|
||||
if (arg[len] != '/')
|
||||
continue;
|
||||
arg += len;
|
||||
len = strlen (remap_dst[i]);
|
||||
result = (char *) xmalloc (len + strlen (arg) + 1);
|
||||
memcpy(result, remap_dst[i], len);
|
||||
strcpy(result + len, arg);
|
||||
*tmp_name = result;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
return arg;
|
||||
}
|
||||
|
||||
/* Helper function for builtin_macro. Returns the text generated by
|
||||
a builtin macro. */
|
||||
const uchar *
|
||||
|
Loading…
Reference in New Issue
Block a user