From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90690 invoked by alias); 8 Jun 2015 20:59:43 -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 90622 invoked by uid 55); 8 Jun 2015 20:59:39 -0000 From: "uros at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66275] __attribute__((sysv_abi)) with x86_64-w64-mingw32-gcc generates incorrect code Date: Mon, 08 Jun 2015 20:59: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.9.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: uros at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.2 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: 2015-06/txt/msg00747.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66275 --- Comment #11 from uros at gcc dot gnu.org --- Author: uros Date: Mon Jun 8 20:59:07 2015 New Revision: 224249 URL: https://gcc.gnu.org/viewcvs?rev=224249&root=gcc&view=rev Log: Backport from mainline: 2015-06-03 Uros Bizjak PR target/66275 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi to determine current function ABI. (ix86_function_value_regno_p): Ditto. testsuite/ChangeLog: Backport from mainline: 2015-06-03 Uros Bizjak PR target/66275 * gcc.target/i386/pr66275.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr66275.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/config/i386/i386.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog