]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: use_iso_fortran_env_module tweaks [PR118337]
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Jan 2025 09:28:18 +0000 (10:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Jan 2025 09:28:18 +0000 (10:28 +0100)
commitf5e488c0ee663c2355e6d712ffc15da215d9cd96
treeacced26789555bf44b37f4675b6794bff0893e63
parentbd28244ec92b9aac082f822987818ff1e11b67fd
fortran: use_iso_fortran_env_module tweaks [PR118337]

This patch adds a comment to explain why we initialize the non-constant
elts of symbol array separately and checking assert to verify that separate
initialization bumps the iterator for each macro.

2025-01-10  Jakub Jelinek  <jakub@redhat.com>

PR fortran/118337
* module.cc (use_iso_fortran_env_module): Add a comment explaining
the optimization performed.  Add gcc_checking_assert that i was
incremented for all the elements.  Formatting fix.
gcc/fortran/module.cc