Skip to content

iar - remove --vla flag for exporters #2045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2016
Merged

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Jun 28, 2016

The template file already enables VLA as it's for C only. This --vla flag
causes conflicts with --cpp flag that is enabled implicitly if C++ is enabled.

IAR template before this patch:

          <state></state>
          <state>--guard_calls</state>
          <state>--preinclude=mbed_config.h</state>
          <state>--vla</state>
          <state>--preinclude=mbed_config.h</state>
          <name>IExtraOptions</name>

This causes problems because C++ is enabled, thus --vla causes errors when compiling.

IAR template after this patch:

          <state></state>
          <state>--guard_calls</state>
          <state>--preinclude=mbed_config.h</state>
          <state>--preinclude=mbed_config.h</state>
          <name>IExtraOptions</name>

@theotherjimmy Seems that preinclude is 2x there

@sg- @bogdanm

The template file already enables VLA as it's for C only. This --vla flag
causes conflicts with --cpp flag that is enabled implicitly if C++ is enabled.
@screamerbg
Copy link
Contributor

@0xc0170 does this mean that --vla is enabled by default in IAR Workbench. And the more general question, if I compile code with IAR compiler (mbed build system) and with IAR workbench (mbed exporters), will I get same result/output?

@sg- sg- merged commit 5ea1953 into ARMmbed:master Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants