[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs
From: |
Joern Rennecke |
Subject: |
Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs |
Date: |
Sun, 9 Nov 2014 16:35:59 +0000 |
On 8 November 2014 00:32, Szikra István <address@hidden> 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?