Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils/dist/gas revert previous, seems to lo...



details:   https://anonhg.NetBSD.org/src/rev/b0cdf6717263
branches:  trunk
changeset: 373272:b0cdf6717263
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 28 14:54:43 2023 +0000

description:
revert previous, seems to lose data.

diffstat:

 external/gpl3/binutils/dist/gas/app.c |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r 3b34e9d9cfc7 -r b0cdf6717263 external/gpl3/binutils/dist/gas/app.c
--- a/external/gpl3/binutils/dist/gas/app.c     Sat Jan 28 13:13:17 2023 +0000
+++ b/external/gpl3/binutils/dist/gas/app.c     Sat Jan 28 14:54:43 2023 +0000
@@ -410,7 +410,7 @@
 {
   char *to = tostart;
   char *toend = tostart + tolen;
-  char *from, *savefrom;
+  char *from;
   char *fromend;
   size_t fromlen;
   int ch, ch2 = 0;
@@ -1234,7 +1234,6 @@
             thought out.  On i386, we want '/' as line comment start
             AND we want C style comments.  hence this hack.  The
             whole lexical process should be reworked.  xoxorich.  */
-         savefrom = from;
          if (ch == '/')
            {
              ch2 = GET ();
@@ -1295,11 +1294,6 @@
                out_string = "\tlinefile ";
              else
                out_string = "\t.linefile ";
-             if (toend - to < strlen(out_string) + strlen(from) + 1)
-               {
-                 from = savefrom - 1;
-                 goto tofull;
-               }
              PUT (*out_string++);
              break;
            }



Home | Main Index | Thread Index | Old Index