public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45070]  New: Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2)
@ 2010-07-25 23:23 siarhei dot siamashka at gmail dot com
  2010-07-25 23:25 ` [Bug c++/45070] " siarhei dot siamashka at gmail dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 26+ messages in thread
From: siarhei dot siamashka at gmail dot com @ 2010-07-25 23:23 UTC (permalink / raw)
  To: gcc-bugs

Compilation:
   arm-unknown-linux-gnueabi-g++ -Os -mcpu=cortex-a8 -o test test.cpp

Expected results:
   ./test
   65534 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Real results (some garbage data):
   ./test
   544 544 544 544 544 544 544 544 544 544 544 544 544 544 544 544

Note: This is not a big practical issue because Qt 4.7 does not use packed
attribute for QChar anymore (a good idea because using this packed attribute
results in a horribly slow code):
http://qt.gitorious.org/qt/qt/commit/1ec8acd77b6c048f5a68887ac7750b0764ade598


-- 
           Summary: Miscompiled c++ class with packed attribute on ARM with
                    -Os optimizations (Qt 4.6.2)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: siarhei dot siamashka at gmail dot com
GCC target triplet: arm-unknown-linux-gnueabi


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


^ permalink raw reply	[flat|nested] 26+ messages in thread
[parent not found: <bug-45070-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-09-07 11:02 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-25 23:23 [Bug c++/45070] New: Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2) siarhei dot siamashka at gmail dot com
2010-07-25 23:25 ` [Bug c++/45070] " siarhei dot siamashka at gmail dot com
2010-07-26  8:49 ` mikpe at it dot uu dot se
2010-07-26  9:33 ` mikpe at it dot uu dot se
2010-07-28  7:16 ` siarhei dot siamashka at gmail dot com
2010-07-28  7:18 ` siarhei dot siamashka at gmail dot com
2010-07-28  8:37 ` [Bug target/45070] " siarhei dot siamashka at gmail dot com
2010-07-28  9:01 ` ramana at gcc dot gnu dot org
2010-07-28  9:22 ` ramana at gcc dot gnu dot org
2010-07-28  9:35 ` rearnsha at gcc dot gnu dot org
2010-07-28  9:46 ` mikpe at it dot uu dot se
2010-08-03 17:13 ` ian dot bolton at arm dot com
2010-08-14 15:33 ` armin76 at gentoo dot org
2010-08-14 16:28 ` siarhei dot siamashka at gmail dot com
2010-08-19  8:28 ` ramana at gcc dot gnu dot org
2010-09-02 13:06 ` ibolton at gcc dot gnu dot org
2010-09-04 16:42 ` armin76 at gentoo dot org
2010-09-07  9:26 ` ibolton at gcc dot gnu dot org
2010-09-07 11:08 ` ibolton at gcc dot gnu dot org
2010-09-14 14:06 ` rearnsha at gcc dot gnu dot org
     [not found] <bug-45070-4@http.gcc.gnu.org/bugzilla/>
2012-09-04  9:38 ` amker at gcc dot gnu.org
2012-09-04 19:44 ` ramana at gcc dot gnu.org
2012-09-05 10:51 ` amker at gcc dot gnu.org
2012-09-05 10:55 ` amker at gcc dot gnu.org
2012-09-07 10:52 ` amker at gcc dot gnu.org
2012-09-07 11:02 ` amker at gcc dot gnu.org

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).