avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] PR46779: Arduino W5100.h does not compile correctly


From: Georg-Johann Lay
Subject: Re: [avr-gcc-list] PR46779: Arduino W5100.h does not compile correctly
Date: Sat, 11 Feb 2012 19:14:02 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Please don't forget to CC the lists

Daved a écrit:
http://gcc.gnu.org/PR46779 doesn't look like a duplicate to me. It is talking about array access which is not the case in my problem.

Forget about what users are babbling ;-) Just because there are array accesses in the source that exposed the PR, it's still not the *root cause* of the bug.

Many bug descriptons and "resonings" are confusing, and even more confusing after the root cause is clear.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51445 does indeed provide a fix, a patch, or whatever you want to call it, to the w5100.h source.

The compiler dump shows that it's a bug in the compiler. Thus, any attempt to try to "fix" that in the application is *not* a fix. It hacks around the very problem, and in particular for a header the problem is likely to return. All depends on surrounding code and inlining and command line options. Moreover, other modules might be affected, too. Arduino or user's code or any other code.

The only correct fix is to use a corrected compiler version, recommended is 4.6.3 or later. You also can backport the patch attached to PR46779 to 4.5.

Johann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]