From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21509 invoked by alias); 28 Mar 2011 11:58:18 -0000 Received: (qmail 21497 invoked by uid 22791); 28 Mar 2011 11:58:17 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_EG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Mar 2011 11:58:11 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal 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-Changed-Fields: Target Component Known to fail Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 28 Mar 2011 12:03:00 -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 X-SW-Source: 2011-03/txt/msg02876.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36043 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- Target|x86_64-unknown-linux-gnu |x86_64-unknown-linux-gnu, | |i?86-*-* Component|target |middle-end Known to fail| |2.95.2 --- Comment #16 from Richard Guenther 2011-03-28 11:57:36 UTC --- Also broken at least since GCC 2.95 on i?86 with struct colour { unsigned char red; unsigned char green; unsigned char blue; }; void print_colour(struct colour col) __attribute__((regparm(3))); void foo(struct colour *c) { print_colour(*c); }