[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-03-07 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- C

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-25 Thread jasonwucj at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 --- Comment #7 from Chung-Ju Wu 2013-02-26 03:30:40 UTC --- Sorry I didn't notice that it is 8-bit register on avr. I was porting a 32-bit register target and this case is similar to mine. That's why I have such guess in comment 5. No

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-25 Thread rfmerrill at berkeley dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 --- Comment #6 from Robert "Finny" Merrill 2013-02-25 16:39:39 UTC --- Well other than the fact that it now uses two registers (the registers are 8-bit and ints are 16-bit), no, it does the same thing register int foo asm ("r30"); voi

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-24 Thread jasonwucj at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 Chung-Ju Wu changed: What|Removed |Added CC||jasonwucj at gmail dot com --- Co

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-24 Thread rfmerrill at berkeley dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 --- Comment #4 from Robert "Finny" Merrill 2013-02-25 05:46:29 UTC --- Wouldn't that be a reason /against/ doing this: mov r24,r4 lsl r24 mov r4,r24 instead of just lsl r4?

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 --- Comment #3 from Andrew Pinski 2013-02-25 03:53:25 UTC --- (In reply to comment #2) > Any specific sections you can point me to? I'd be interested to hear a > justification for this behavior. Simple answer, an interrupt can happen an

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-24 Thread rfmerrill at berkeley dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 --- Comment #2 from Robert "Finny" Merrill 2013-02-25 03:30:47 UTC --- Any specific sections you can point me to? I'd be interested to hear a justification for this behavior.

[Bug target/56439] global and local register variables don't work in a useful way -- AVR

2013-02-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56439 Andrew Pinski changed: What|Removed |Added Component|c |target --- Comment #1 from Andr