[gcc r16-9352] a68: fix comment in a68-imports.cc:complete_encoded_mode

"Jose E. Marchesi via Gcc-cvs" <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:a7ea9665a9518b2aeaa47703a65ce3bd12ebd76f

commit r16-9352-ga7ea9665a9518b2aeaa47703a65ce3bd12ebd76f
Author: Jose E. Marchesi <[email protected]>
Date:   Wed Jun 24 23:53:38 2026 +0200

    a68: fix comment in a68-imports.cc:complete_encoded_mode
    
    Signed-off-by: Jose E. Marchesi <[email protected]>
    
    gcc/algol68/ChangeLog
    
            * a68-imports.cc (complete_encoded_mode): Fix comment on ordering
            of union packs entries.
    
    (cherry picked from commit 72848b9d9e20ed22d4391b5af07961df01959312)

Diff:
---
 gcc/algol68/a68-imports.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/algol68/a68-imports.cc b/gcc/algol68/a68-imports.cc
index 37b0b9a209fa..dc31ad3d98a6 100644
--- a/gcc/algol68/a68-imports.cc
+++ b/gcc/algol68/a68-imports.cc
@@ -846,8 +846,7 @@ complete_encoded_mode (encoded_modes_map_t &encoded_modes, uint64_t offset)
       pack = NO_PACK;
       for (uint8_t i = 0; i < em->data.union_.nmodes; i++)
 	{
-	  /* Union alternatives are internally stored in reverse order in the
-	     pack.  */
+	  /* The order of union alternatives is irrelevant.  */
 	  uint16_t index = i;
 	  MOID_T *united_moid = complete_encoded_mode (encoded_modes,
 						       em->data.union_.modes[index]);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.