Additional compiler options not applied

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Additional compiler options not applied

    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
    Images
    • compiler_options.png

      40.85 kB, 1,298×658, viewed 1,345 times
  • Hello Alexander,

    Thank you for your inquiry.

    Such a behaviour is not known to us.
    Could you copy the complete console output into a text file and attach it in this thread?
    Also could you right click your project and select "export build" and attach that file here as well?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.