[En-Nut-Discussion] Need some installation help

Curtis Maloney cmaloney at cardgate.net
Tue Jun 12 03:34:04 CEST 2007


Daniel wrote:
> Hi again,
> Well, its a bug in GCC-4.1.  Long switch statements cause an error to be 
> thrown.  One solution is to split up the long switch statement in 
> ethernut-4.2.1/dev/usart.c.  This problem shows up in both the Debian 
> and Windows installation.  There is also a bug report filed about this 
> problem:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31786

I ran into something like this a while back, and discovered it's related to the 
-Os switch, and in fact the problem goes away if you change it to -O3 (and 
probably -O2 also).  Of course, not many people are interested in a speed tuned 
version of Nut/OS.

However, I didn't have time to dig into the makefile tangle far enough to change 
the cflags for the file(s) it caused problems on, nor to find which specific 
optimisation flag caused the error.

--
Curtis Maloney
cmaloney at cardgate.net



More information about the En-Nut-Discussion mailing list