allowed static and disable memcpy/memmove/memset operations

This commit is contained in:
Evghenii
2014-02-03 08:02:50 +01:00
parent e6a6df1052
commit 98c82242c5
2 changed files with 8 additions and 30 deletions

View File

@@ -268,8 +268,8 @@ DeclStmt::EmitCode(FunctionEmitContext *ctx) const {
if (sym->storageClass == SC_STATIC) {
if (g->target->getISA() == Target::NVPTX && !sym->type->IsConstType())
Error(sym->pos,
"Non-constant static variable ""\"%s\" is not supported with ""\"nvptx\" target.",
PerformanceWarning(sym->pos,
"Non-constant static variable ""\"%s\" is stored in __global address sace with ""\"nvptx\" target.",
sym->name.c_str());
if (g->target->getISA() == Target::NVPTX && sym->type->IsVaryingType())
PerformanceWarning(sym->pos,