From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3596 invoked by alias); 23 Oct 2013 11:49:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3536 invoked by uid 48); 23 Oct 2013 11:49:42 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58744] Illegal Memory Access on 3-byte packed struct ARCH: x86_64 Date: Wed, 23 Oct 2013 11:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: minor X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on component everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01681.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58744 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target| |x86_64-*-* Status|UNCONFIRMED |NEW Last reconfirmed| |2013-10-23 Component|c |target Ever confirmed|0 |1 Known to fail| |4.9.0 --- Comment #2 from Richard Biener --- Confirmed. On i?86 we properly do a 16byte and a 8byte access (but we copy to stack anyway). typedef struct{ unsigned char B; unsigned char G; unsigned char R; } __attribute__((packed)) pixel ; void apply_filter(pixel p); void color_filter_c(pixel *src) { apply_filter(*src); }