Module Name: src
Committed By: christos
Date: Sat Jan 28 14:54:43 UTC 2023
Modified Files:
src/external/gpl3/binutils/dist/gas: app.c
Log Message:
revert previous, seems to lose data.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/app.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/binutils/dist/gas/app.c
diff -u src/external/gpl3/binutils/dist/gas/app.c:1.2 src/external/gpl3/binutils/dist/gas/app.c:1.3
--- src/external/gpl3/binutils/dist/gas/app.c:1.2 Fri Jan 27 18:36:04 2023
+++ src/external/gpl3/binutils/dist/gas/app.c Sat Jan 28 09:54:43 2023
@@ -410,7 +410,7 @@ do_scrub_chars (size_t (*get) (char *, s
{
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 @@ do_scrub_chars (size_t (*get) (char *, s
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 @@ do_scrub_chars (size_t (*get) (char *, s
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;
}