This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001934] gcc 4.6.3-20120623 optimizes wrong


Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001934

Juergen Lambrecht <J.Lambrecht@televic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|MODIFIED                    |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #3 from Juergen Lambrecht <J.Lambrecht@televic.com> ---
Sorry, this is our bug.
If you have an array, and want to access its sizeof'd byte, then you are 1 byte
too far:
  szConfigVersion[sizeof(szConfigVersion)] = 0;

The code I am reviewing was written by a "quick-and-dirty" type collegue...

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]