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

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

Re: AW: [avr-gcc-list] "so-called-bug" global register variable is brok


From: Klaus Rudolph
Subject: Re: AW: [avr-gcc-list] "so-called-bug" global register variable is broken
Date: Thu, 02 Dec 2004 21:39:20 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040114

Haase Bjoern (PT-BEU/MKP5) * schrieb:

Hi,

simply a brief remark:

In my opinion we do not talk about a bug, but we are talking about a specific 
problem that cannot
be solved easily by standard GCC. In my opinion there is no justification to write a "bug" report. Eventually, we could make the
documentation a bit more explicit about this point.

Yours,

Björn


-----Ursprüngliche Nachricht-----
Von: address@hidden
[mailto:address@hidden Auftrag von E. Weddington
Gesendet: Donnerstag, 2. Dezember 2004 16:10
An: address@hidden; Klaus Rudolph
Betreff: Re: [avr-gcc-list] avr-gcc bug: global register variable is
broken


On 1 Dec 2004 at 15:48, Klaus Rudolph wrote:

Hi all,

it is impossible to define a global register variable in avr-gcc.
The register is used by the compiler on some places and it is really not
preserved.


<snip>
Any idea for a workaround? I need some register vars for interrupt handler
:-(

Is there allready a patch available or is this maybe fixed in current CVS
head of release 4.0 in gcc sources?


AFAIK, there's nothing new in the avr port itself in this area.

If this is a bug, then *please* submit a GCC bug report on this. That way it can be verified (by other GCC developers), tracked, and other GCC developers can be aware of this issue.

Sorry,

GCC has this featue and it works with other targets. And the rest of the generated code "knows" that the specified register must not used. The register is for example not in the save list and would not be stored on the stack but
after this it will be used which is definitly a bug.

I dont know why naming this problem a bug is a problem? The code which is generated is wrong!

Regards
           Klaus



reply via email to

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