gccrs: use range-based for loop in asm builtin #178

Open
0xllx0 wants to merge 1 commit from 0xllx0/gcc-TEST:gccrs/builtin-asm-range-based-for-loop into trunk
Member

Small change to use a range-based for loop in the
expand_inline_asm_strings function.

gcc/rust/Changelog:

* expand/rust-macro-builtins-asm.cc: use range-based for loop
in the `expand_inline_asm_strings` function.
Small change to use a range-based for loop in the `expand_inline_asm_strings` function. gcc/rust/Changelog: * expand/rust-macro-builtins-asm.cc: use range-based for loop in the `expand_inline_asm_strings` function.
Member

Hi @0xllx0. This bot helps send your PR as a patch series to the mailing list.

Next steps

  1. Write a clear PR description. It will be used as the cover letter.
  2. To CC extra people, add lines like this at the end of the PR description: CC: Reviewer1 <revi.ewer@example.com>, Reviewer2 <an.other@example.com>.
  3. To preview the emails, comment with /preview.
  4. When ready, request review in the Reviewers section. Or, if you just want to send the series, comment with /submit.
  5. Use the cover-letter links below to follow replies.
  6. For a new patch series, push your changes, update the PR description with a Changes since vX section, and comment with /submit again.

See Submitting Patches and UsingForge.

Consider joining the gcc and gcc-patches mailing lists..
For real time communication, check the gcc irc channels.

Or join #overseers on Libera Chat, particularly if this automation is not working (stay online to get replies, IRC does not save messages if people are not online).

<!-- pr-welcome --> Hi @0xllx0. This bot helps send your PR as a patch series to the mailing list. ## Next steps 1. Write a clear PR description. It will be used as the cover letter. 2. To CC extra people, add lines like this **at the end** of the PR description: `CC: Reviewer1 <revi.ewer@example.com>, Reviewer2 <an.other@example.com>`. 3. To preview the emails, comment with `/preview`. 4. When ready, request review in the Reviewers section. Or, if you just want to send the series, comment with `/submit`. 5. Use the cover-letter links below to follow replies. 6. For a new patch series, push your changes, update the PR description with a `Changes since vX` section, and comment with `/submit` again. See [Submitting Patches](https://gcc.gnu.org/contribute.html#patches) and [UsingForge](https://gcc.gnu.org/wiki/UsingForge). Consider joining the [gcc and gcc-patches mailing lists.](https://gcc.gnu.org/lists.html). For real time communication, check the [gcc irc channels](https://gcc.gnu.org/wiki/GCConIRC). Or join [`#overseers`](https://web.libera.chat/#overseers) on Libera Chat, particularly if this automation is not working (stay online to get replies, IRC does not save messages if people are not online).
Member

ChangeLog format should be more like:

* expand/rust-macro-builtins-asm.cc (expand_inline_asm_strings): Use range-based for loop.

:) It's really: * filename.ext (item): What changed. :)

ChangeLog format should be more like: ``` * expand/rust-macro-builtins-asm.cc (expand_inline_asm_strings): Use range-based for loop. ``` :) It's really: ` * filename.ext (item): What changed.` :)
0xllx0 force-pushed gccrs/builtin-asm-range-based-for-loop from bc9fae9c47
All checks were successful
/ format-checks (pull_request) Successful in 1m35s
to 68625165da
All checks were successful
/ format-checks (pull_request) Successful in 1m37s
2026-06-18 18:14:42 +00:00
Compare
All checks were successful
/ format-checks (pull_request) Successful in 1m37s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u gccrs/builtin-asm-range-based-for-loop:0xllx0-gccrs/builtin-asm-range-based-for-loop
git switch 0xllx0-gccrs/builtin-asm-range-based-for-loop

Merge

Merge the changes and update on Forgejo.
git switch trunk
git merge --no-ff 0xllx0-gccrs/builtin-asm-range-based-for-loop
git switch 0xllx0-gccrs/builtin-asm-range-based-for-loop
git rebase trunk
git switch trunk
git merge --ff-only 0xllx0-gccrs/builtin-asm-range-based-for-loop
git switch 0xllx0-gccrs/builtin-asm-range-based-for-loop
git rebase trunk
git switch trunk
git merge --no-ff 0xllx0-gccrs/builtin-asm-range-based-for-loop
git switch trunk
git merge --squash 0xllx0-gccrs/builtin-asm-range-based-for-loop
git switch trunk
git merge --ff-only 0xllx0-gccrs/builtin-asm-range-based-for-loop
git switch trunk
git merge 0xllx0-gccrs/builtin-asm-range-based-for-loop
git push origin trunk
Sign in to join this conversation.
No reviewers
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gcc/gcc!178
No description provided.