--- Comment #10 from eric dot weddington at atmel dot com 2010-03-08 15:36
---
(In reply to comment #9)
(In reply to comment #5)
Correction : The bug passes with 4.4.2 and above versions.
Closed as FIXED.
--
eric dot weddington at atmel dot com changed:
What
--- Comment #7 from abnikant at gmail dot com 2010-03-08 05:22 ---
(In reply to comment #6)
An observation - the same file when compiled with -O1 for i386 target also
appears to load g_54 using movl instruction.
_func_45:
...
L11:
testw %bx, %bx
je
--- Comment #8 from abnikant at gmail dot com 2010-03-08 05:26 ---
avr-gcc-4.4.0 -S -O1 small.c
code snippet version avr-gcc-4.4.0
.L__stack_usage = 0
rcall func_15
sbiw r24,0
breq .L4
lds r24,g_54
lds r25,g_54+1
lds r26,g_54+2
lds r27,g_54+3
.L4:
sts
--- Comment #9 from anitha dot boyapati at atmel dot com 2010-03-08 06:04
---
(In reply to comment #5)
Fails with gcc 4.4.3 and gcc 4.5 with -O1.
Correction : The bug passes with 4.4.2 and above versions. Code generated can
be seen below.
func_45:
...
rcall func_15
--- Comment #5 from anitha dot boyapati at atmel dot com 2010-02-17 11:09
---
Fails with gcc 4.4.3 and gcc 4.5 with -O1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39223
--- Comment #6 from anitha dot boyapati at atmel dot com 2010-02-17 11:19
---
An observation - the same file when compiled with -O1 for i386 target also
appears to load g_54 using movl instruction.
_func_45:
...
L11:
testw %bx, %bx
je L7
movl