[En-Nut-Discussion] WinAVR-20070101_install

Harald Kipp harald.kipp at egnite.de
Tue Jan 9 19:56:42 CET 2007


Crossposted to btnode-development, where the same problem had been 
discussed some time ago.

Ernst Stippl wrote:
> ../.././nut/dev/usart.c:844: confused by earlier errors, bailing out
> make[1]: *** [usart.o] Error 1
> make: *** [install] Error 2 
>
>   

While trying a new Linux installation with the latest tools, the same 
happened here. The error disappeared after removing the cases 
UART_SETSTATUS and UART_GETSTATUS using "#if 0" and "#endif". Over the 
years it happened several times that GCC fails to optimize large 
switch/case constructs. If you need the UART_..STATUS functions, you may 
try to put them in seperate functions, which are called from the switch 
case.

Harald





More information about the En-Nut-Discussion mailing list