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 <[email protected]>
Acked-by: Patrick Georgi <[email protected]>

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");

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to