[Bug target/39386] [avr] different computation results for O1 and O0 executables

2010-08-23 Thread anitha dot boyapati at atmel dot com
--- 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=21547action=view) Reduced testcase Reduced testcase to reproduce the bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug target/39386] [avr] different computation results for O1 and O0 executables

2010-08-23 Thread anitha dot boyapati at atmel dot com
--- 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+0x0005

[Bug target/42240] [4.3/4.4 Regression, avr] wrong epilogue on naked function

2010-07-27 Thread anitha dot boyapati at atmel dot com
--- 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

[Bug target/42240] wrong epilogue on naked function

2010-07-26 Thread anitha dot boyapati at atmel dot com
--- 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

[Bug target/42240] wrong epilogue on naked function

2010-07-22 Thread anitha dot boyapati at atmel dot com
--- 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 assembly file

[Bug target/25722] Stackpointer is not restored correct at end of function

2010-07-19 Thread anitha dot boyapati at atmel dot com
--- 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 using

[Bug target/25722] Stackpointer is not restored correct at end of function

2010-07-19 Thread anitha dot boyapati at atmel dot com
--- 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 the testcase

[Bug target/39223] volatile bug on AVR

2010-03-07 Thread anitha dot boyapati at atmel dot com
--- 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

[Bug target/39223] volatile bug on AVR

2010-02-17 Thread anitha dot boyapati at atmel dot com
--- 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

[Bug target/39223] volatile bug on AVR

2010-02-17 Thread anitha dot boyapati at atmel dot com
--- 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

[Bug target/26118] avr-gcc (GCC) 3.4.5 Bug: copying structure through pointer will destroy the pointer

2009-08-20 Thread anitha dot boyapati at atmel dot com
--- 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=18403action=view) Images display the contents of rx_tel_in_ptr before and after the assignment This issue does not arise

[Bug target/39386] [avr] different computation results for O1 and O0 executables

2009-08-10 Thread anitha dot boyapati at atmel dot com
--- 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