public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "siarhei dot siamashka at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45070] New: Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2) Date: Sun, 25 Jul 2010 23:23:00 -0000 [thread overview] Message-ID: <bug-45070-14457@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2010-07-25 23:23 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-25 23:23 siarhei dot siamashka at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-45070-14457@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).