From patchwork Fri Jan 15 23:49:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 568528 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 CDF13140BAE for ; Sat, 16 Jan 2016 10:49:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=DxpVsJZh; 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:date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=default; b=bBlQLIGrxS12A4lfX29uqNFt0ghzZq 27kST4nAJxkm7381tgt0VCglqateMu+zmzsJTCFB9fIYao0BUBDaqemHLBSYJpVT LNwuXz+BISN8mNtPvMVTB2HzIGQKilsvfoiWzeP/jC6ygSLv2lW+Gd/i3LgRyYRe LjhvgPglcosO4= 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:date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=D/+4WqU4nVUACSOdvGyRiUfrDOM=; b=DxpV sJZheJ8xu9NcUGCqb6mzQgposZwhg9Rr+fyTtY74GUAI5+o5sQc0OI3eORxWg7AR JMC007eMQRfC92yvOZwf6OsySO4Oj1qJKC2Q6BST8oaC3QNjuQml2qUK9O5i5RQs dVF2v3kh5uAB9pXNYhmzhFzCIWRGT2Mvt4+zCek= Received: (qmail 59083 invoked by alias); 15 Jan 2016 23:49:17 -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 59011 invoked by uid 89); 15 Jan 2016 23:49:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_05, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=textual, *symbol, hsa_type_name, UD:hsa-dump.c X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Fri, 15 Jan 2016 23:49:15 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 09983AC86 for ; Fri, 15 Jan 2016 23:49:12 +0000 (UTC) Date: Sat, 16 Jan 2016 00:49:12 +0100 From: Martin Jambor To: gcc-patches@gcc.gnu.org Subject: Re: [hsa merge 09/10] Majority of the HSA back-end Message-ID: <20160115234912.GA30403@virgil.suse.cz> Mail-Followup-To: gcc-patches@gcc.gnu.org References: <20160113173925.220029649@virgil.suse.cz> <20160113173925.914372077@virgil.suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160113173925.914372077@virgil.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes Hi, bootstrapping on i686-linux revealed the need for the following simple patch. I've run into two types of compilation errors on powerpc-ibm-aix (no htolenn functions and ASM_GENERATE_INTERNAL_LABEL somehow expanding to undeclared rs6000_xcoff_strip_dollar). I plan to workaround them quickly by making most of the contents of hsa-*.c files compiled only conditionally (and leave potential hsa support on non-linux platforms for later), but I will not have time to do the change and test it properly until Monday. But that will hopefully really be it, Martin 2016-01-16 Martin Jambor * hsa-dump.c (dump_hsa_symbol): Add missing argumet cast. diff --git a/gcc/hsa-dump.c b/gcc/hsa-dump.c index af79bcb..c5f1f69 100644 --- a/gcc/hsa-dump.c +++ b/gcc/hsa-dump.c @@ -720,7 +720,7 @@ dump_hsa_symbol (FILE *f, hsa_symbol *symbol) hsa_type_name (symbol->m_type & ~BRIG_TYPE_ARRAY_MASK), name); if (symbol->m_type & BRIG_TYPE_ARRAY_MASK) - fprintf (f, "[%lu]", symbol->m_dim); + fprintf (f, "[%lu]", (unsigned long) symbol->m_dim); } /* Dump textual representation of HSA IL operand OP to file F. */