Adriaan van Os wrote:
Waldek Hebisch wrote:
That looks like error in runtime system. Did you re-built `libgpc.a'? Re-making after applying patch will _not_ re-make `libgpc.a', one has to remove object files in `gcc/p/rts/' subdirectory by hand (including `stamp-error-gpi').
I had noticed that libgpc.a wasn't rebuilt and did a fresh rebuild. I believe there is a problem in the runtime system.
My working hypothesis is that range-checking code got mis-optimized (the patch I posted was intended to correct this). So turning off range-checking (also for libgpc) should eliminate failures. One could try removing (or commentig out) line:
TREE_SIDE_EFFECTS (t) = side_effects;
from my patch. Removing this line will produce many surious warnings, but the chance of mis-optimization is then smaller (however I was unable to see any change in generated code with this change).