https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85441 --- Comment #3 from sebastian321123 at interia dot pl --- I am afraid that nothing changes with optimisation flags. I am getting the same results for -O1, -O2, -O3 and -Os