[avr-gcc-list] Potential stack corruption in naked functions at -O0

2012-08-07 Thread Senthil Kumar Selvaraj
Hi, When tracking down a different (but related) bug, I noticed that, at -O0, code to copy function parameters from registers to the stack is generated at the start of the function. This is done even for naked functions (__attribute__((naked))), which I guess is wrong, as those functions don't h

Re: [avr-gcc-list] Potential stack corruption in naked functions at -O0

2012-08-07 Thread Georg-Johann Lay
Senthil Kumar Selvaraj schrieb: Hi, When tracking down a different (but related) bug, I noticed that, at -O0, code to copy function parameters from registers to the stack is generated at the start of the function. This is done even for naked functions (__attribute__((naked))), which I guess is