minix/tools/binutils/patches/patch-gas_app.c
Thomas Veerman c8a0e2f4c6 Import NetBSD tools and build.sh
This commit finalizes support for cross compilation. The tools
directory are all links to the actual tools and are built on the
host system to build Minix. build.sh is the work horse that takes
care of all environment settings. It's slightly adjusted for Minix.
The /usr/src/Makefile has additional targets needed for cross
compilation.
2012-06-18 10:54:51 +00:00

16 lines
423 B
C

$NetBSD$
Fix build with gcc-4.5.
--- gas/app.c.orig 2006-03-10 10:57:18.000000000 +0000
+++ gas/app.c
@@ -563,7 +563,8 @@ do_scrub_chars (int (*get) (char *, int)
{
as_warn (_("end of file in string; '%c' inserted"), quotechar);
state = old_state;
- UNGET ('\n');
+ if (from > input_buffer)
+ UNGET ('\n');
PUT (quotechar);
}
else if (ch == quotechar)