Merge pull request #1985 from kjbracey-arm/iar_vlas

Turn on C99 VLAs in IAR
pull/2009/head
Sam Grove 2016-06-24 16:13:22 -05:00 committed by GitHub
commit 667d49ed8f
4 changed files with 4 additions and 4 deletions

View File

@ -402,7 +402,7 @@
</option>
<option>
<name>IccAllowVLA</name>
<state>0</state>
<state>1</state>
</option>
<option>
<name>IccCppDialect</name>

View File

@ -38,7 +38,7 @@ class ARM(mbedToolchain):
"--brief_diagnostics", "--restrict", "--multibyte_chars", "-I \""+ARM_INC+"\""],
'asm': [],
'c': ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
'cxx': ["--cpp", "--no_rtti"],
'cxx': ["--cpp", "--no_rtti", "--no_vla"],
'ld': [],
}

View File

@ -38,7 +38,7 @@ class GCC(mbedToolchain):
],
'asm': ["-x", "assembler-with-cpp"],
'c': ["-std=gnu99"],
'cxx': ["-std=gnu++98", "-fno-rtti"],
'cxx': ["-std=gnu++98", "-fno-rtti", "-Wvla"],
'ld': ["-Wl,--gc-sections", "-Wl,--wrap,main",
"-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r"],
}

View File

@ -40,7 +40,7 @@ class IAR(mbedToolchain):
"-e", # Enable IAR language extension
"--diag_suppress=Pa050,Pa084,Pa093,Pa082"],
'asm': [],
'c': [],
'c': ["--vla"],
'cxx': ["--guard_calls"],
'ld': ["--skip_dynamic_initialization", "--threaded_lib"],
}