summaryrefslogtreecommitdiff
path: root/third_party/yasm/CHROMIUM.diff
blob: 2ff0a6b7b916347a78b631baad1a6325cada47f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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,
-    "Compiled on " __DATE__ ".",
     "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.",
     "Run yasm --license for licensing overview and summary."
 };
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-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 <module.in> <Makefile[.am]>\n", argv[0]);
+    char *outfile;
+
+    if (argc == 3) {
+        outfile = OUTPUT;
+    } else if (argc == 4) {
+        outfile = argv[3];
+    } else {
+        fprintf(stderr, "Usage: %s <module.in> <Makefile[.am]> [<outfile>]\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;
         }
 
diff --git a/tools/re2c/parser.c b/tools/re2c/parser.c
index 02d5c66..b3882af 100644
--- a/tools/re2c/parser.c
+++ b/tools/re2c/parser.c
@@ -226,15 +226,9 @@ void line_source(FILE *o, unsigned int line)
 }
 
 void parse(FILE *i, FILE *o){
-    time_t now;
-
-    time(&now);
-
     peektok = NONE;
 
-    fputs("/* Generated by re2c 0.9.1-C on ", o);
-    fprintf(o, "%-24s", ctime(&now));
-    fputs(" */\n", o); oline+=2;
+    fputs("/* Generated by re2c 0.9.1-C */\n", o); oline++;
 
     in = Scanner_new(i);