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:
parent
2cf9715c9a
commit
233f5b3b0e
|
@ -169,6 +169,11 @@ static void main(unsigned long bist)
|
||||||
print_err("HI THERE!\n");
|
print_err("HI THERE!\n");
|
||||||
// sizemem();
|
// sizemem();
|
||||||
staticmem();
|
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("c60 is "); print_err_hex16(*(unsigned short *)0xfffefc60);
|
||||||
print_err("\n");
|
print_err("\n");
|
||||||
|
|
||||||
|
|
|
@ -153,6 +153,11 @@ static void main(unsigned long bist)
|
||||||
|
|
||||||
print_err("Technologic Systems TS5300 - http://www.embeddedx86.com/\n");
|
print_err("Technologic Systems TS5300 - http://www.embeddedx86.com/\n");
|
||||||
staticmem();
|
staticmem();
|
||||||
|
|
||||||
|
/* Void warranty when label is removed. */
|
||||||
|
dummy_romcc_workaround_label:
|
||||||
|
do { } while (0);
|
||||||
|
|
||||||
print_err("Memory initialized: 32MB\n");
|
print_err("Memory initialized: 32MB\n");
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
|
Loading…
Reference in New Issue