public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26118]  New: avr-gcc (GCC) 3.4.5 Bug: copying structure through pointer will destroy the pointer
@ 2006-02-06  9:17 cajus dot hahn at de dot abb dot com
  2006-02-06  9:18 ` [Bug c/26118] " cajus dot hahn at de dot abb dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: cajus dot hahn at de dot abb dot com @ 2006-02-06  9:17 UTC (permalink / raw)
  To: gcc-bugs

there is a bug in avr-gcc (GCC) 3.4.5, that comes with the latest WinAVR
distribution (20060125).
The  avr-gcc (GCC) 3.4.3, that comes with WinAVR 20050214 does NOT contain this
bug. 
The bug exists with and without optimization (I tried -O0 and -Os)
If you try to copy a structure with
 *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: copying structure through
                    pointer will destroy the pointer
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cajus dot hahn at de dot abb dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26118


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-08-20 22:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06  9:17 [Bug c/26118] New: avr-gcc (GCC) 3.4.5 Bug: copying structure through pointer will destroy the pointer cajus dot hahn at de dot abb dot com
2006-02-06  9:18 ` [Bug c/26118] " cajus dot hahn at de dot abb dot com
2006-02-06 19:46 ` [Bug target/26118] " lmorrison at nautel dot com
2006-02-06 19:49 ` lmorrison at nautel dot com
2006-02-06 19:54 ` lmorrison at nautel dot com
2006-02-06 20:05 ` cajus dot hahn at de dot abb dot com
2006-03-01 18:53 ` j at uriah dot heep dot sax dot de
2008-12-26 16:12 ` tkoenig at gcc dot gnu dot org
2009-08-20  9:47 ` anitha dot boyapati at atmel dot com
2009-08-20 22:13 ` eric dot weddington at atmel dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).