[packages/binutils] - updated gasp patch
qboosh
qboosh at pld-linux.org
Sun Oct 12 12:19:49 CEST 2014
commit 01409cfffcc7658526a476833f59fed02aca2c86
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 12 12:20:17 2014 +0200
- updated gasp patch
binutils-gasp.patch | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/binutils-gasp.patch b/binutils-gasp.patch
index d1f78da..d1d12f8 100644
--- a/binutils-gasp.patch
+++ b/binutils-gasp.patch
@@ -1510,9 +1510,9 @@
+
+ at contents
+ at bye
---- binutils-2.17.50.0.2/gas/gasp.c.orig 1970-01-01 01:00:00.000000000 +0100
-+++ binutils-2.17.50.0.2/gas/gasp.c 2006-06-07 11:22:13.774440000 +0200
-@@ -0,0 +1,4011 @@
+--- binutils-2.24.51.0.4/gas/gasp.c.orig 1970-01-01 01:00:00.000000000 +0100
++++ binutils-2.24.51.0.4/gas/gasp.c 2014-10-12 11:32:34.014384388 +0200
+@@ -0,0 +1,4015 @@
+/* gasp.c - Gnu assembler preprocessor main program.
+ Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+ Free Software Foundation, Inc.
@@ -2986,7 +2986,7 @@
+ idx = sb_skip_comma (idx, in);
+ idx = exp_get_abs (_("datab data must be absolute.\n"), idx, in, &fill);
+
-+ fprintf (outfile, ".fill\t%ld,%d,%ld\n", repeat, opsize, fill);
++ fprintf (outfile, ".fill\t%ld,%d,%ld\n", (long)repeat, opsize, (long)fill);
+}
+
+/* .align <size> */
@@ -3010,9 +3010,9 @@
+ have_fill = 1;
+ }
+
-+ fprintf (outfile, ".align %ld", al);
++ fprintf (outfile, ".align %ld", (long)al);
+ if (have_fill)
-+ fprintf (outfile, ",%ld", fill);
++ fprintf (outfile, ",%ld", (long)fill);
+ fprintf (outfile, "\n");
+}
+
@@ -3038,7 +3038,7 @@
+ if (type == 'c' || type == 'z')
+ count++;
+
-+ fprintf (outfile, ".space %ld\n", count * size);
++ fprintf (outfile, ".space %ld\n", (long)(count * size));
+ }
+}
+
@@ -3125,7 +3125,7 @@
+
+ idx++;
+ }
-+ fprintf (outfile, ".psize %ld,%ld\n", lines, columns);
++ fprintf (outfile, ".psize %ld,%ld\n", (long)lines, (long)columns);
+
+}
+
@@ -3167,7 +3167,7 @@
+ idx + 1,
+ in,
+ &val);
-+ sprintf (buf, "%ld", val);
++ sprintf (buf, "%ld", (long)val);
+ sb_add_string (out, buf);
+ }
+ else if (in->ptr[idx] == '"'
@@ -4161,9 +4161,9 @@
+ if (rc > 1)
+ {
+ if (!mri)
-+ sprintf (buffer, "\t.AREPEAT %ld\n", rc - 1);
++ sprintf (buffer, "\t.AREPEAT %ld\n", (long)(rc - 1));
+ else
-+ sprintf (buffer, "\tREPT %ld\n", rc - 1);
++ sprintf (buffer, "\tREPT %ld\n", (long)(rc - 1));
+ sb_add_string (©, buffer);
+ sb_add_sb (©, &sub);
+ if (!mri)
@@ -4426,7 +4426,7 @@
+ idx = exp_get_abs (_("Must have absolute SDATAB repeat count.\n"), idx, in, &repeat);
+ if (repeat <= 0)
+ {
-+ ERROR ((stderr, _("Must have positive SDATAB repeat count (%ld).\n"), repeat));
++ ERROR ((stderr, _("Must have positive SDATAB repeat count (%ld).\n"), (long)repeat));
+ repeat = 1;
+ }
+
@@ -5524,6 +5524,10 @@
+ va_end (args);
+ xexit (EXIT_FAILURE);
+}
++
++/* stubs for macro.c linefile support */
++void s_app_line (int appline) { }
++char *input_line_pointer;
--- binutils-2.23.51.0.1/gas/macro.c.orig 2012-08-07 19:47:23.000000000 +0200
+++ binutils-2.23.51.0.1/gas/macro.c 2012-08-21 20:21:33.256276269 +0200
@@ -770,7 +770,7 @@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/binutils.git/commitdiff/01409cfffcc7658526a476833f59fed02aca2c86
More information about the pld-cvs-commit
mailing list