I am specifying a bunch of compiler options in Project -> Edit Options -> C/C++ -> Compiler -> Additional C Compiler Options. During a rebuild of my project the 'Output' console shows that not all of these options are applied. Why is that? Does Embedded Studio ignore the set flags?
Thanks!
See flags below as reference, and also the attached picture.
Flags that SHOULD be set:
-D__ARM_ARCH_7EM__
-D__ARM_ARCH_FPV4_SP_D16__
-D__SES_ARM
-D__SIZEOF_WCHAR_T=4
-D__THUMB
-D__XMC4000_FAMILY
-D__XMC4700_Series_SUBFAMILY
-DAPP_ENTRY_POINT=ua_p_platform_main
-DARM_MATH_CM4
-DIP_SUPPORT_IPV6=1
-DOS_LIBMODE_D
-DUA_EMBOS
-DUC_DEVICE=XMC4700
-DUSE_RTT=1
-DXMC4700_2048
-DXMC4700_F144x2048
-fdata-sections
-fdata-sections
-fdata-sections
-fdiagnostics-color=never
-ffunction-sections
-ffunction-sections
-ffunction-sections
-fmessage-length=0
-fno-common
-fno-diagnostics-show-caret
-fno-dwarf2-cfi-asm
-fno-omit-frame-pointer
-fshort-enums
-g3
-gpubnames
-mcpu=cortex-m4
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16
-mlittle-endian
-mthumb
-mtp=soft
-nostdinc
-std=gnu99
-Waggregate-return
-Wall
-Wattributes
-Wbuiltin-macro-redefined
-Wcast-align
-Wdeclaration-after-statement
-Wextra
-Wextra
-Wextra
-Wformat=2
-Wlogical-op
-Wmaybe-uninitialized
-Wmissing-field-initializers
-Wmissing-noreturn
-Wno-psabi
-Wno-unused-but-set-variable
-Wold-style-definition
-Woverflow
-Wpointer-arith
-Wpointer-to-int-cast
-Wpragmas
-Wshadow
-Wstrict-aliasing
-Wstrict-prototypes
-Wstrict-prototypes
-Wsync-nand
-Wundef
-Wundef
-Wunknown-pragmas
-Wunused-variable
-Wwrite-strings
Flags that ARE set (console output):
-fno-diagnostics-show-caret
-E
-quiet
-mcpu=cortex-m4
-mlittle-endian
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16
-mthumb
-nostdinc
-D__SIZEOF_WCHAR_T=4
-D__ARM_ARCH_7EM__
-D__SES_ARM
-D__ARM_ARCH_FPV4_SP_D16__
-D__THUMB
-DDEBUG=1
-DXMC4700_F144x2048
-DUC_DEVICE=XMC4700
-DXMC4700_2048
-D__XMC4000_FAMILY
-D__XMC4700_Series_SUBFAMILY
-DUSE_RTT=1
-DARM_MATH_CM4
-DIP_SUPPORT_IPV6=1
-DDEBUG=1
Thanks!
See flags below as reference, and also the attached picture.
Flags that SHOULD be set:
-D__ARM_ARCH_7EM__
-D__ARM_ARCH_FPV4_SP_D16__
-D__SES_ARM
-D__SIZEOF_WCHAR_T=4
-D__THUMB
-D__XMC4000_FAMILY
-D__XMC4700_Series_SUBFAMILY
-DAPP_ENTRY_POINT=ua_p_platform_main
-DARM_MATH_CM4
-DIP_SUPPORT_IPV6=1
-DOS_LIBMODE_D
-DUA_EMBOS
-DUC_DEVICE=XMC4700
-DUSE_RTT=1
-DXMC4700_2048
-DXMC4700_F144x2048
-fdata-sections
-fdata-sections
-fdata-sections
-fdiagnostics-color=never
-ffunction-sections
-ffunction-sections
-ffunction-sections
-fmessage-length=0
-fno-common
-fno-diagnostics-show-caret
-fno-dwarf2-cfi-asm
-fno-omit-frame-pointer
-fshort-enums
-g3
-gpubnames
-mcpu=cortex-m4
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16
-mlittle-endian
-mthumb
-mtp=soft
-nostdinc
-std=gnu99
-Waggregate-return
-Wall
-Wattributes
-Wbuiltin-macro-redefined
-Wcast-align
-Wdeclaration-after-statement
-Wextra
-Wextra
-Wextra
-Wformat=2
-Wlogical-op
-Wmaybe-uninitialized
-Wmissing-field-initializers
-Wmissing-noreturn
-Wno-psabi
-Wno-unused-but-set-variable
-Wold-style-definition
-Woverflow
-Wpointer-arith
-Wpointer-to-int-cast
-Wpragmas
-Wshadow
-Wstrict-aliasing
-Wstrict-prototypes
-Wstrict-prototypes
-Wsync-nand
-Wundef
-Wundef
-Wunknown-pragmas
-Wunused-variable
-Wwrite-strings
Flags that ARE set (console output):
-fno-diagnostics-show-caret
-E
-quiet
-mcpu=cortex-m4
-mlittle-endian
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16
-mthumb
-nostdinc
-D__SIZEOF_WCHAR_T=4
-D__ARM_ARCH_7EM__
-D__SES_ARM
-D__ARM_ARCH_FPV4_SP_D16__
-D__THUMB
-DDEBUG=1
-DXMC4700_F144x2048
-DUC_DEVICE=XMC4700
-DXMC4700_2048
-D__XMC4000_FAMILY
-D__XMC4700_Series_SUBFAMILY
-DUSE_RTT=1
-DARM_MATH_CM4
-DIP_SUPPORT_IPV6=1
-DDEBUG=1