[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] BUG: GCC use don't saved registers in ISR with -O3 optimi
[avr-gcc-list] BUG: GCC use don't saved registers in ISR with -O3 optimization
Mon, 2 Jun 2008 10:19:03 +0400
volatile unsigned char UART_RxChar;
volatile unsigned char UART_ReceivedChar;
/* Indicate that the UART has received a character */
UART_ReceivedChar = 1;
/* Store received character */
UART_RxChar = UDR;
Request: use -frename-registers optimization, enabled on -O3.
.type __vector_13, @function
/* prologue: Signal */
/* frame size = 0 */
/* epilogue start */
R26 register used in ISR but don't saved/restored.
Workaround: Don't use '-frename-registers' optimization. Disable
optimization with '-fno-rename-registers' switch when used -O3.
Bug fix: need define HARD_REGNO_RENAME_OK macro in config/avr.h
- [avr-gcc-list] BUG: GCC use don't saved registers in ISR with -O3 optimization,
Anatoly Sokolov <=