Re: Effect of 'register' keyword on debug info

2012-05-23 Thread Ian Lance Taylor
Rohit Arul Raj writes: > Looking at the debug info and the generated assembly, the values of > variables 'f1' and 'd1' are stored in the same register. > Due to this, while debugging, after setting the break point at (A) > [line no 8], if we print the value of 'f1' i get the wrong value. > Q: I

Effect of 'register' keyword on debug info

2012-05-23 Thread Rohit Arul Raj
Hello All, I came across this issue while working with PowerPC GCC tool chain v4.5.2 for e500mc(64bit)/e5500. Test case compiled with '-O0 -g'. /** Test Case / 1: int main() 2: { 3: int i=0; 4: 5: register float f1 = 55.77f; 6: reg