Module Name: src
Committed By: maya
Date: Mon Oct 19 07:44:52 UTC 2020
Modified Files:
src/external/gpl3/gcc/dist/libcpp: macro.c
Log Message:
Remove unused local diff. Pointed out by htodd.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/dist/libcpp/macro.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/libcpp/macro.c
diff -u src/external/gpl3/gcc/dist/libcpp/macro.c:1.11 src/external/gpl3/gcc/dist/libcpp/macro.c:1.12
--- src/external/gpl3/gcc/dist/libcpp/macro.c:1.11 Sat Sep 5 09:12:29 2020
+++ src/external/gpl3/gcc/dist/libcpp/macro.c Mon Oct 19 07:44:52 2020
@@ -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 *