Skip to content

Fix nested comment warning in RX GCC ports#550

Open
francdoc wants to merge 1 commit into
eclipse-threadx:devfrom
francdoc:fix/rx-gcc-nested-comment-warning
Open

Fix nested comment warning in RX GCC ports#550
francdoc wants to merge 1 commit into
eclipse-threadx:devfrom
francdoc:fix/rx-gcc-nested-comment-warning

Conversation

@francdoc

@francdoc francdoc commented Jun 9, 2026

Copy link
Copy Markdown

The RX GCC assembly port contains an unclosed C-style comment in tx_thread_context_save.S. As discussed in #397, .S files are passed through the C preprocessor before assembly, so the later C-style comment can trigger GCC warnings. The warning is small, but it adds avoidable noise to RX GCC builds.

This PR closes the affected comment block without changing assembly instructions or runtime behavior.

Validation

  • Ran git diff --check.
  • Verified RX GCC version: 8.3.0.202405-GNURX.
  • Ran RX GCC preprocessing and assembly compilation for the affected RXv1, RXv2, and RXv3 tx_thread_context_save.S files with -Wcomment -Werror=comment.
  • Built standalone ThreadX static libraries out-of-tree for RXv1, RXv2, and RXv3 using RX GCC 8.3.0.202405-GNURX with -misa=v1, -misa=v2, and -misa=v3.

The RX GCC preprocessing, assembly compilation, and standalone static-library builds completed successfully.

PR checklist

  • Updated function header with a short description and version number
  • Added test case for bug fix or new feature
  • Validated on real hardware

The RX GCC assembly port contains an unclosed C-style comment in tx_thread_context_save.S. Because .S files are passed through the C preprocessor before assembly, the nested comment can trigger GCC warnings.

Close the affected comment block without changing assembly instructions or runtime behavior.

Signed-off-by: FranCDoc <fchiesadoc@gmail.com>
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.

1 participant