From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27003 invoked by alias); 17 Mar 2014 08:24:42 -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 26965 invoked by uid 48); 17 Mar 2014 08:24:38 -0000 From: "ktietz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/60516] [4.7/4.8/4.9 regression]: cc1plus crashes compiling a method with a huge struct as argument Date: Mon, 17 Mar 2014 08:24: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: ktietz at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 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-03/txt/msg01361.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60516 --- Comment #7 from Kai Tietz --- Thanks for the patch. I am about to do a full-regression test for it. This will take some time. Quick test has shown that issue isn't 'thiscall' specific at all. stdcall, and fastcall calling-convention do have the same issues. So I would suggest to add these two testcases to the patch, too. /* PR target/60516 */ /* { dg-do compile } */ /* { dg-options "-O2" } */ struct S { char c[65536]; }; __attribute__((ms_abi, thiscall)) void foo (void *x, struct S y) { } -------------------- /* PR target/60516 */ /* { dg-do compile } */ /* { dg-options "-O2" } */ struct S { char c[65536]; }; __attribute__((ms_abi, fastcall)) void foo (void *x, void *xx, struct S y) { }