From patchwork Wed Nov 7 19:29:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 197723 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id CC7192C0147 for ; Thu, 8 Nov 2012 06:29:15 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1352921357; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=NQ9cov8 iiXxRc12WleJbCuKE8Hg=; b=pr0InDMi4D5t0kLoJyXoSRDXFKFbFgKhgTqgNgQ F3aICtHWHSF4o0wmDqoG8PlnLnlLyNs6aBSETcmilLoibsKB/RsFHlfapUVYyaV5 XnTKV0yiVHCqWzwJAHMngKgYuEl65L40eAzE46CbL4eImkqX0Bl1w+dtcpZVAm/a SB7E= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=IcLSG9IHFJom19xE6++56IIjxDmixEYMl+eu1DMGJl8V+6HhsdsMAJv/p+4ZaC wII/nKR5td2KJ2818lj/Jdz4QdHWqIX1Pnken6w8I/WyR7nr2as45+kT9nIjMjQq l20ivc4HyTfDfhtFWioApmBxzWmqcs4PRTWhqCrYCv3/8=; Received: (qmail 16456 invoked by alias); 7 Nov 2012 19:29:10 -0000 Received: (qmail 16448 invoked by uid 22791); 7 Nov 2012 19:29:09 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_VZ, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-da0-f47.google.com (HELO mail-da0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Nov 2012 19:29:05 +0000 Received: by mail-da0-f47.google.com with SMTP id s35so779704dak.20 for ; Wed, 07 Nov 2012 11:29:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.77.74 with SMTP id q10mr15042301paw.81.1352316544561; Wed, 07 Nov 2012 11:29:04 -0800 (PST) Received: by 10.66.246.232 with HTTP; Wed, 7 Nov 2012 11:29:04 -0800 (PST) Date: Wed, 7 Nov 2012 20:29:04 +0100 Message-ID: Subject: [PATCH, i386]: Fix PR55224, FAIL: gcc.target/i386/tailcall-1.c scan-assembler jmp From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: vbyakovl23@gmail.com Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello! Apparently, vzeroupper patch removed a couple of unrelated lines. Attached patch puts back what was there in gcc-4.5. (Also, the patch finds a better place for check_avx256_stores.) 2012-11-07 Uros Bizjak PR target/55224 * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception to make a sibcall if one of the functions has void return type. Patch was tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN. Uros. Index: i386.c =================================================================== --- i386.c (revision 193296) +++ i386.c (working copy) @@ -4638,6 +4622,8 @@ ix86_function_ok_for_sibcall (tree decl, tree exp) if (!rtx_equal_p (a, b)) return false; } + else if (VOID_TYPE_P (TREE_TYPE (DECL_RESULT (cfun->decl)))) + ; else if (!rtx_equal_p (a, b)) return false;