Set std=gnu11 as default
authorgkostka <kostka.grzegorz@gmail.com>
Wed, 2 Dec 2015 12:13:41 +0000 (13:13 +0100)
committergkostka <kostka.grzegorz@gmail.com>
Wed, 2 Dec 2015 12:37:58 +0000 (13:37 +0100)
toolchain/common/arm-none-eabi.cmake
toolchain/common/avr-gcc.cmake
toolchain/common/bfin-elf.cmake
toolchain/common/msp430-gcc.cmake

index 08048ae0f9c6b7e7fd48143b5ba583205af26fe7..dd5b396c120699c62ab67f2b251c8fd175ac625f 100644 (file)
@@ -7,7 +7,7 @@ set(OBJCOPY             arm-none-eabi-objcopy)
 set(OBJDUMP             arm-none-eabi-objdump)\r
 set(SIZE                arm-none-eabi-size)\r
 \r
-set(CMAKE_C_FLAGS   "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
+set(CMAKE_C_FLAGS   "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -std=gnu11 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
 set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")\r
 set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")\r
 set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} ${LD_FLAGS} -Wl,--gc-sections" CACHE INTERNAL "exe link flags")\r
index 772d7dc26440b0fd311455f5da4b2df0d7116dae..41a92e7fd543ee412a5be72b7ae111a2c7a0df3f 100644 (file)
@@ -7,7 +7,7 @@ set(OBJCOPY             avr-objcopy)
 set(OBJDUMP             avr-objdump)\r
 set(SIZE                avr-size)\r
 \r
-set(CMAKE_C_FLAGS   "${MCPU_FLAGS} -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
+set(CMAKE_C_FLAGS   "${MCPU_FLAGS} -Wall -std=gnu11 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
 set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")\r
 set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")\r
 set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")\r
index 220f97a24161ff52768d5d189b1a2860d3091bb7..070b1884836792f6192680574f06c52e6c203106 100644 (file)
@@ -7,7 +7,7 @@ set(OBJCOPY             bfin-elf-objcopy)
 set(OBJDUMP             bfin-elf-objdump)\r
 set(SIZE                bfin-elf-size)\r
 \r
-set(CMAKE_C_FLAGS   "${MCPU_FLAGS} -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
+set(CMAKE_C_FLAGS   "${MCPU_FLAGS} -Wall -std=gnu11 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
 set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")\r
 set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")\r
 set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")\r
index 6a739a74c613e399219cee36e6e9d528332d78bd..8e903c3c1a9b851137f4978ef3edf3b18ac6caf9 100644 (file)
@@ -19,4 +19,4 @@ SET(CMAKE_ASM_FLAGS_DEBUG "-g -ggdb3" CACHE INTERNAL "asm debug compiler flags")
 
 SET(CMAKE_C_FLAGS_RELEASE "-Os -g -ggdb3" CACHE INTERNAL "c release compiler flags")
 SET(CMAKE_CXX_FLAGS_RELEASE "-Os -g -ggdb3" CACHE INTERNAL "cxx release compiler flags")
-SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")
\ No newline at end of file
+SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")