projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
romcc: Ignore empty string tokens. So far, romcc emitted a single double-quote for...
[coreboot.git]
/
util
/
romcc
/
romcc.c
diff --git
a/util/romcc/romcc.c
b/util/romcc/romcc.c
index 71c33b0a1b4c9a229e64d5176149ed0ade38e189..ff11058da47e0c6058dd12c4177a4d4174521f91 100644
(file)
--- a/
util/romcc/romcc.c
+++ b/
util/romcc/romcc.c
@@
-10782,6
+10782,9
@@
static struct triple *string_constant(struct compile_state *state)
if (str_len < 0) {
error(state, 0, "negative string constant length");
}
+ /* ignore empty string tokens */
+ if (strcmp("\"", str) == 0)
+ continue;
end = str + str_len;
ptr = buf;
buf = xmalloc(type->elements + str_len + 1, "string_constant");