Re: [bug] cbi optimization error for 8-bit AVRs

Joern Rennecke <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <CAMqJFCqffru9mpSLR_-x+zTi16Km6D77nkL2sLeZYg37-_p25A@mail.gmail.com>
On 8 November 2014 00:32, Szikra István <[email protected]> wrote:

> Unfortunately GCC support for AVR (among other things) is not always
> flawless. And it changes from versions to version (and not always for the
> better).

regression tests can help to catch instances where the compiler looses
functionality.

I'm trying to make gcc 5.0 do the right thing.  As a matter of fact, I
get a preprocessor failure and an ICE (Internal Compiler Error) there.

> Since I’m a long time AVR developer I have a lot of compiler versions
> installed (WinAVR 2006-2010, and Atmel Studio 6.2 with GCC 4.8.1), but I
> could test my code with only one (the latest).
>
> I run into some trouble with clearing port bits not translating from C into
> cbi in assembler. It is caused by my bits template, but I do not know why.
> It seems to me like a bug in GCC. Maybe someone here can shed some light on
> the reason, or suggest a fix.
>
> Here is the code:

May I include that as a test case in the gcc.target/avr testsuite?

_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.