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

2009-08-20 Thread eric dot weddington at atmel dot com
--- Comment #9 from eric dot weddington at atmel dot com 2009-08-20 22:13 --- According to comment #8, the problem no longer exists in gcc 4.3.2. Closing bug as WONTFIX. -- eric dot weddington at atmel dot com changed: What|Removed |Added

[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=18403&action=view) Images display the contents of rx_tel_in_ptr before and after the assignment This issue does not arise w

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

2008-12-26 Thread tkoenig at gcc dot gnu dot org
--- Comment #7 from tkoenig at gcc dot gnu dot org 2008-12-26 16:08 --- Is this still an issue with current trunk? gcc 3.4 has been out of maintenance for some time. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added --

Re: gcc 3.4.5 bug

2006-12-11 Thread Andrew Pinski
On Mon, 2006-12-11 at 11:06 +0300, XXX XXX wrote: > Dear Sirs, > > I use gcc 3.4.5 and received following incorrect result in the program. > On the gcc site exist report about incorrect behavior of ++ operator but not > this situation. I hope that it will be usefull. > > I have developed some st

gcc 3.4.5 bug

2006-12-11 Thread XXX XXX
Dear Sirs, I use gcc 3.4.5 and received following incorrect result in the program. On the gcc site exist report about incorrect behavior of ++ operator but not this situation. I hope that it will be usefull. I have developed some stupid code to show the problem: #include void upcase(char* str

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

2006-03-01 Thread j at uriah dot heep dot sax dot de
--- Comment #6 from j at uriah dot heep dot sax dot de 2006-03-01 18:53 --- After tracking it down, it turns out to be the following change, introduced between GCC 3.4.3 and 3.4.4: 2005-03-19 Andy Hutchinson <[EMAIL PROTECTED]> PR target/18251 * config/avr/avr.md (movs

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

2006-02-06 Thread cajus dot hahn at de dot abb dot com
--- Comment #5 from cajus dot hahn at de dot abb dot com 2006-02-06 20:05 --- You are right, *ptr = struct; ptr++; works.I must have mixed up some of my testing results. Cajus -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26118

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

2006-02-06 Thread lmorrison at nautel dot com
--- Comment #4 from lmorrison at nautel dot com 2006-02-06 19:54 --- (From update of attachment 10792) assembly output from previous preprocessed source Generated with commandline: avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=800UL -Os -funsigned-char -funsigned-bitfields -fpack

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

2006-02-06 Thread lmorrison at nautel dot com
--- Comment #3 from lmorrison at nautel dot com 2006-02-06 19:49 --- Created an attachment (id=10792) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10792&action=view) assembly output from previous preprocessed source Generated with commandline: avr-gcc -c -mmcu=atmega32 -I. -gdwar

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

2006-02-06 Thread lmorrison at nautel dot com
--- Comment #2 from lmorrison at nautel dot com 2006-02-06 19:46 --- Created an attachment (id=10791) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10791&action=view) preprocessed source demonstrating bug produced with commandline: avr-gcc -E -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8

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

2006-02-06 Thread cajus dot hahn at de dot abb dot com
--- Comment #1 from cajus dot hahn at de dot abb dot com 2006-02-06 09:18 --- Created an attachment (id=10783) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10783&action=view) Complete project. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26118

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

2006-02-06 Thread cajus dot hahn at de dot abb dot com
*struct_pointer = struct; the struct_pointer gets destroyed. The assembler code generated seems to add one structure length foreach copied byte to the pointer. The complete code is attached. (there I use *struct_pointer++, but it is the same problem there). -- Summary: avr-gcc (GCC) 3.4.5 Bug