[Bug c/56439] New: 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 Bug #: 56439 Summary: global and local register variables don't work in a useful way -- AVR Classification: Unclassified Product: gcc Version: 4.7.2 Status:

[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 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-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