From patchwork Mon Aug 24 11:12:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 509989 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 77FB91401DE for ; Mon, 24 Aug 2015 21:12:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=PzZIo569; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=nXZkVSIy8nPuWMLb dRn4P/XsV2LrcE5rHhJOCo/yQTkcbHrj0EGWA6v0LPgYq8g2J5hbqcGnahQkVYzH hL8kFZBQ2Ch2EiyUzXuyqGO0eUBpwh9G5QrUN3enL1iExRr0qG6czrPJ7Lh4Ps/i vUe8xn3ec5p2SxlPtUnfOMY+ii4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=p9YC8+x38kKNHm+eUYiIi7 7qiUo=; b=PzZIo569/YMaEhiWAQ/MTr3+b5R+uk65gU3VsCzF7FrMlIjHJZFdDz Z2cWUeT4f2w6lOmOemqcH7xZzoBvvyl2YCe/1jftDd1a4Z5W0v3SHUZr/RvVaVH4 n+61zQ86+SKuYX1sEcWJApv4HiqRguot59sw34vEpJIRWWWGVLoFY= Received: (qmail 31863 invoked by alias); 24 Aug 2015 11:12:50 -0000 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 Received: (qmail 31825 invoked by uid 89); 24 Aug 2015 11:12:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Aug 2015 11:12:48 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-28-iA5ASA4ESFam_EKld0UngA-1; Mon, 24 Aug 2015 12:12:43 +0100 Received: from localhost ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 24 Aug 2015 12:12:43 +0100 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [committed] Fix microblaze build with rtl checking enabled Date: Mon, 24 Aug 2015 12:12:43 +0100 Message-ID: <878u917xec.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: iA5ASA4ESFam_EKld0UngA-1 This typo didn't matter for normal builds because INTVAL provides the missing brackets. It didn't build with rtl checking enabled because the __extension__ got in the way. Tested on microblaze-elf and committed as obvious. Thanks, Richard gcc/ * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix cast syntax. diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 40a659a..6e7745a 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -661,7 +661,7 @@ microblaze_classify_unspec (struct microblaze_address_info *info, rtx x) else if (XINT (x, 1) == UNSPEC_TLS) { info->type = ADDRESS_TLS; - info->tls_type = tls_reloc INTVAL(XVECEXP(x, 0, 1)); + info->tls_type = tls_reloc (INTVAL (XVECEXP (x, 0, 1))); } else {