On 30/05/2017 10:03, David Hildenbrand wrote: >>> We need "-fno-delete-null-pointer-checks", otherwise trying to access the >>> lowcore at address 0 makes GCC generate very weird code. >> I wonder whether you could get rid of that by using a global variable >> for lc instead? > As far as I remember, I tried that and it didn't change a thing. Will do > a quick test. > -fno-delete-null-pointer-checks is the right thing to do, trying to hide undefined behavior from the compiler leads to misery. :) Paolo