ROMCC: Trigger internal compiler failure and apply the workaround

These boards first failed when attempting to change print_err() from
direct function call to console_tx_XX() to a code block in the form of

 do { if (y) console_tx_XX(x); } while(0)

Removing the label dummy_romcc_workaround_label added here will
trigger the following compiler error for the two boards:

  Internal compiler error: no edge to block->last->next

Change-Id: I997adfaf586d7fa2096401dd574b07ce676d0ac6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5349
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Kyösti Mälkki 2014-03-07 10:40:21 +02:00
parent 2cf9715c9a
commit 233f5b3b0e
2 changed files with 10 additions and 0 deletions

View File

@ -169,6 +169,11 @@ static void main(unsigned long bist)
print_err("HI THERE!\n");
// sizemem();
staticmem();
/* Void warranty when label is removed. */
dummy_romcc_workaround_label:
do { } while (0);
print_err("c60 is "); print_err_hex16(*(unsigned short *)0xfffefc60);
print_err("\n");

View File

@ -153,6 +153,11 @@ static void main(unsigned long bist)
print_err("Technologic Systems TS5300 - http://www.embeddedx86.com/\n");
staticmem();
/* Void warranty when label is removed. */
dummy_romcc_workaround_label:
do { } while (0);
print_err("Memory initialized: 32MB\n");
#if 1