From: Martin Jambor <mjambor@suse.cz>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [hsa] Silence a warning in emit_directive_variable
Date: Mon, 12 Oct 2015 17:50:00 -0000 [thread overview]
Message-ID: <20151012174956.GF14248@virgil.suse.cz> (raw)
Hi,
in the previous commit I have introduced a warning, this one silences
it.
Thanks,
Martin
2015-10-12 Martin Jambor <mjambor@suse.cz>
* 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);
reply other threads:[~2015-10-12 17:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151012174956.GF14248@virgil.suse.cz \
--to=mjambor@suse.cz \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).