* [hsa] Silence a warning in emit_directive_variable
@ 2015-10-12 17:50 Martin Jambor
0 siblings, 0 replies; only message in thread
From: Martin Jambor @ 2015-10-12 17:50 UTC (permalink / raw)
To: GCC Patches
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-12 17:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12 17:50 [hsa] Silence a warning in emit_directive_variable Martin Jambor
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).