Commit 01a47685 authored by Wei-Cheng Wu's avatar Wei-Cheng Wu
Browse files

Change asm to __asm__ to match -std=c99 defination

parent 566f4a52
......@@ -796,7 +796,7 @@ public:
string get_label_body(string crit, int label_id)
{
string label_body =
"{\nasm volatile (\"\"::: \"memory\");\n\treport_label_coverage(\"" +
"{\n__asm__ volatile (\"\"::: \"memory\");\n\treport_label_coverage(\"" +
crit + "\", " + std::to_string(label_id) + ");\n}\n";
return label_body;
}
......@@ -815,7 +815,7 @@ public:
string labels = "";
string label_body = "{ asm volatile (\"\"::: \"memory\"); }\n";
string label_body = "{ __asm__ volatile (\"\"::: \"memory\"); }\n";
string cond_str = stmtToString(cond);
......@@ -1631,6 +1631,9 @@ public:
// insert report_label_coverage declaration
FileStream << "#include \"coverage.h\"\n";
}
FileStream << "#ifndef __GNUC__\n"
<< "#define __asm__ asm\n"
<< "#endif\n" ;
cout << "COMPLETED"<< endl;
cout<<"NextLabelID:"<<++labelnum<<endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment