--- Comment #6 from anitha dot boyapati at atmel dot com 2009-08-10 13:27
---
Confirmed with gcc 4.4.0. Using switch -O0 with avr-gcc 4.4.0 (-mmcu=atmega128)
gave the result 0 while -O1 gave 0xFF
--
anitha dot boyapati at atmel dot com changed:
What|Removed
--- Comment #8 from anitha dot boyapati at atmel dot com 2009-08-20 09:46
---
Created an attachment (id=18403)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18403&action=view)
Images display the contents of rx_tel_in_ptr before and after the assignment
This issue does no
--- 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
--- 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:
...
--- Comment #3 from anitha dot boyapati at atmel dot com 2010-07-19 12:56
---
When I tried with AVR Studio 4.18, Build 684, the program didn't crash.
I think the issue is not with compiler. Disassembly looks proper and call to
Evaluate() is returned. This can be verified by
--- Comment #4 from anitha dot boyapati at atmel dot com 2010-07-19 13:03
---
SSA pass pass_remove_useless_stmts() removes useless statements and any code
beyond statements like "while(1);" will not be generated. This might be why the
breakpoint at "while(TRUE);" in
--- Comment #9 from anitha dot boyapati at atmel dot com 2010-07-22 11:26
---
I think the bug is not due to 'naked' function. When the naked attribute is
removed for __init_seed(void), the following diff can be observed in the
ass
--- Comment #10 from anitha dot boyapati at atmel dot com 2010-07-26 06:49
---
Bug can be confirmed with 4.4.3 version also (With -O2)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42240
--- Comment #12 from anitha dot boyapati at atmel dot com 2010-07-27 11:35
---
confirmed for 4.5.0. Yet to verify for HEAD.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42240
--- Comment #7 from anitha dot boyapati at atmel dot com 2010-08-23 13:08
---
Created an attachment (id=21547)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21547&action=view)
Reduced testcase
Reduced testcase to reproduce the bug.
--
http://gcc.gnu.org/b
--- Comment #8 from anitha dot boyapati at atmel dot com 2010-08-23 13:25
---
When -O2 is enabled result is 0xFF (255) which is incorrect. The code generated
for the following shift operation:
13: return (left << right);
+00AB: C004RJMP PC+
12 matches
Mail list logo