From patchwork Mon Dec 3 17:36:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Shawcroft X-Patchwork-Id: 203408 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 869A72C032A for ; Tue, 4 Dec 2012 04:36:52 +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=1355161013; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=S2vH1Iw L1rxbxa3OGOQWbGepuoY=; b=IQsdJwggEt5GzA1BLVy0XvyfFGO2pADRMshb2CO mnvAWil6TYYKIMGI2G/a2YmI4peAoF30ap6mapurJqGN+L7RWmzt85uj7ryf80AJ 8Yhv7gUXO3WyP4W78HCF9cJD5s59JI9snaBP2g56QdI69mWIoGHpoGUErfwijgZ8 aZBY= 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:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:X-MC-Unique:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=TqboxgAHTq6XR+H4JT3V96yXDBUKSUloRTwxXWOxmJR0467h2GFkC8InKZoSBq Z/JlhnmMUTiu2koVHzmWZW88kTw1/O7+VxmAJuq1gsmse3HA+mQjaWikJTZfc6Tr XO1FWVgmP89fvK3rcUmE3jTrKHtEJXPAKfO1Uq/rrdW5M=; Received: (qmail 10547 invoked by alias); 3 Dec 2012 17:36:43 -0000 Received: (qmail 10430 invoked by uid 22791); 3 Dec 2012 17:36:42 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_SPAMHAUS_DROP, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Dec 2012 17:36:36 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 03 Dec 2012 17:36:34 +0000 Received: from [10.1.72.50] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 3 Dec 2012 17:36:32 +0000 Message-ID: <50BCE31F.4030105@arm.com> Date: Mon, 03 Dec 2012 17:36:31 +0000 From: Marcus Shawcroft User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [PATCH] AArch64 fix ICE due to missing TYPE_STUB_DECL on va_list. X-MC-Unique: 112120317363408801 X-IsSubscribed: yes 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 This patch fixes an ICE due to a missing TYPE_STUB_DECL on the builtin va_list tree node. /Marcus gcc/ 2012-11-27 Marcus Shawcroft * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set TYPE_STUB_DECL. testsuite/ 2012-11-27 Marcus Shawcroft * gcc.target/aarch64/121127.c: New test. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index d4708bf..05e1da8 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5053,6 +5053,7 @@ aarch64_build_builtin_va_list (void) va_list_type); DECL_ARTIFICIAL (va_list_name) = 1; TYPE_NAME (va_list_type) = va_list_name; + TYPE_STUB_DECL (va_list_type) = va_list_name; /* Create the fields. */ f_stack = build_decl (BUILTINS_LOCATION, diff --git a/gcc/testsuite/gcc.target/aarch64/121127.c b/gcc/testsuite/gcc.target/aarch64/121127.c new file mode 100644 index 0000000..a7dca09 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/121127.c @@ -0,0 +1,4 @@ +/* { dg-do compile } */ +/* { dg-options "-g -femit-struct-debug-baseonly" } */ + +typedef __builtin_va_list __gnuc_va_list; -- 1.7.9.5