From e20e80a3662de4e2c798ad74f1d509c1c0b4097b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 17 Aug 2017 12:23:40 -0700 Subject: Roll yasm to 1.3.0. This basically copies https://chromium-review.googlesource.com/608869 Change-Id: I95acc3018e99a7822b9aaee7f83bc6080c0b3ec0 Reviewed-on: https://pdfium-review.googlesource.com/11336 Commit-Queue: dsinclair Reviewed-by: dsinclair --- third_party/yasm/CHROMIUM.diff | 75 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 68 insertions(+), 7 deletions(-) (limited to 'third_party/yasm/CHROMIUM.diff') diff --git a/third_party/yasm/CHROMIUM.diff b/third_party/yasm/CHROMIUM.diff index 80fd767292..8f036f214d 100644 --- a/third_party/yasm/CHROMIUM.diff +++ b/third_party/yasm/CHROMIUM.diff @@ -1,6 +1,8 @@ ---- frontends/tasm/tasm.c -+++ frontends/tasm/tasm.c -@@ -224,7 +224,9 @@ +diff --git a/frontends/tasm/tasm.c b/frontends/tasm/tasm.c +index 58954b6..568f478 100644 +--- a/frontends/tasm/tasm.c ++++ b/frontends/tasm/tasm.c +@@ -228,7 +228,6 @@ static opt_option options[] = /* version message */ /*@observer@*/ static const char *version_msg[] = { PACKAGE_STRING, @@ -8,13 +10,72 @@ "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.", "Run yasm --license for licensing overview and summary." }; ---- frontends/yasm/yasm.c -+++ frontends/yasm/yasm.c -@@ -213,7 +213,9 @@ +diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c +index ff4c59e..015ae8d 100644 +--- a/frontends/yasm/yasm.c ++++ b/frontends/yasm/yasm.c +@@ -217,7 +217,6 @@ static opt_option options[] = /* version message */ /*@observer@*/ static const char *version_msg[] = { PACKAGE_STRING, - "Compiled on " __DATE__ ".", - "Copyright (c) 2001-2011 Peter Johnson and other Yasm developers.", + "Copyright (c) 2001-2014 Peter Johnson and other Yasm developers.", "Run yasm --license for licensing overview and summary." }; +diff --git a/libyasm/genmodule.c b/libyasm/genmodule.c +index 867d93a..027e2fe 100644 +--- a/libyasm/genmodule.c ++++ b/libyasm/genmodule.c +@@ -58,9 +58,14 @@ main(int argc, char *argv[]) + include *inc; + int isam = 0; + int linecont = 0; +- +- if (argc != 3) { +- fprintf(stderr, "Usage: %s \n", argv[0]); ++ char *outfile; ++ ++ if (argc == 3) { ++ outfile = OUTPUT; ++ } else if (argc == 4) { ++ outfile = argv[3]; ++ } else { ++ fprintf(stderr, "Usage: %s []\n", argv[0]); + return EXIT_FAILURE; + } + +@@ -167,10 +172,10 @@ keepgoing: + fclose(in); + } + +- out = fopen(OUTPUT, "wt"); ++ out = fopen(outfile, "wt"); + + if (!out) { +- fprintf(stderr, "Could not open `%s'.\n", OUTPUT); ++ fprintf(stderr, "Could not open `%s'.\n", outfile); + return EXIT_FAILURE; + } + +@@ -181,7 +186,7 @@ keepgoing: + if (!in) { + fprintf(stderr, "Could not open `%s'.\n", argv[1]); + fclose(out); +- remove(OUTPUT); ++ remove(outfile); + return EXIT_FAILURE; + } + +diff --git a/tools/genperf/perfect.c b/tools/genperf/perfect.c +index a9a14c0..e45f9c5 100644 +--- a/tools/genperf/perfect.c ++++ b/tools/genperf/perfect.c +@@ -563,7 +563,7 @@ static int perfect( + if (!augment(tabb, tabh, tabq, blen, scramble, smax, &tabb[i], nkeys, + i+1, form)) + { +- fprintf(stderr, "fail to map group of size %ld for tab size %ld\n", j, blen); ++ /* Do not print an error. The caller may retry with a larger table. */ + return FALSE; + } + -- cgit v1.2.3