Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libcpp Remove unused local diff. Poin...



details:   https://anonhg.NetBSD.org/src/rev/d13ba6f36c38
branches:  trunk
changeset: 977247:d13ba6f36c38
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Oct 19 07:44:52 2020 +0000

description:
Remove unused local diff. Pointed out by htodd.

diffstat:

 external/gpl3/gcc/dist/libcpp/macro.c |  27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)

diffs (37 lines):

diff -r 5660a7f7e64f -r d13ba6f36c38 external/gpl3/gcc/dist/libcpp/macro.c
--- a/external/gpl3/gcc/dist/libcpp/macro.c     Mon Oct 19 01:13:41 2020 +0000
+++ b/external/gpl3/gcc/dist/libcpp/macro.c     Mon Oct 19 07:44:52 2020 +0000
@@ -406,33 +406,6 @@
        ++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 *



Home | Main Index | Thread Index | Old Index