Comment 4 for bug 1395077

Revision history for this message
Terry Guo (terry.guo) wrote :

Your investigation:
"As I already mentioned, the printf() statement has a common part (setting the address of the string in a register) that is moved outside the loop, and a part with the actual call, inside the loop."
is the cause of such issue. Please use option -fno-move-loop-invariants to disable the move and you will get expected behavior. Meanwhile I will try to get upstream gcc to disable such move for -Og option.