From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24173 invoked by alias); 30 Jul 2014 14:07:06 -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 24118 invoked by uid 48); 30 Jul 2014 14:07:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/61949] [4.10 regression] SEGV compiling gcc.dg/pch/import-[12].c Date: Wed, 30 Jul 2014 14:07: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.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2014-07/txt/msg01983.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61949 --- Comment #5 from Richard Biener --- Reduced testcase, compile with -m32 -msse -O2 -fno-omit-frame-pointer (works on a x86_64-linux host, no 32bit host available right now): struct md5_ctx { unsigned int A; unsigned int B; unsigned int C; unsigned int D; unsigned int total[2]; unsigned int buflen; char buffer[128] __attribute__ ((__aligned__ (__alignof__ (unsigned int)))); }; void * __attribute__((noinline,noclone)) md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) { unsigned int buffer[4]; buffer[0] = (ctx->A); buffer[1] = (ctx->B); buffer[2] = (ctx->C); buffer[3] = (ctx->D); __builtin_memcpy (resbuf, buffer, 16); return resbuf; } int main() { char resbuf[16]; struct md5_ctx c; md5_read_ctx (&c, resbuf); return 0; } Does this testcase fail on Solaris 10?