Browse Source

delete C++ support for gcc in the rtconfig.py file

tyustli 6 years ago
parent
commit
ea8509717e
43 changed files with 10 additions and 43 deletions
  1. 1 1
      bsp/es32f0334/rtconfig.py
  2. 1 1
      bsp/es32f0654/rtconfig.py
  3. 1 1
      bsp/gd32303e-eval/rtconfig.py
  4. 1 1
      bsp/gd32450z-eval/rtconfig.py
  5. 1 1
      bsp/imxrt/imxrt1021-evk/rtconfig.py
  6. 1 1
      bsp/imxrt/imxrt1050-ArchMix/rtconfig.py
  7. 1 1
      bsp/imxrt/imxrt1050-evk/rtconfig.py
  8. 0 1
      bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
  9. 0 1
      bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
  10. 0 1
      bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
  11. 0 1
      bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
  12. 0 1
      bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
  13. 0 1
      bsp/stm32/stm32f091-st-nucleo/rtconfig.py
  14. 0 1
      bsp/stm32/stm32f103-atk-nano/rtconfig.py
  15. 0 1
      bsp/stm32/stm32f103-atk-warshipv3/rtconfig.py
  16. 0 1
      bsp/stm32/stm32f103-dofly-lyc8/rtconfig.py
  17. 0 1
      bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
  18. 0 1
      bsp/stm32/stm32f103-hw100k-ibox/rtconfig.py
  19. 0 1
      bsp/stm32/stm32f103-mini-system/rtconfig.py
  20. 0 1
      bsp/stm32/stm32f107-uc-eval/rtconfig.py
  21. 0 1
      bsp/stm32/stm32f401-st-nucleo/rtconfig.py
  22. 0 1
      bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.py
  23. 0 1
      bsp/stm32/stm32f407-atk-explorer/rtconfig.py
  24. 0 1
      bsp/stm32/stm32f407-st-discovery/rtconfig.py
  25. 0 1
      bsp/stm32/stm32f411-st-nucleo/rtconfig.py
  26. 0 1
      bsp/stm32/stm32f429-armfly-v6/rtconfig.py
  27. 0 1
      bsp/stm32/stm32f429-atk-apollo/rtconfig.py
  28. 0 1
      bsp/stm32/stm32f429-fire-challenger/rtconfig.py
  29. 0 1
      bsp/stm32/stm32f446-st-nucleo/rtconfig.py
  30. 0 1
      bsp/stm32/stm32f746-st-disco/rtconfig.py
  31. 0 1
      bsp/stm32/stm32f767-atk-apollo/rtconfig.py
  32. 0 1
      bsp/stm32/stm32f767-fire-challenger/rtconfig.py
  33. 0 1
      bsp/stm32/stm32f767-st-nucleo/rtconfig.py
  34. 0 1
      bsp/stm32/stm32g071-st-nucleo/rtconfig.py
  35. 0 1
      bsp/stm32/stm32l053-st-nucleo/rtconfig.py
  36. 0 1
      bsp/stm32/stm32l432-st-nucleo/rtconfig.py
  37. 0 1
      bsp/stm32/stm32l475-atk-pandora/rtconfig.py
  38. 0 1
      bsp/stm32/stm32l475-st-discovery/rtconfig.py
  39. 0 1
      bsp/stm32/stm32l476-st-nucleo/rtconfig.py
  40. 0 1
      bsp/stm32/stm32l496-ali-developer/rtconfig.py
  41. 1 1
      bsp/stm32f4xx-HAL/rtconfig.py
  42. 1 1
      bsp/swm320-lq100/rtconfig.py
  43. 1 1
      bsp/tm4c129x/rtconfig.py

+ 1 - 1
bsp/es32f0334/rtconfig.py

@@ -44,7 +44,7 @@ if PLATFORM == 'gcc':
     OBJDUMP = PREFIX + 'objdump'
     OBJCPY = PREFIX + 'objcopy'
     DEVICE = ' -mcpu=' + CPU + ' -mthumb -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99'
+    CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb'
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
 

+ 1 - 1
bsp/es32f0654/rtconfig.py

@@ -44,7 +44,7 @@ if PLATFORM == 'gcc':
     OBJDUMP = PREFIX + 'objdump'
     OBJCPY = PREFIX + 'objcopy'
     DEVICE = ' -mcpu=' + CPU + ' -mthumb -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99'
+    CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb'
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
 

+ 1 - 1
bsp/gd32303e-eval/rtconfig.py

@@ -38,7 +38,7 @@ if PLATFORM == 'gcc':
     OBJCPY = PREFIX + 'objcopy'
 	
     DEVICE = ' -mcpu=cortex-m4 -mthumb -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99 -Dgcc' # -D' + PART_TYPE
+    CFLAGS = DEVICE + ' -Dgcc' # -D' + PART_TYPE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-gd32.map,-cref,-u,Reset_Handler -T gd32_rom.ld'
 

+ 1 - 1
bsp/gd32450z-eval/rtconfig.py

@@ -39,7 +39,7 @@ if PLATFORM == 'gcc':
     OBJCPY = PREFIX + 'objcopy'
 	
     DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99 -Dgcc' # -D' + PART_TYPE
+    CFLAGS = DEVICE + ' -Dgcc' # -D' + PART_TYPE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-gd32.map,-cref,-u,Reset_Handler -T gd32_rom.ld'
 

+ 1 - 1
bsp/imxrt/imxrt1021-evk/rtconfig.py

@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
     STRIP = PREFIX + 'strip'
 
     DEVICE = ' -mcpu=cortex-m7 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99 -Wall -D__FPU_PRESENT -eentry'
+    CFLAGS = DEVICE + ' -Wall -D__FPU_PRESENT -eentry'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb -D__START=entry'
     LFLAGS = DEVICE + ' -lm -lgcc -lc' + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T flexspi_nor.ld'
 

+ 1 - 1
bsp/imxrt/imxrt1050-ArchMix/rtconfig.py

@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
     STRIP = PREFIX + 'strip'
 
     DEVICE = ' -mcpu=cortex-m7 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99 -Wall -D__FPU_PRESENT -eentry'
+    CFLAGS = DEVICE + ' -Wall -D__FPU_PRESENT -eentry'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb -D__START=entry'
     LFLAGS = DEVICE + ' -lm -lgcc -lc' + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread-imxrt-gcc.map,-cref,-u,Reset_Handler -T flexspi_nor.ld'
 

+ 1 - 1
bsp/imxrt/imxrt1050-evk/rtconfig.py

@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
     STRIP = PREFIX + 'strip'
 
     DEVICE = ' -mcpu=cortex-m7 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99 -Wall -D__FPU_PRESENT -eentry'
+    CFLAGS = DEVICE + ' -Wall -D__FPU_PRESENT -eentry'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb -D__START=entry'
     LFLAGS = DEVICE + ' -lm -lgcc -lc' + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread-imxrt-gcc.map,-cref,-u,Reset_Handler -T flexspi_nor.ld'
 

+ 0 - 1
bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/libraries/templates/stm32f10x/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f091-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f103-atk-nano/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f103-atk-warshipv3/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f103-dofly-lyc8/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f103-hw100k-ibox/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f103-mini-system/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f107-uc-eval/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f401-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f407-atk-explorer/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f407-st-discovery/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f411-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f429-armfly-v6/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f429-atk-apollo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f429-fire-challenger/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f446-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f746-st-disco/rtconfig.py

@@ -57,7 +57,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2 -Os'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
     
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f767-atk-apollo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f767-fire-challenger/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32f767-st-nucleo/rtconfig.py

@@ -57,7 +57,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2 -Os'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32g071-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32l053-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
     
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32l432-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32l475-atk-pandora/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32l475-st-discovery/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32l476-st-nucleo/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 0 - 1
bsp/stm32/stm32l496-ali-developer/rtconfig.py

@@ -58,7 +58,6 @@ if PLATFORM == 'gcc':
         CFLAGS += ' -O2'
 
     CXXFLAGS = CFLAGS 
-    CFLAGS += ' -std=c99'
 
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 

+ 1 - 1
bsp/stm32f4xx-HAL/rtconfig.py

@@ -43,7 +43,7 @@ if PLATFORM == 'gcc':
     OBJCPY = PREFIX + 'objcopy'
 	
     DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99'
+    CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld'
 

+ 1 - 1
bsp/swm320-lq100/rtconfig.py

@@ -45,7 +45,7 @@ if PLATFORM == 'gcc':
 
     DEVICE = ' -mcpu=' + CPU + ' -mthumb -mfpu=' + FPU + ' -mfloat-abi=' + \
         FLOAT_ABI + ' -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99'
+    CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T drivers/linker_scripts/link.lds'
 

+ 1 - 1
bsp/tm4c129x/rtconfig.py

@@ -43,7 +43,7 @@ if PLATFORM == 'gcc':
     OBJCPY = PREFIX + 'objcopy'
     
     DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections'
-    CFLAGS = DEVICE + ' -std=c99 -Dgcc'
+    CFLAGS = DEVICE + ' -Dgcc'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-tm4c129x.map,-cref,-u,Reset_Handler -T tm4c_rom.ld'