public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27942]  New: packed union doesn't make the unaligned magic on sh64-*
@ 2006-06-07 23:13 kkojima at gcc dot gnu dot org
  2006-06-08  0:01 ` [Bug middle-end/27942] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-06-07 23:13 UTC (permalink / raw)
  To: gcc-bugs

union unaligned
{
  void *ptr;
} __attribute__((__packed__));

void *foo (void *p)
{
  return (((union unaligned *) p)->ptr);
}

is compiled to an aligned word access on sh64-*.  It was compiled
to an unaligned access before the patch

r114364 | echristo | 2006-06-05 04:50:48 +0900 (Mon, 05 Jun 2006) | 17 lines


-- 
           Summary: packed union doesn't make the unaligned magic on sh64-*
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh64-*-*


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


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

end of thread, other threads:[~2006-06-12  0:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07 23:13 [Bug middle-end/27942] New: packed union doesn't make the unaligned magic on sh64-* kkojima at gcc dot gnu dot org
2006-06-08  0:01 ` [Bug middle-end/27942] " pinskia at gcc dot gnu dot org
2006-06-08  0:06 ` [Bug middle-end/27942] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-06-08  0:27 ` echristo at apple dot com
2006-06-08  2:26 ` kkojima at gcc dot gnu dot org
2006-06-08 18:57 ` echristo at apple dot com
2006-06-08 22:23 ` kkojima at gcc dot gnu dot org
2006-06-08 22:25 ` echristo at apple dot com
2006-06-11 13:57 ` patchapp at dberlin dot org
2006-06-12  0:02 ` kkojima at gcc dot gnu dot org
2006-06-12  0:29 ` pinskia at gcc dot gnu dot 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).