From: Richard Sandiford Date: Tue, 2 Jun 2026 19:50:29 +0000 (+0100) Subject: bitmap: Fix comment about tree representation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee542c6b13fb08607dc03aadf5cd5eef5fe6642;p=thirdparty%2Fgcc.git bitmap: Fix comment about tree representation The bitmap_element comments appear to have the left and right children the wrong way around: prev is the left (lower index) and next is the right (higher index). gcc/ * bitmap.h (bitmap_element): Fix left/right distinction in comments. --- diff --git a/gcc/bitmap.h b/gcc/bitmap.h index fbf0b6366eb..31d469425d4 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -313,10 +313,10 @@ struct bitmap_obstack { struct GTY((chain_next ("%h.next"))) bitmap_element { /* In list form, the next element in the linked list; - in tree form, the left child node in the tree. */ + in tree form, the right child node in the tree. */ struct bitmap_element *next; /* In list form, the previous element in the linked list; - in tree form, the right child node in the tree. */ + in tree form, the left child node in the tree. */ struct bitmap_element *prev; /* regno/BITMAP_ELEMENT_ALL_BITS. */ unsigned int indx;