From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82210 invoked by alias); 12 Oct 2015 17:50:01 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 82197 invoked by uid 89); 12 Oct 2015 17:50:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 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; Mon, 12 Oct 2015 17:50:00 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C199FAAC7 for ; Mon, 12 Oct 2015 17:49:55 +0000 (UTC) Date: Mon, 12 Oct 2015 17:50:00 -0000 From: Martin Jambor To: GCC Patches Subject: [hsa] Silence a warning in emit_directive_variable Message-ID: <20151012174956.GF14248@virgil.suse.cz> Mail-Followup-To: GCC Patches MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg01163.txt.bz2 Hi, in the previous commit I have introduced a warning, this one silences it. Thanks, Martin 2015-10-12 Martin Jambor * hsa-brig.c (emit_directive_variable): Add typecast. diff --git a/gcc/hsa-brig.c b/gcc/hsa-brig.c index 49d9e1d..e9712b5 100644 --- a/gcc/hsa-brig.c +++ b/gcc/hsa-brig.c @@ -574,7 +574,8 @@ emit_directive_variable (struct hsa_symbol *symbol) dirvar.segment = symbol->segment; /* TODO: Once we are able to access global variables, we must copy their alignment. */ - dirvar.align = MAX (hsa_natural_alignment (dirvar.type), BRIG_ALIGNMENT_4); + dirvar.align = MAX (hsa_natural_alignment (dirvar.type), + (BrigAlignment8_t) BRIG_ALIGNMENT_4); dirvar.linkage = symbol->linkage; dirvar.dim.lo = (uint32_t) symbol->dim; dirvar.dim.hi = (uint32_t) ((unsigned long long) symbol->dim >> 32);