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

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to