Re: [avr-gcc-list] Code that fails to compile with any optimization enabled

2007-04-20 Thread Joerg Wunsch
"Dave Hylands" <[EMAIL PROTECTED]> wrote: > c:/winavr/bin/../avr/include/avr/eeprom.h:208: error: can't find a > register in class 'BASE_POINTER_REGS' while reloading 'asm' > c:/winavr/bin/../avr/include/avr/eeprom.h:208: error: can't find a > register in class 'BASE_POINTER_REGS' while reloading

[avr-gcc-list] Code that fails to compile with any optimization enabled

2007-04-20 Thread Dave Hylands
Hi, The following code snippet (as small as I could get it and still reproduce the problem) fails to compile with the following command line: avr-gcc -c -mmcu=atmega168 ee-fail.c -Os Dropping the -Os or using -O0 makes it work. Using -O1 -O2 -O3 or -Os all cause the following errors: 606 >avr-

[avr-gcc-list] Odd difference between last two WinAvrs

2007-04-20 Thread larry barello
I have the following: #define BOOTSTART 0x1F800 #define BL_SERIAL 2 #define BL_SMB 4 So I can say ((void (*)(void))((BOOT_START+BL_SERIAL)/2))(); When I want to jump into my bootloader at the serial download entry point. In last years WinAvr that code breaks. It generates: