[Bug rtl-optimization/39510] [avr] missed optimisation with IO read and register variables

2009-08-21 Thread eric dot weddington at atmel dot com
--- Comment #6 from eric dot weddington at atmel dot com 2009-08-21 20:10 --- Confirmed on 4.3.2. -- eric dot weddington at atmel dot com changed: What|Removed |Added

[Bug rtl-optimization/39510] [avr] missed optimisation with IO read and register variables

2009-03-27 Thread eric dot weddington at atmel dot com
--- Comment #1 from eric dot weddington at atmel dot com 2009-03-27 17:06 --- This bug is invalid. Your test code is in main() which returns an int. The return value is stored in r24. So the code is correct to store the value in both r2 (test) and r24. See the avr-libc user manual,

[Bug rtl-optimization/39510] [avr] missed optimisation with IO read and register variables

2009-03-27 Thread k dot kosciuszkiewicz+gcc at gmail dot com
--- Comment #2 from k dot kosciuszkiewicz+gcc at gmail dot com 2009-03-27 17:46 --- I can't see how register usage and calling convention affect this. As I said before, this behaviour bit me in a naked interrupt handler, with no arguments and no return value. I'm attaching a fixed

[Bug rtl-optimization/39510] [avr] missed optimisation with IO read and register variables

2009-03-27 Thread k dot kosciuszkiewicz+gcc at gmail dot com
--- Comment #3 from k dot kosciuszkiewicz+gcc at gmail dot com 2009-03-27 17:47 --- Created an attachment (id=17545) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17545action=view) Second test case with void functions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39510

[Bug rtl-optimization/39510] [avr] missed optimisation with IO read and register variables

2009-03-27 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-03-28 05:22 --- This might be the case hard registers are not always copy propogated except into inline-asm. Can you provide the preprocessed source? -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug rtl-optimization/39510] [avr] missed optimisation with IO read and register variables

2009-03-27 Thread k dot kosciuszkiewicz+gcc at gmail dot com
--- Comment #5 from k dot kosciuszkiewicz+gcc at gmail dot com 2009-03-28 05:55 --- Created an attachment (id=17553) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17553action=view) Preprocessed source of test case Created with avr-gcc -v -save-temps -mmcu=attiny13 -Os -c test.c