Skip to content

Conversation

@5iBri
Copy link
Contributor

@5iBri 5iBri commented May 12, 2025

Compilation failure on portasm.s file for IAR/RL78 port

Description

Compilation of the ASM file fails when using IAR version 5.10.3. See issue #1277 for more details.

To resolve this, the indentation of ASM macros in the portmacro.h file was adjusted. The IAR assembler only accepts ASM macro definitions that begin at the start of the line; indenting the macro name causes a compilation error.

This behavior was observed with IAR 5.10.3. Earlier versions have not been tested.

Test Steps

See issue #1277

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

Bug #1277

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The indentation on ASM macro is not authorized by IAR compiler
@5iBri 5iBri requested a review from a team as a code owner May 12, 2025 12:37
@sonarqubecloud
Copy link

@kar-rahul-aws
Copy link
Member

Hi @5iBri
Thank you for your contribution!

We reproduced the issue on :

and confirmed the patch fixes the compilation issue.

@aggarg aggarg merged commit 2615dcd into FreeRTOS:main May 12, 2025
17 checks passed
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