[coreboot] romcc segfaults; serious help needed

Patrick Georgi patrick at georgi-clan.de
Thu Mar 11 11:33:35 CET 2010


Am 11.03.2010 04:25, schrieb Keith Hui:
> Hi guys,
> 
> I posted a new 440BX RAM init code a few days ago that was segfaulting
> romcc, and I didn't get any response.
> 
> In the meantime I have narrowed the cause to this code fragment, with
> enough wrapper added so it can be fed to romcc on its own:
Thank you for the test case, I could reproduce the crash.

Attached patch fixes the romcc segfaults when using the |=, +=, ^=
operators on array fields and produces reasonably looking code.

I did some tests to verify that the behaviour didn't change, but your
test case compiles to no code (except some useless jmp instructions) as
it has no side effects, so I can only verify it builds.
Please test it on your real world code.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20100311-1-romcc
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100311/50019059/attachment.ksh>


More information about the coreboot mailing list