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@coresystems.de