Author: oxygene Date: Thu Feb 11 12:13:32 2010 New Revision: 5116 URL: http://tracker.coreboot.org/trac/coreboot/changeset/5116
Log: romcc: Ignore empty string tokens. So far, romcc emitted a single double-quote for them.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de Acked-by: Patrick Georgi patrick.georgi@coresystems.de
Modified: trunk/util/romcc/romcc.c
Modified: trunk/util/romcc/romcc.c ============================================================================== --- trunk/util/romcc/romcc.c Thu Feb 11 09:44:20 2010 (r5115) +++ trunk/util/romcc/romcc.c Thu Feb 11 12:13:32 2010 (r5116) @@ -10782,6 +10782,9 @@ 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");